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 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
Get step-by-step solutions from verified subject matter experts
