Sort 1 - CSC2100A Tutorial Sorting Spring 2006/2007...

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

View Full Document Right Arrow Icon
1 CSC2100A Spring 2006-2007 1 CSC2100A Tutorial Sorting Spring 2006/2007
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 CSC2100A Spring 2006-2007 2 Sorting - Bubble Sort
Background image of page 2
3 CSC2100A Spring 2006-2007 3 Sorting - Insertion Sort
Background image of page 3

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

View Full DocumentRight Arrow Icon
4 CSC2100A Spring 2006-2007 4 Sorting - Shell Sort
Background image of page 4
5 CSC2100A Spring 2006-2007 5 Sorting - Shell Sort Example: Sort 77 93 60 53 14 81 38 24 27 92 39 29 88 77 93 60 53 14 81 38 24 27 92 39 29 88 Phase 3 2 1 Increment 5 3 1 Initial
Background image of page 5

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

View Full DocumentRight Arrow Icon
6 CSC2100A Spring 2006-2007 6 Sorting - Shell Sort Example: Sort 77 93 60 53 14 81 38 24 27 92 39 29 88 77 93 60 53 14 81 38 24 27 92 39 29 88 Start phase 3, as the increment for phase 3 is 5, therefore we divide the numbers into 5 independent subarrays Phase 3 2 1 Increment 5 3 1
Background image of page 6
7 CSC2100A Spring 2006-2007 7 Sorting - Shell Sort Example: Sort 77 93 60 53 14 81 38 24 27 92 39 29 88 39 29 24 27 14 77 38 60 53 92 81 93 88 Phase 3 finished.
Background image of page 7

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

View Full DocumentRight Arrow Icon
CSC2100A Spring 2006-2007 8 Sorting - Shell Sort Example: Sort 77 93 60 53 14 81 38 24 27 92 39 29 88 39 29 24 27 14 77 38 60 53 92 81 93 88 Phase
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 18

Sort 1 - CSC2100A Tutorial Sorting Spring 2006/2007...

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

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