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

a thermometer reading is 10°F and the wind speed is 20 mph is the game postponed or held
the credit period is
The purpose of a scientific investigation is
The weather station has issued a warning because there is a tornado in your area. It is traveling northwest at 30 miles per hour. This information describes the
If an atom had a nucleus one foot in diameter, what would be the diameter of the atom in miles?
Huang has a coupon that gives him 20% off all items purchased. He buys 3 shirts that each cost the same amount, and he pays with a $100 bill. Which expression r
Factor the polynomial. 54c3d4 + 9c4d2
What is the slope of a line that runs parallel to y = 2 x + 5?
What helps to ensure that the meaning of prose is clear to the reader
a particular school has a teacher to a student ratio of a 1 teacher to 11 students. Are there more teachers or students explain how u know.