43.1k views
18 votes
What is the worst case time complexity of insertion sort where position of the data to be inserted is calculated using binary search

User GuiGS
by
4.1k points

1 Answer

12 votes

Answer:

O(n²)

Step-by-step explanation:

The worse case time complexity of insertion sort using binary search for positioning of data would be O(n²).

This is due to the fact that there are quite a number of series of swapping operations that are needed to handle each insertion.

User Philip Brocoum
by
4.4k points