This preview shows pages 1–8. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: 1 3Way Partitioning 3way 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 3Way Partitioning 3way 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 3Way Partitioning 3way 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 3Way Partitioning 3way 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 3Way Partitioning 3way 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 3Way Partitioning 3way 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 3Way Partitioning 3way 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.
 Fall '08
 Jamespotvein

Click to edit the document details