in reply to Re^4: Combining arrays with grep/unless?
in thread Combining arrays with grep/unless?
Hash tables are often used to implement associative arrays, sets and caches. Like arrays, hash tables provide constant-time O(1) lookup on average, regardless of the number of items in the table. (O(1) means that it takes a constant amount of time independent of the number of items involved.)
From where did you get O(log N)?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Combining arrays with grep/unless?
by polettix (Vicar) on Feb 11, 2007 at 15:38 UTC |