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 the momentum of a 3 kg bowling ball moving at 3 m/s? 1 kg • m/s 3 kg • m/s 6 kg • m/s 9 kg • m/s
provide a brief explaination on how the south African government provides support to the HIV/AIDS awerness campaign
6p-2-3p=16 and i dont know how to solve it? i need to show my work
What is the female egg cell termed
Please answer and show all work (15 points!)
name two differences between charter and international flights
It says the set (1,2,3) can help?
In India, Gandhi is known as the 'Father of the Nation' and his birthday is celebrated as a national holiday. True False
renee is a sales associate at a store. she earns $80 a week plus a 15% commission on her sales. last week, she sold $200 with of items. what is the total amount
The Magna Carta paved the way for a parliamentary form of government in