Skip to content

COSC3020/quicksort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Quicksort

Implement an iterative (no recursive calls) version of quicksort. Use the template I've provided in code.js. Test your new function; I've provided some basic testing code that uses jsverify in code.test.js.

Hint: To make quicksort iterative, think about the part of the array each recursive call considers.

Runtime Analysis

Analyse the time complexity of your implementation and give a $\Theta$ bound for its worst-case runtime. Add your answer, including your reasoning, to this markdown file.