Question: Write a complete JAVA program to do the following tasks: Sort a list of items using SELECTION SORT AND MERGE SORT algorithms. The list

Write a complete JAVA program to do the following tasks: Sort a list of items using SELECTION SORT AND MERGE SORT algorithms. The list of items is stored in an input file name INPUT.TXT Your program should be able to read the items from the input file and store it in an array for processing. The output will be displayed on the screen. The order of the items will be displayed for each iteration of the loop, so that we can observe the process of sorting is being done. Then prompt the user to search for an item from the list. Search the item using a) Sequential search b) Binary Search algorithms. Display number of comparisons taken for each algorithm for a i) Successful search ii) Unsuccessful Search
Step by Step Solution
3.39 Rating (152 Votes )
There are 3 Steps involved in it
import javaioBufferedReader import javaioFileReader import javaioIOException import ja... View full answer
Get step-by-step solutions from verified subject matter experts
