Display the number of comparisons made Display the number of comparisons made

# Display the number of comparisons made display the

• 7

This preview shows page 1 - 3 out of 7 pages.

search to search for a specific student. Display the number of comparisons made. Display the number of comparisons made in the sorting algorithm and binary search. Programming Exercise B Use bubble sort to sort out 5 students in a list (last name), then apply binary search to search for a specific student. Display the number of comparisons made in the sorting algorithm and binary search. Programming Exercise C Use insertion sort to sort out 5 students in a list (last name), then apply binary search to search for a specific student. Display the number of comparisons made in the sorting algorithm and binary search. Programming Exercise D Create a program that will sort the data set, {12, 11, 13, 5, 6, 7} using mergesort. The program must display all steps performed.
5. DATA ANALYSIS: 1. Differentiate bubble sort, insertion sort, mergesort, radix sort, and counting sort in terms of time complexity. Give scenarios on when to best use each sorting algorithm. - The difference between bubble sort, insertion sort and mergesort radix sort, and counting sort in terms of time complexity are bubble sort is

#### You've reached the end of your free preview.

Want to read all 7 pages?

• Fall '16

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern