Answered step by step
Verified Expert Solution
Link Copied!

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 10 name files, using the algorithms (you will obtain 10 runtimes in total).
Plot the runtimes of the program on a box and whisker diagram.
In a small paragraph, of about 3 lines, discuss your findings.
In another small paragraph of about 3 lines, compare the performance of bubble sort and quicksort. You
should also consider time complexity and the factors influencing time complexity.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

More Books

Students also viewed these Databases questions