![](master03_background.gif)
FIT100
Flow Chart
Define Artist_Of
Select starting end;
name it alpha
Call beta the slot adjacent to alpha
Is Artist_Of
CD in alpha slot later than Artist_Of CD in beta slot
Is
there a
slot
following the beta
slot?
Is
there a
pair
of slots following alpha?
![](slide0028_image013.gif)
![](slide0028_image014.gif)
![](slide0028_image015.gif)
Interchange CDs in alpha & beta
![](slide0028_image017.gif)
![](slide0028_image018.gif)
![](slide0028_image019.gif)
![](slide0028_image020.gif)
![](slide0028_image021.gif)
![](slide0028_image022.gif)
Begin calling next slot beta
Advance alpha to next slot & slot after it beta
![](slide0028_image024.gif)
![](slide0028_image025.gif)
1
2
3
4
5
6
N
Y
N
N
Stop
Y
Y