Question: 1 ) General Description In this assignment you will use and test two array - based sorting algorithms selection sort and merge sort. You will
General Description
In this assignment you will use and test two arraybased sorting algorithms selection sort and merge sort. You will need SystemnanoTime to measure running time.
Specific Guidelines
Create a new project that contains the following classes:
a XSort: includes selection sort and merge sort algorithms as methods.
b Driver: for testing
XSort: two primary methods should be implemented: selection sort and merge sort. Add any necessary private methods and states that are needed to help the two sort algorithms.
The Driver class should provide a menubased interaction with the user. Menu items should be at least:
a Generate random array of BigDecimalBigInteger datatype
b Print ONLY first elements of the array
c Selection sort the array
d Merge sort the array
e Print timing of the two algorithms each experiment different times
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
