Find the position of element.

Правка en1, от _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?

Теги #sorting, searching

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский _aditya 2019-06-07 12:58:00 362 Initial revision (published)