subject
Engineering, 24.05.2021 21:30 savannahdecker0318

This question concerns the dynamic programming algorithm for computing a binary tree, discussed in class in and in the notes. Suppose we are given the following data, consisting of 8 key values and the frequency with which each key is accessed: i Data p_{i}
1 A 0.09
2 B 0.17
3 C 0.26
4 D 0.05
5 E 0.06
6 F 0.12
7 G 0.10
8 H 0.15
(a) For each i and j in the appropriate range, give the values of E[i, j] and root[i, j].
(b) Draw the optimal binary tree for the data given above.
(c) What is the weighted lookup cost of the optimal binary tree? Explain briefly how you computed it.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Steel is coated with a thin layer of ceramic to protect against corrosion. what do you expect to happen to the coating when the temperature of the steel is increased significantly? explain.
Answers: 1
question
Engineering, 04.07.2019 18:10
Machinery that is a key part of the process and without which the plant or process cannot function is classifed as: (clo4) a)-critical machinery b)-essential machinery c)-general purpose machinery d)-none of the specified options.
Answers: 1
question
Engineering, 04.07.2019 18:20
Describe one experiment in which the glass transition temperature and melting temperature of a totally amorphous thermoplastic material can be determined. show the relevant experimental results in a diagram which should be properly annotated with the two temperatures clearly marked. what is likely to happen to the curve in the diagram if the amorphous polymer is replaced by a thermosetting type?
Answers: 2
question
Engineering, 04.07.2019 19:20
To save energy, the air supply to a 2000 ft office has been shut off overnight and the room temperature has dropped to 40Β°f. in the morning, the thermostat is reset to 70Β°f and warm air at 120 f begins to flov in at 200ft'/min. the air is well mixed within the room, and an equal mass flow of air at room temperature (changing with time) is withdrawn through a return duct. the air pressure is nearly 1 atm everywhere. ignoring heat transfer with the surroundings and kinetic and potential energy effects, estimate how long it takes for the room temperature to reach 70Β°f. plot the room temperature as a function of time.
Answers: 1
You know the right answer?
This question concerns the dynamic programming algorithm for computing a binary tree, discussed in c...
Questions
question
Mathematics, 27.01.2021 22:20
question
Chemistry, 27.01.2021 22:20
question
History, 27.01.2021 22:20
question
Mathematics, 27.01.2021 22:20
question
Mathematics, 27.01.2021 22:20
Questions on the website: 13722360