subject
Engineering, 19.05.2021 20:00 alaj8600

Java code Implement MaxHeap sort algorithms on your computer. Run timings for each algorithm
on arrays of size n = 10i

for i ranging from 1 to as large a value as your computer’s

memory and compiler will allow. Implement the given algorithms in Java-Generic-
Programing, which provide the following menu

1. Insert
2. Delete
3. Search
4. Print ( sorted array , the array size and sort time to the screen)
5. Quit
Then you need to answer the following questions :
ï‚· Use the findings that are computed by your program to produce an analysis
document containing a discussion and plots (you’ll plot execution time vs n)
showing the performance of the given algorithms as n (the length of the input
array) changes.
ï‚· Then modify your findings by count and print the number of comparisons. This
should be reported as a third column in your output to the screen. Then you need
to discuss your findings in the analysis document.
(Hint: you can use the following segment of code to obtain the execution time and don’t forget to
include #include into your program)
time_t start, end;
double dif;
time (&start); /*Get the current calendar time as a time_t object.*/
// perform the task;
time (&end); /*Get the current calendar time as a time_t object.*/
dif = difftime (end, start); /* Calculates the difference in seconds as a floating point double

between time1 and time2.*/

printf ("It took you %.2lf seconds \n", dif );

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 14:10
When at a point two solid phase changes to one solid phase on cooling then it is known as a) eutectoid point b) eutectic point c) peritectic point d) peritectoid point
Answers: 3
question
Engineering, 04.07.2019 18:10
Ariver flows from north to south at 8 km/h. a boat is to cross this river from west to east at a speed of 20 km/h (speed of the boat with respect to the earth/ground). at what angle (in degrees) must the boat be pointed upstream such that it will proceed directly across the river (hint: find the speed of the boat with respect to water/river)? a 288 b. 21.8 c. 326 d. 30.2
Answers: 3
question
Engineering, 04.07.2019 18:20
A3-mm-thick panel of aluminum alloy (k 177 w/m-k, c 875 j/kg-k and ? = 2770 kg/m) is finished on both sides with an epoxy coating that must be cured at or above t,-150°c for at least 5 min. the production line for the curing operation involves two steps: (1) heating in a large oven with air at ts,0-175°c and a convection coefficient of h, 40 w/m2. k, and (2) cooling in a large chamber with air at 25°c and a con- vection coefficient of he 10 w/m2.k. the heating portion of the process is conducted over a time interval te which exceeds the ime required to reach 150°c by 5 min (h = r + 300 s). the coating has an emissivity of ? = 0.8, and the temperatures of the oven and chamber walls are 175 and 25°c, respectively. if the panel is placed in the oven at an initial temperature of 25°c and removed from the chamber at a safe-to-touch tempera ture of 37°c, what is the total elapsed time for the two-step curing operation?
Answers: 3
question
Engineering, 04.07.2019 19:10
The sum of the normal stresses does not change as the stress state rotates through an angle. a)-trune b)- false
Answers: 2
You know the right answer?
Java code Implement MaxHeap sort algorithms on your computer. Run timings for each algorithm
...
Questions
question
Biology, 14.01.2021 08:20
Questions on the website: 13722360