Title: Quicksort
1Quicksort
P
S
E
U
D
O
M
Y
T
H
I
C
A
L
qsort pseudomythical
2Quicksort
P
S
E
U
D
O
M
Y
T
H
I
C
A
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
partition pseudomythicalqsort aceidhqsort
ytouspm
qsort pseudomythical
3Quicksort
P
S
E
U
D
O
M
Y
T
H
I
C
A
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
partition pseudomythicalqsort aceidhqsort
ytouspm
qsort pseudomythical
4Quicksort
P
S
E
U
D
O
M
Y
T
H
I
C
A
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
partition aceidhqsort acedqsort i
partition pseduomythicalqsort aceidhqsort
ytouspm
qsort pseudomythical
5Quicksort
P
S
E
U
D
O
M
Y
T
H
I
C
A
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
partition aceidhqsort acedqsort i
partition pseduomythicalqsort aceidhqsort
ytouspm
qsort pseudomythical
6Quicksort
P
S
E
U
D
O
M
Y
T
H
I
C
A
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
partition acedqsort acqsort e
partition aceidhqsort acedqsort i
partition pseduomythicalqsort aceidhqsort
ytouspm
qsort pseudomythical
7Quicksort
P
S
E
U
D
O
M
Y
T
H
I
C
A
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
partition acedqsort acqsort e
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
partition aceidhqsort acedqsort i
partition pseduomythicalqsort aceidhqsort
ytouspm
qsort pseudomythical
8Quicksort
P
S
E
U
D
O
M
Y
T
H
I
C
A
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
partition acqsort aqsort empty
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
partition acedqsort acqsort e
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
partition aceidhqsort acedqsort i
partition pseduomythicalqsort aceidhqsort
ytouspm
qsort pseudomythical
9Quicksort
P
S
E
U
D
O
M
Y
T
H
I
C
A
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
partition acqsort aqsort empty
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
partition acedqsort acqsort e
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
partition aceidhqsort acedqsort i
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
partition pseduomythicalqsort aceidhqsort
ytouspm
qsort pseudomythical
10Quicksort
P
S
E
U
D
O
M
Y
T
H
I
C
A
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
partition acqsort aqsort empty
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
partition acedqsort acqsort e
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
partition aceidhqsort acedqsort i
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
partition pseduomythicalqsort aceidhqsort
ytouspm
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
qsort pseudomythical
11Quicksort
P
S
E
U
D
O
M
Y
T
H
I
C
A
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
partition acedqsort acqsort e
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
partition aceidhqsort acedqsort i
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
partition pseduomythicalqsort aceidhqsort
ytouspm
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
qsort pseudomythical
12Quicksort
P
S
E
U
D
O
M
Y
T
H
I
C
A
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
partition aceidhqsort acedqsort i
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
partition pseduomythicalqsort aceidhqsort
ytouspm
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
qsort pseudomythical
13Quicksort
P
S
E
U
D
O
M
Y
T
H
I
C
A
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
E
I
D
H
M
Y
T
O
U
S
P
L
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
partition pseudomythicalqsort aceidhqsort
ytouspm
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
A
C
I
D
H
M
Y
T
O
U
S
P
L
E
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
qsort pseudomythical
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
14Quicksort
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
partition pseudomythicalqsort aceidhqsort
ytouspm
qsort pseudomythical
15Quicksort
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
partition ytouspmqsort emptyqsort touspy
partition pseduomythicalqsort aceidhqsort
ytouspm
qsort pseudomythical
16Quicksort
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
L
E
I
Y
T
O
U
S
P
partition ytouspmqsort emptyqsort touspy
partition pseduomythicalqsort aceidhqsort
ytouspm
qsort pseudomythical
17Quicksort
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
L
E
I
Y
T
O
U
S
P
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
partition ytouspmqsort emptyqsort touspy
partition pseduomythicalqsort aceidhqsort
ytouspm
qsort pseudomythical
18Quicksort
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
L
E
I
Y
T
O
U
S
P
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
partition touspyqsort touspqsort empty
partition ytouspmqsort emptyqsort touspy
partition pseduomythicalqsort aceidhqsort
ytouspm
qsort pseudomythical
19Quicksort
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
L
E
I
Y
T
O
U
S
P
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
partition touspyqsort touspqsort empty
partition ytouspmqsort emptyqsort touspy
partition pseduomythicalqsort aceidhqsort
ytouspm
qsort pseudomythical
20Quicksort
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
L
E
I
Y
T
O
U
S
P
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
partition touspqsort oqsort ust
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
O
T
U
S
P
L
E
I
partition touspyqsort touspqsort empty
partition ytouspmqsort emptyqsort touspy
partition pseduomythicalqsort aceidhqsort
ytouspm
qsort pseudomythical
21Quicksort
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
L
E
I
Y
T
O
U
S
P
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
partition touspqsort oqsort ust
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
O
T
U
S
P
L
E
I
partition touspyqsort touspqsort empty
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
partition ytouspmqsort emptyqsort touspy
partition pseduomythicalqsort aceidhqsort
ytouspm
qsort pseudomythical
22Quicksort
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
L
E
I
Y
T
O
U
S
P
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
partition touspqsort oqsort ust
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
O
T
U
S
P
L
E
I
partition touspyqsort touspqsort empty
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
partition ytouspmqsort emptyqsort touspy
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
partition pseduomythicalqsort aceidhqsort
ytouspm
qsort pseudomythical
23Quicksort
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
L
E
I
Y
T
O
U
S
P
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
partition ustqsort sqsort u
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
partition touspqsort oqsort ust
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
O
T
U
S
P
L
E
I
partition touspyqsort touspqsort empty
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
partition ytouspmqsort emptyqsort touspy
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
partition pseduomythicalqsort aceidhqsort
ytouspm
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
qsort pseudomythical
24Quicksort
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
L
E
I
Y
T
O
U
S
P
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
partition ustqsort sqsort u
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
partition touspqsort oqsort ust
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
O
T
U
S
P
L
E
I
partition touspyqsort touspqsort empty
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
partition ytouspmqsort emptyqsort touspy
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
partition pseduomythicalqsort aceidhqsort
ytouspm
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
qsort pseudomythical
25Quicksort
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
L
E
I
Y
T
O
U
S
P
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
partition ustqsort sqsort u
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
partition touspqsort oqsort ust
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
O
T
U
S
P
L
E
I
partition touspyqsort touspqsort empty
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
partition ytouspmqsort emptyqsort touspy
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
partition pseduomythicalqsort aceidhqsort
ytouspm
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
T
S
U
qsort pseudomythical
26Quicksort
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
L
E
I
Y
T
O
U
S
P
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
partition touspqsort oqsort ust
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
O
T
U
S
P
L
E
I
partition touspyqsort touspqsort empty
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
partition ytouspmqsort emptyqsort touspy
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
partition pseduomythicalqsort aceidhqsort
ytouspm
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
T
S
U
qsort pseudomythical
27Quicksort
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
L
E
I
Y
T
O
U
S
P
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
O
T
U
S
P
L
E
I
partition touspyqsort touspqsort empty
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
partition ytouspmqsort emptyqsort touspy
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
partition pseduomythicalqsort aceidhqsort
ytouspm
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
T
S
U
qsort pseudomythical
28Quicksort
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
L
E
I
Y
T
O
U
S
P
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
O
T
U
S
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
partition ytouspmqsort emptyqsort touspy
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
partition pseduomythicalqsort aceidhqsort
ytouspm
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
T
S
U
qsort pseudomythical
29Quicksort
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
L
E
I
Y
T
O
U
S
P
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
O
T
U
S
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
partition pseudomythicalqsort aceidhqsort
ytouspm
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
T
S
U
qsort pseudomythical
30Quicksort
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
L
E
I
Y
T
O
U
S
P
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
O
T
U
S
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
T
S
U
qsort pseudomythical
31Quicksort
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
L
E
I
Y
T
O
U
S
P
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
T
O
U
S
P
L
E
I
A
C
D
H
M
Y
O
T
U
S
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
T
U
S
A
C
D
H
M
Y
O
P
L
E
I
T
S
U