Quicksort Help Center

Learn more

Warning: The hard deadline has passed. You can attempt it, but you will not get credit for it. You are welcome to try it as a learning exercise.

To specify an array or sequence of values in an answer, separate the values in
the sequence by whitespace. For example, if the question asks for the first
ten powers of two (starting at 1), then the following answer is acceptable:

1 2 4 8 16 32 64 128 256 512

If you wish to discuss a particular question and answer in the forums, please
post the entire question and answer, including the seed (which can be used by
the course staff to uniquely identify the question) and the explanation (which
contains the correct answer).

Question 1

(seed = 680749)
Give the array that results after applying the standard 2-way partitioning
subroutine from lecture to the following array:

61 13 37 73 97 44 72 56 85 29 10 57

Your answer should be a sequence of 12 integers, separated by whitespace.

Recall, in the standard 2-way partitioning subroutine, the leftmost entry is the partitioning item.

Question 2

(seed = 918325)
Give the array that results after applying Dijkstra's 3-way partitioning
subroutine from lecture to the following array:

52 52 52 52 59 86 46 10 90 49

Your answer should be a sequence of 10 integers, separated by whitespace.

Question 3

(seed = 378091)
Which of the following statements about quicksort are true? Check all that apply. Unless otherwise specified, assume that quicksort refers to the recursive, randomized version of quicksort (with no extra optimizations) and uses the 2-way partitioning algorithm described in lecture.
    
You cannot submit your work until you agree to the Honor Code. Thanks!