Behavior of java implementations

Assignment Help JAVA Programming
Reference no: EM131565681

Need to choose one sorting algorithm - Choose quick sort.

The first project involves benchmarking the behavior of Java implementations of one of the following sorting algorithms, bubble sort, selection sort, insertion sort, Shell sort, merge sort, quick sort or heap sort. You must post your selection in the "Ask the Professor" conference. No more than five students may select any one algorithm.

Project 1 involves writing the code to perform the benchmarking of the algorithm you selected. Your program must include both an iterative and recursive version of the algorithm. You do not have to write them yourself, you may take them from some source, but you must reference your source. You must identify some critical operation to count that reflects the overall performance and modify each version so that it counts that operation. In addition to counting critical operations you must measure the actual run time. You are to write code to determine their efficiency based on the number of times that the critical operation is executed and actual time measurements. In addition, you should examine the result of each call to verify that the data has been properly sorted to verify the correctness of the algorithm. If the array is not sorted, an exception should be thrown. It should also randomly generate data to pass to the sorting methods. It should produce 50 data sets for each value of n, the size of the data set and average the result of those 50 runs. The exact same data must be used for the iterative and the recursive algorithms. It should also create 10 different sizes of data sets. Choose sizes that will clearly demonstrate the trend as n becomes large. You should also calculate the standard deviation of the critical operation counts and time measurement for the 50 runs of each data set size as a way to gauge the data sensitivity of the algorithm. Your program must be written to conform to the following design:

2065_Java.jpg

Your output should look at follows:

Dat a Set Size n Iterative Recursive

 

Average Critical Operation Count

Standard Deviation of Count

Average Execution Time

Standard Deviation of Time

Average Critical Operation Count

Standard Deviation of Count

Average Execution Time

Standard Deviation of Time

100

 

 

 

 

 

 

 

 

200

 

 

 

 

 

 

 

 

The data set sizes above are examples. You are to select the actual data set sizes. On the due date for project 1, you are to submit a .zip file that includes the source code of your complete program. All the classes should be in the default package.

Grading of the project will be based on the following items:

• Adhered to the specified design
• Produced the required output in the specified format
• Correctly calculated the statistics
• Chose good test sizes and good random data
• Correctly implemented the sorting algorithm

Reference no: EM131565681

Questions Cloud

Explain crime can go beyond the immediate victim : Explain how the damage of a crime can go beyond the immediate victim. Describe how the restorative justice process differs from contemporary criminal justice
Dispensing the wrong medication to patient : Shewhart's Theory for Statistical Process Control (SPC) requires a change in thinking from error detection to error prevention and has a number of benefits.
Identify policies within the field of criminal justice : Identify the purposes and types of policies within the field of criminal justice. Describe the relationship between research and policy development.
Identify three different types of diversity situations : Identify three different types of diversity situations or cultural dilemmas based on different types of cultural and group associations.
Behavior of java implementations : Behavior of Java implementations of one of the following sorting algorithms, bubble sort, selection sort, insertion sort, Shell sort, merge sort, quick sort
Explain the individual need are provided by criminal justice : What are individual need are provided by Criminal Justice
What is its applicability to the study of juvenile justice : Briefly discuss the article. What are the main points? What is its applicability to the study of juvenile justice.
Estimate the mean highway mileage for suvs : Even before the record gas prices during the summer of 2008, an article written by Will Lester of the Associated Press reported on a poll in which 80%.
Discusses international drug smuggling enterprises : discusses the organizational structure of international drug smuggling enterprises

Reviews

Write a Review

JAVA Programming Questions & Answers

  Why wont the following given program compile

Why won't the following program compile? Correct it so that it will compile and properly implement Comparable

  Java program to write-read data from user using i-o function

Write java program to write and read data from user using I/O functions. Describe class with data members name[20],emp_id,basic pay,net pay.calculate all the allowances.

  Using notepad that implements a basic text analyzer

Write a Java application using Notepad that implements a basic Text Analyzer.

  Write a program that displays a countdown first

Write a program that displays a countdown first, and then displays the position and velocity of an object for every second it drops, as long as it is above 500 feet

  Algorithm design and development - the graduate designs and

algorithm design and development - the graduate designs and develops algorithms for problem solving and implements

  Show how to distinguish the output of BBS

Consider the variation on the Blum Blum Shub generator (mod n = pq). Show how to distinguish the output of BBS* from a truly random source, even without knowing L or n

  Driveway is a "last-in, first-out" stack. of course

Driveway is a "last-in, first-out" stack. Of course, when a car owner retrieves a vehicle that wasn't the last one in, the cars blocking it must temporarily move to the street so that the requested vehicle can leave. Write a program in Java that m..

  Numerical solution of a two-point boundary-value problem

How to combine both Secant and Runge-Kutta methods and make it to the two-point boundary-value - Numerical Solution of a Two-Point Boundary

  Write a program that converts number from binary to decimal

write a program that Converts a Number from Binary to Decimal  by using reading keyboard input.

  Find information about scripting languages

Describe the primary features, strengths, and weaknesses of each language - Identify a task that would be an appropriate use of each language.

  Write application that will keep track of number of customer

Write Java application that will keep track of a number of customer's purchases at local discount stand. Customers will know exactly how many items they will purchase, so use an appropriate loop on this lab and let's keep the rules simple.

  Question 1a give explanation amp the significance of

question 1a give explanation amp the significance of enterprise java beans ejb in software development.b explain the

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd