Answered step by step
Verified Expert Solution
Question
1 Approved Answer
EXERCISE 2 Name Date Section 1 ) Let's experiment with datasets other than those in the examples. Start the Sorting app. 2 ) In the
EXERCISE Name Date Section Let's experiment with datasets other than those in the examples. Start the Sorting app. In the text area where it says Your data set goes here, remove the text and type in the following numbers. Press Enter after every number except the last. Are these numbers sorted? Are they arranged randomly? What will the final sorted list look like? Now let's see how our three sorting algorithms perform. Run each of the three algorithms and write down how many comparisons each required to finish the job. Note: You don't have to reenter the numbers after each sort, because the app refreshes the numbered list on the left with the values you typed into the big text area but does not change the big text area. Selection sort Bubble sort Quicksort LA EXERCISE Name Date Section Now for yet another dataset. Start the Sorting app. In the text area where it says Your data set goes here, remove the text and type in the following numbers. Press Enter after every number except the last. Are these numbers sorted? Are they arranged randomly? What will the final sorted list look like? Now let's see how our three sorting algorithms perform. Run each of the three algorithms and write down how many comparisons each required to finish the job. Selection sort Bubble sort Quicksort Searching for the Right Sort I Now let's see how our three sorting algorithms perform. Run each of the three algorithms and write down how many comparisons each required to finish the job. Selection sort Bubble sort Quicksort Searching for the Right Sort Which is the fastest? Rerun the quicksort algorithm and describe what happens to the number How is quicksort's behavior on this dataset different than its behavior on the previous dataset? Laboratory EXERCISE Date Name Section Start the Searching app. Pull down the algorithm menu so that Binary search is chosen. This exercise may be a little tedious, but there's a reason for it so bear with it For each value in the numbered list to the left, try to find it Type it into the top text area and click the search button. Then write down how many tries were required to find it What is the greatest number of tries needed? What is the least number needed? What number of tries appears most frequently in your result list? There are values in the list that is searched. Suppose you had values. What do you guess would be the most frequent number of searches? What if your list had values?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started