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

what is abstract for goo slime
what is the land between two normal faults that may be uplifted to form?
Help plz. What Does "All Roads Lead to Rome" Mean?
Mr. Anders wants to put a fence around his backyard. His backyard is rectangular. The lengths of the sides are 75 yards , 45 yards, 75 yards, and 45 yards. How
When light waves first enter the eye, they first pass through this transparent layer where they are refracted
a^3+a+a^2+1 2a^2+2ab+ab^2+b^3 ------------------------------- * ---------------------------------- a^3+a^2+ab^2+b^2 a^3+a+a^2b+b
Please answer any of these thanks !
The perimeter of a rectangle is 34 units. Its width is 6.5 units. What is its length?
what is the land between two normal faults that may be uplifted to form?
Explain how Earth's magnetic field and ozone layers protect it .