asked 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?

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.
answered
User Jody Powlette
by
7.6k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.