Question: Java program : Read a large text file containing integers only and sort using merge algorithm. Main must be contained in class and It must
Java program : Read a large text file containing integers only and sort using merge algorithm. Main must be contained in class and It must take one parameter, the name of the input file, and must output the sorted list to standard out (the terminal). data file need to be read and then sorted output should display in terminal. Write time/space complexity of algorithm used.
data.txt is about 7800KB in size and contains numbers separated by a newline.
Example:
3862 1357 9667 0310 9437 4648
Approach: Need to satisfy the condition for files less than 10MB in size. (no need for larger than this size).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
