Question: Hi, I need to figure out what sorting algorithm in java I would use between merge sort, quick sort, insertion sort, or selection sort in

Hi, I need to figure out what sorting algorithm in java I would use between merge sort, quick sort, insertion sort, or selection sort in the question below. I also need to know what time of structures you would use to find the top 5 most important pieces of data in the problem below.

I am running a site that measures sensors along a fault line and active geolicical sits. I have information feeding into a buffer the buffer is mo ing the information into an Array structure in my program. I need to use this Array to feed the top 5 most importatn pieces of information to my users on the website every 10 seconds. What sort of Java structures would you use and how would you manage them? (What sort of data structures and what sort of algorithms would you use for this program to find the top 5?) Be clear in 2-4 paragraphs

lets assume the type of information in the array are integers, and as for the basis I want to sort the data so that the top 5 most important integers are updated on the website every ten seconds. The top 5 most important integers are decided by the senors along the fault line.

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!