views:

70

answers:

3

i want to find an object with O(logN) and also remove with O(log N) - but no go to balanced tree implementation..

any idea's for that?

+1  A: 

B-tree

Ignacio Vazquez-Abrams
+1 for answering the question in the title, -1 for ignoring that the questioner (without giving any reason) specified no balanced tress.
Steve Jessop
+1  A: 

Fenwick tree

Armen Tsirunyan
A: 

Yes, use a skip-list. It's probabilistic data-structure with logarithmic insertion/search/removal, but without the complex balancing code of trees.

zvrba