Question: Derive the random number N as many as entered from the keyboard. Each number does not have to be unique. These generated numbers should be

 Derive the random number N as many as entered from the

Derive the random number N as many as entered from the keyboard. Each number does not have to be unique. These generated numbers should be printed in the input.txt file. generated numbers must be shuffled with a hash ( shuffle ) algorithm before being converted into a Heap tree. You determine the mixing method and specify this method in your codes. Write the push and pop functions . Read all the numbers in the text file up to EOF and transfer them to Heap. Then Heap Sort with sort, print the result to the output file (output.txt). Files to be submitted: - randomNumberGenerator.c - shuffle.c - myHeap.c Descriptions - The randomNumberGenerator.c file should consist of 15% one-digit, 15% two-digit, 15% three-digit ... numbers . - For N=1,000,000 your codes should be able to work

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!