Linda PV
Linda PV

Reputation: 49

what method has O(log(n)) comparison

May I ask What sorting method that uses O(log(n)) comparison (eg: arrange items in unsorted arr2 into a sorted arr1 in a sorted order)?

Upvotes: 0

Views: 56

Answers (2)

Maurice Perry
Maurice Perry

Reputation: 9658

None.

Several algorithms are in O(n*log(n)) though: merge sort, heap sort, quick sort, etc...

Upvotes: 2

user10324026
user10324026

Reputation:

Merge-sort sorts arrays in o(nlogn). see Merge-sort

Upvotes: 0

Related Questions