Introduction to Algorithm and Data Structures - Project | ITCS 6114, Study Guides, Projects, Research of Computer Science

Material Type: Project; Professor: Chen; Class: Algorithm & Data Structures; Subject: Computer Science; University: University of North Carolina - Charlotte; Term: Spring 2009;

Typology: Study Guides, Projects, Research

Pre 2010

Uploaded on 07/28/2009

koofers-user-54g
koofers-user-54g 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Project 1
ITCS 6114/8114 Spring 2009
Due February 23
Implement the following improvements to the Quick Sort and find out the percentage
of key comparisons that can be saved in each case. Using randomly generated 1000
integers as input for sorting. Repeat the experiments 1000 times for each case to get the
average percentage reduction in key comparisons.
Case 1) Median of Three Partition
Case 2) Sort partition of size less than 16 directly using Insertion Sort
Case 3) Combine both techniques above.

Partial preview of the text

Download Introduction to Algorithm and Data Structures - Project | ITCS 6114 and more Study Guides, Projects, Research Computer Science in PDF only on Docsity!

Project 1 ITCS 6114/8114 Spring 2009 Due February 23 Implement the following improvements to the Quick Sort and find out the percentage of key comparisons that can be saved in each case. Using randomly generated 1000 integers as input for sorting. Repeat the experiments 1000 times for each case to get the average percentage reduction in key comparisons. Case 1) Median of Three Partition Case 2) Sort partition of size less than 16 directly using Insertion Sort Case 3) Combine both techniques above.