Skip to content

ameera3/quickSort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quickSort

Usage

To compile, type "make." To run the program, type "./quickSort QuickSort.txt" where QuickSort.txt is an input file containing the numbers 1 through 10000 inclusive in some unsorted order.

Introduction

The command line program quickSort.cpp first reads the file QuickSort.txt, which contains the integers 1 through 10000 inclusive in some unsorted order. The program outputs the number of comparisons made depending on the choice of pivot.

Option 1: pivot is always the first element in the array.

Option 2: pivot is always the last element in the array.

Option 3: pivot is always the median of the first, last, and middle elements of the array.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published