in reply to Data structure challenge
It is also important to realize the importance of the constants to running time. Preallocating the array pays O(U) cost in initialization but makes each operation more efficient. When inserting N items close to U, this can be significant.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Data structure challenge
by Abigail-II (Bishop) on Mar 17, 2004 at 20:21 UTC |