wajahadsam1234544321 wajahadsam1234544321
  • 24-12-2020
  • Computers and Technology
contestada

This finding maximum number function will keep on going until we reach at the last value
[12, 18, 299, 38, 999, 89, 101, 500, 801, 45]

Respuesta :

bijayakhadak bijayakhadak
  • 24-12-2020
In which algorithm first the maximum element is found and then placed at the end?
Heapsort algorithm
The Heapsort algorithm involves preparing the list by first turning it into a max heap. The algorithm then repeatedly swaps the first value of the list with the last value, decreasing the range of values considered in the heap operation by one, and sifting the new first value into its position in the heap.
Answer Link

Otras preguntas

refusal skills should protect your dignity, self-esteem, and values true or false
find the integer between square root of 30 and 4pie/ 3
What did bombo say when he saw the ivy-covered walls of the Ivy League college?
When a number x is multiplied by 4, the result is 25 . What is the value of x? Drag and drop the correct number into the box so that the equation is true.
M is the midpoint of GR. G has coordinates(-8,3) and M is at the origin. Find the coordinates of R
The sum of two consecutive odd integers is -72. What is the larger integer?
if RT = 36, find the value of x
Which set or sets does negative 13 belongs?
hugh has to earn $400 to let his goal. he has 100 books he will sell for $8 each. what inequality shows the number of books x high can sell to meet his goal
PLEASE HELP!! Which events are mutually exclusive? A. Alex scores 4 points; Alex’s team loses. B. Alex scores 4 points; Alex’s team wins. C. Alex scores 4 poin