Computers and Technology

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:30, Jessieeeeey
Kto rozmawia z clamentain przez krótkofalówke w the walking dead która śledzi lee w 4 epizodzie
Answers: 1
image
Computers and Technology, 22.06.2019 22:30, MoneyMike42
Alex’s family members live in different parts of the world. they would like to discuss the wedding plans of one of their distant relatives. however, alex wants all the family members to talk to each other simultaneously so that they can make decisions quickly. which mode of internet communication should they use? a. blog b. email c. wiki d. message board e. instant messaging
Answers: 2
image
Computers and Technology, 22.06.2019 23:20, nina1390
How can you tell if someone sent you a text message to your email instead of a email
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, kreshnikolloma
You wanted to look up information about alzheimer's, but you were unsure if it was spelled "alsheimer's" or "alzheimer's." which advanced search strategy would be useful? a) a boolean search b) using a wild card in your search c) trying different search engines d) doing a search for "alsheimer's not alzheimer's" asap. ill give brainlist.
Answers: 1
Do you know the correct answer?
In this exercise, you are not making a program. Instead, your pretend that you are a computer and pe...

Questions in other subjects:

Konu
Mathematics, 24.01.2020 02:31