Jump to content

Talk:Search data structure

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jorge Stolfi (talk | contribs) at 17:19, 2 January 2010 (moved Talk:Search data structures to Talk:Search data structure: Oops, name must be singular by Wikipedia rules). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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).[reply]