Find the position of element.

Revision en1, by _aditya, 2019-06-07 12:58:00

Lets say we have a running stream of numbers. We have to insert each element to a sorted list, before inserting we have to find the position of element in list. The only way I know to do it efficiently is augmenting a AVL tree. And also there are policy based data structures. do you know some algorithm that can do this in logn?

Tags #sorting, searching

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English _aditya 2019-06-07 12:58:00 362 Initial revision (published)