215k views
0 votes
If you needed to sort an array with 10,000 items in the least amount of time, which sorting algorithm would you use?

User Ericcurtin
by
4.5k points

1 Answer

2 votes

Answer:

The answer is "Binary Search algorithm".

Step-by-step explanation:

It is an accurate method, which is used to identify an object from the list of things, that has been sorted. It operates by splitting a section of the list.

  • It includes the element twice into half, until after you have reduced all the potential targets to only one.
  • This algorithm works with O(n * log(n)) efficiency, that's why it is used in the array sorting, it also consumes less time.
User Jody Powlette
by
4.5k points