Question: For an assignment you wrote the method sortByLargestDepth in the class QuakeSortInPlace to sort earthquakes by their depth from largest depth to smallest depth using
For an assignment you wrote the methodsortByLargestDepthin the classQuakeSortInPlaceto sort earthquakes by their depth from largest depth to smallest depth using the selection sort algorithm. Modify this method to do exactly50 passesand then modifytestSortto run this method on the fileearthQuakeDataDec6sample2.atom. The file may not be completely sorted as there are more than 50 quakes in the file.
After running your program of 50 Selection sort passes on this file, what is the depth of the last earthquake in the ArrayList?
Note: This question has variations. If you attempt this quiz multiple times, make sure you are using the correct number of sort passes!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
