Question: Q3 Quick Sort Short Answers 7.5 Points For each subquestion, provide your answer to the Quick Sort questions stated below using a portion of the

Q3 Quick Sort Short Answers 7.5 Points For each subquestion, provide your answer to the Quick Sort questions stated below using a portion of the partition step algorithm covered in lecture and the textbook pasted below: while leftmark = leftmark and alist[rightmark] >= pivotvalue: rightmark = rightmark - 1 Q3.1 2.5 Points Briefly (In 1 - 2 sentences) state the purpose of positioning leftmark and rightmark in these two while loops. Enter your answer here Q3.2 5 Points Briefly (In 1 - 2 sentences) state whether or not these while loops will run in O(1) time in the best case scenario where alist has n unique elements. If these while loops do not run in O(1) time in the best case scenario, then explain what the Big- O notation is for these loops. Enter your answer here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
