mathmari
Gold Member
MHB
- 4,984
- 7
Hey! 
Consider the following sorting method.
Start with a sequence consisting of one element. Insert the remaining elements into the sequence one at a ime by binary search. Devise a data structure which allow you to perform binary search and insert elements quickly.
How can we implement this sort in $O(n \log n)$ time?? (Wondering)

Consider the following sorting method.
Start with a sequence consisting of one element. Insert the remaining elements into the sequence one at a ime by binary search. Devise a data structure which allow you to perform binary search and insert elements quickly.
How can we implement this sort in $O(n \log n)$ time?? (Wondering)