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, 03.07.2019 14:10
When at a point two solid phase changes to one solid phase on cooling then it is known as a) eutectoid point b) eutectic point c) peritectic point d) peritectoid point
Answers: 3
question
Engineering, 04.07.2019 18:10
The higher the astm grain size number, the finer the gran is. a)-true b)-false
Answers: 2
question
Engineering, 04.07.2019 18:10
Atmospheric air has a temperature (dry bulb) of 80° f and a wet bulb temperature of 60° f when the barometric pressure is 14.696 psia. determine the specific humidity, grains/lb dry air. a. 11.4 c. 55.8 d. 22.5 b. 44.1
Answers: 1
question
Engineering, 04.07.2019 18:20
Prove the equivalence between the two statements of the 2nd law of thermodynamics (i.e., a violation of one statement leads to the violatio the other statement)
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
English, 30.06.2021 09:20
question
Social Studies, 30.06.2021 09:20
question
History, 30.06.2021 09:20
question
English, 30.06.2021 09:20
question
Mathematics, 30.06.2021 09:20
Questions on the website: 13722361