View Single Post
Old 01-22-2004, 07:28 PM   #2 (permalink)
kel
WARNING: FLAMMABLE
 
Location: Ask Acetylene
You mean a regular array, as in the C++ declaration
Code:
int x[100];
?

You don't normally delete elements from an array.
I don't know of any data structure that supports deletion in O(1) time.

I mean a hash table can do that if the set of keys is the same size as the potential set of elements. But that isn't much different then deleting from a regular array.
__________________
"It better be funny"

Last edited by kel; 01-22-2004 at 07:34 PM..
kel is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62