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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 23:00, brooklynmikestovgphx
Suppose s, t, and w are strings that have already been created inside main. write a statement or statements, to be added to main, that will determine if the lengths of the three strings are in order by length, smallest to largest. that is, your code should determine if s is strictly shorter than t, and if t is strictly shorter than w. if these conditions hold your code should print (the boolean value) true. if not, your code should print false. (strictly means: no ties) example: if s, t, and w are "cat", "hats", and "skies" your code should print true - their lengths are 3-4-5; but if s, t, and w are "cats" "shirt", and "trust", then print false - their lengths are 4-5-5 enter your code in the box below
Answers: 2
image
Computers and Technology, 23.06.2019 10:50, whyidkmyself
Your friend kayla is starting her own business and asks you whether she should set it up as a p2p network or as a client-server network. list three questions you might ask to kayla decide which network to use and how her answers to those questions would affect your recommendation.
Answers: 2
image
Computers and Technology, 23.06.2019 15:30, jokerr6323
1. ask the user how many questions are in the quiz. 2. ask the user to enter the key (that is, the correct answers). there should be one answer for each question in the quiz, and each answer should be an integer. e. g., 34 7 13 100 81 3 9 10 321 12 might be the key for a 10-question quiz. you will need to store the key in an array. 3. ask the user to enter the answers for the quiz to be graded. there needs to be one answer for each question. note that these answers do not need to be stored; each answer can simply be compared to the key as it is entered. 4. when the user has entered all of the answers to be graded, print the number correct and the percent correct. 5. add a loop so that the user can grade any number of quizzes with a single key. after the results have been printed for each quiz, ask "grade another quiz? (y/n)." note: you only have one array (the key). you are not creating a new key for each set of quiz answers.
Answers: 3
image
Computers and Technology, 24.06.2019 04:30, NEUROPHARMACOLOGICAL
The ieee 802.11: defines standards for wireless local area network (wlan) communication protocols. identifies various computers or devices connected to a network. verifies any resource attached to another computer on a network that is different from the computer to which the user is logged on. connects multiple local area networks (lans) and wide area networks (wans).
Answers: 2
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 in other subjects:

Konu
Mathematics, 16.10.2019 00:00
Konu
Mathematics, 16.10.2019 00:00