Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Study the scenario and complete the questions that follow: A Map Application for Cartographers: Sorting Part II Development of the application is underway. There are
Study the scenario and complete the questions that follow:
A Map Application for Cartographers: Sorting Part II
Development of the application is underway. There are still a few more design decisions the cartographers
heed your help on
After having shown the cartographers the performance of bubble sort, you recommend using the QuickSort
algorithm. To prove to them that QuickSort is faster on average, you need to create another test, to measure
the speed of QuickSort. You are required to:
Create a program call DemoQuickSort.cs that will read in a list of names of places from a text file called
places.txt sorts the names in ascending order using the quicksort algorithm, and prints the list to a new text
file in the same format as the input file Your program should prompt the user for the location of the input
and output files.
Calculate the runtime of the sorting algorithm in the program note: time the runtime of the actual sorting
algorithm only. Do not include the file IO in this You may obtain the system time at the beginning and end of
the sorting algorithm to calculate this.
Sort each of the name files, using the algorithms you will obtain runtimes in total
Plot the runtimes of the program on a box and whisker diagram.
In a small paragraph, of about lines, discuss your findings.
In another small paragraph of about lines, compare the performance of bubble sort and quicksort. You
should also consider time complexity and the factors influencing time complexity.
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