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 18:10
Slip occurs via two partial dislocations because of (a) the shorter path of the partial dislocation lines; (b) the lower energy state through partial dislocations; (c) the charge balance.
Answers: 1
question
Engineering, 04.07.2019 18:10
Ifa component is made of two or more materials with different modulus of elasticity (e), it is called a composite member and we calculate the factor·n". mention the formula for calculating n". also, ifn> 1, explain what will happen to the 1. transformed.gi) ifn 1, what will happen to the material when transformed material when
Answers: 1
question
Engineering, 04.07.2019 18:20
Aquick transition of the operating speed of a shaft from its critical speed will whirl amplitude. (a) increase (b) limit (c) not affect (d) zero
Answers: 2
question
Engineering, 04.07.2019 18:20
Air flows over a heated plate àt a velocity of 50m/s. the local skin factor coefficient at a point on a plate is 0.004. estimate the local heat transfer coefficient at this point.the following property data for air are given: density = 0.88kg/m3 , viscosity 2.286 x 10 ^-5 kgm/s , k = 0.035w/mk ,cp = 1.001kj/kgk. use colburn reynolds analogy.
Answers: 1
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.09.2019 11:30
question
Social Studies, 24.09.2019 11:30
Questions on the website: 13722363