subject
Engineering, 15.04.2020 15:37 hiene

Given the following sequence of integers12, 19, 10, 4, 23, 7, 45, 8, 15a) Build a max-heap by inserting the above set in the given sequence. Show the heap after every insertion. How many comparisons in all did it take to build the heap?b) On the heap constructed in part (a), perform successive delete_max operations. Show the heap after every delete_max. How many comparisons did it take in all to delete all the entries from the heap?c) The above two steps essentially sort a set of entries, The total number of comparisons for both steps is the number of comparisons required to sort the set. Compare this with the selection sort algorithm, which was discussed in the context of the quadratic running time order. How man comparisons does selection sort make on the above set?

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 16:10
The force on a cutting tool are 2600n vertically downward and 2100 horizontal. determine the resultant force acting on the tool and the angle at which it acts.
Answers: 1
question
Engineering, 04.07.2019 18:10
Aflywheel accelerates for 5 seconds at 2 rad/s2 from a speed of 20 rpm. determine the total number of revolutions of the flywheel during the period of its acceleration. a.5.65 b.8.43 c. 723 d.6.86
Answers: 2
question
Engineering, 04.07.2019 18:10
Water in a partially filled large tank is to be supplied to the roof top, which is 8 m above the water level in the tank, through a 2.2-cm-internal-diameter pipe by maintaining a constant air pressure of 300 kpa (gage) in the tank. if the head loss in the piping is 2 m of water, determine the discharge rate of the supply of water to the roof top in liters per second.
Answers: 3
question
Engineering, 04.07.2019 18:10
Which of the following components of a pid controlled accumulates the error over time and responds to system error after the error has been accumulated? a)- proportional b)- derivative c)- integral d)- on/off.
Answers: 2
You know the right answer?
Given the following sequence of integers12, 19, 10, 4, 23, 7, 45, 8, 15a) Build a max-heap by insert...
Questions
question
Mathematics, 24.02.2020 19:49
question
Chemistry, 24.02.2020 19:49
Questions on the website: 13722363