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

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!