subject

In this exercise, you are not making a program. Instead, your pretend that you are a computer and perform the exercise in your head writing the results and steps on paper. There is in2.txt input file that contain numbers (heap elements) separated by whitespaces. element from left to right
Read the numbers from the file and create a heap. Insert an element by from the file to the heap. The minimum element must be in the root of the heap tree. an
On paper, draw the heap tree after the first element is inserted, then the heap tree after the second element is inserted, etc. Draw the heap tree on each step including the final heap tree.
You may draw multiple trees on one page but large enough to be recognizable. Scan the pages and submit them (you can use any common file format, for example PDF or PNG).
If you find the building heap from in2.txt file is difficult, try to build another heap from in3.txt - the resulting tree has to be as in in3_sample. txt file. There is no need to submit drawings for in3.txt. in2.txt Notepad -
File Edit Format 12 79 21 16 24 33 19 68 65 26 32 18 3 X in3.txt Notepad View Help File Edit Format 13 21 16 24 31 19 68 65 26 32 X

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. what does it indicate when a website displays https instead of http? a. the website is secure. b. there is no secure sockets layer. c. the secure sockets layer is hidden. d. the website is not secure.
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
An english teacher would like to divide 8 boys and 10 girls into groups, each with the same combination of boys and girls and nobody left out. what is the greatest number of groups that can be formed?
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the
Answers: 1
question
Computers and Technology, 23.06.2019 18:50
Ais a picture icon that is a direct link to a file or folder
Answers: 1
You know the right answer?
In this exercise, you are not making a program. Instead, your pretend that you are a computer and pe...
Questions
question
World Languages, 24.08.2019 05:50
question
Social Studies, 24.08.2019 05:50
question
Mathematics, 24.08.2019 05:50
question
Mathematics, 24.08.2019 05:50
Questions on the website: 13722367