Talk:Search data structure
Appearance
![]() | Computing Unassessed | |||||||||
|
I don't see how a sorted linked list has an insertion efficiency of O(1). Don't you have to find where to insert it? I think it's O(n).
As a corollary, deletion would also be O(n). Must traverse the list to find the item. Trigger hurt (talk) —Preceding undated comment added 20:24, 16 October 2009 (UTC).
I modified the table to reflect this. 143.44.78.159 (talk) 04:55, 24 May 2010 (UTC)
Hash table worst case timing
The timing listed for search is O(1) while Hash table says O(n). Which is it? --ben_b (talk) 18:10, 16 April 2012 (UTC)