demo-partition3 - 1 3-Way Partitioning 3-way partitioning....

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 3-Way Partitioning 3-way partitioning. ■ Choose partitioning element. ■ Scan from left ≥ element. ■ Scan from right for ≤ element. ■ Exchange. ■ Move to left or right end if equal. ■ Repeat until pointers cross. A B X W P P V P D P C Y Z P partitioned partition element unpartitioned p q 2 3-Way Partitioning 3-way partitioning. ■ Choose partitioning element. ■ Scan from left ≥ element. ■ Scan from right for ≤ element. ■ Exchange. ■ Move to left or right end if equal. ■ Repeat until pointers cross. A B X W P P V P D P C Y Z P p q 3 3-Way Partitioning 3-way partitioning. ■ Choose partitioning element. ■ Scan from left ≥ element. ■ Scan from right for ≤ element. ■ Exchange. ■ Move to left or right end if equal. ■ Repeat until pointers cross. A B X W P P V P D P C Y Z P p q 4 3-Way Partitioning 3-way partitioning. ■ Choose partitioning element. ■ Scan from left ≥ element. ■ Scan from right for ≤ element. ■ Exchange. ■ Move to left or right end if equal. ■ Repeat until pointers cross. A B X W P P V P D P C Y Z P p q swap me 5 3-Way Partitioning 3-way partitioning. ■ Choose partitioning element. ■ Scan from left ≥ element. ■ Scan from right for ≤ element. ■ Exchange. ■ Move to left or right end if equal. ■ Repeat until pointers cross. A B X W P P V P D P C Y Z P p q swap me 6 3-Way Partitioning 3-way partitioning. ■ Choose partitioning element. ■ Scan from left ≥ element. ■ Scan from right for ≤ element. ■ Exchange. ■ Move to left or right end if equal. ■ Repeat until pointers cross. A B X W P P V P D P C Y Z P p q swap me 7 3-Way Partitioning 3-way partitioning. ■ Choose partitioning element....
View Full Document

This note was uploaded on 06/25/2009 for the course MATH MAT 400 taught by Professor Jamespotvein during the Fall '08 term at University of Toronto.

Page1 / 30

demo-partition3 - 1 3-Way Partitioning 3-way partitioning....

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online