Presentation in pdf format - University of Minnesota Duluth
Presentation in pdf format - University of Minnesota Duluth
Presentation in pdf format - University of Minnesota Duluth
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
GPU Sort Cont<strong>in</strong>ued…<br />
Bitonic Sequence<br />
A sequence which has at most one local m<strong>in</strong>imum or<br />
maximum<br />
When you break a bitonic sequence at the m<strong>in</strong>imum or<br />
maximum you get two sorted sequences, one ascend<strong>in</strong>g and<br />
the other descend<strong>in</strong>g<br />
Examples: 1,2,3,4,5,6,7,8 2,5,8,10,7,4,3,1<br />
9,8,5,3,6,10,11,12<br />
<br />
<br />
splitt<strong>in</strong>g the second sequence at 10 gives us 2,5,8,10 and 7,4,3,1 which<br />
are sequences <strong>in</strong> ascend<strong>in</strong>g and descend<strong>in</strong>g order respectively<br />
In the third example, the m<strong>in</strong>imum is 3 and splitt<strong>in</strong>g the sequence at<br />
3 gives us 9, 8, 5, 3 and 6, 10, 11, 12 which are sequences <strong>in</strong> descend<strong>in</strong>g<br />
and ascend<strong>in</strong>g order respectively<br />
12