dfrtgyuhijfghj2457 dfrtgyuhijfghj2457
  • 18-12-2020
  • Computers and Technology
contestada

Identify what algorithm or concept the following code relates to. void Sort(int array[], int tempArray[], int left, int right) { int i, j, k, middle; if(right > left) { middle

Respuesta :

IfeanyiEze8899 IfeanyiEze8899
  • 19-12-2020

Answer:

Binary sort

Explanation:

Binary sort is one of the fastest search techniques used on arrays and other iterable data types. It algorithm sorts the array in ascending order then gets the item in the middle from which it divides the array to be searched in two parts. If the searched term is less than the mid item, then it is searched for in the first part, else it would be in the second.

Answer Link

Otras preguntas

what factors were in place at the end of the civil war that helped create a surge in industrial growth?
Approximate the value of √5 to the nearest hundredth
how many inches are in 5 feet
12. Typically, entrepreneurs don't like to be told what to do because A. they're stubborn by nature. B. it takes a big ego to run a business. C. they have pr
What do all simple machines have in common
What was the problem with landing zone X-Ray?
What is the actual physical appearance of the gene?
PLEASE HELP I GIVE THANKS
Question: I see 8 more lilacs than roses. I see 9 roses. How many lilacs do I see? Thanks
Jason's long jump was 98 inches. Dougs long jump was3 yards. How much longer was Dougs jump than Jason's jump?