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 02:50
Define a class named movie. include private fields for the title,year, and name of the director. include three public functions withprototypes void movie: : settitle(cstring); , voidmovie: : setyear(int); , void movie: : setdirector(string); . includeanother function that displays all the information about a movie.write a main() function that declares a movie object namedmyfavoritemovie. set and display the object's fields.this is what i have but know its wrong since it will notcompile: #include#includeusing namespace std; //class declarationclass movie{private: string movietitle ; string movieyear; string directorname; public: void settitle(string title); void setyear(string year); void setdirector(string director); void displayinfo(); }; //class implementationvoid movie: : settitle(string title){ movietitle = title; cout< < "what is the title of themovie? "< > temp; myfavoritemovie.settitle(temp); cout< < "enter movie year"< > temp; myfavoritemovie.setyear(temp); cout< < "enter director'sname"< > temp; myfavoritemovie.setdirector(temp); //display all the data myfavoritemovie.displayinfo(); system("pause"); return 0; this code is not entirely mine someone on cramster edited my firstcode but then i try manipulating the new code and i still get acompile error message : \documents\visual studio 2008\projects\movie\movie\movie.cpp(46) : error c2679: binary '< < ' : no operator found which takes aright-hand operand of type 'std: : string' (or there is no acceptableconversion)c: \program files (x86)\microsoft visual studio9.0\vc\include\ostream(653): could be'std: : basic_ostream< _elem,_traits> & std: : operator< < > (std: : basic_ostream< _elem,_traits> & ,const char *)w
Answers: 1
question
Computers and Technology, 24.06.2019 02:20
Peter is thinking of a number which isless than 50. the number has 9 factors.when he adds 4 to the number, itbecomes a multiple of 5. what is thenumber he is thinking of ?
Answers: 1
question
Computers and Technology, 24.06.2019 21:30
How do i copy and paste equations and pictures like math graphs, to post on this site to get my questions answered?
Answers: 2
question
Computers and Technology, 25.06.2019 00:00
He computer component that disperses heat from the microprocessor to the cooling fan is a cooler thermometer heat sink
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
Mathematics, 02.01.2022 03:20
question
English, 02.01.2022 03:20
question
German, 02.01.2022 03:30
question
Mathematics, 02.01.2022 03:30
question
Computers and Technology, 02.01.2022 03:30
question
Mathematics, 02.01.2022 03:30
question
Mathematics, 02.01.2022 03:30