akuchan
YUI
- Joined
- Apr 4, 2006
- Messages
- 53
- Gender
- Male
- HSC
- 2007
the enhanced algorithm in the sam davis book... i dont really understand what's
CurrentItem = 2
CurrentDataItem = Item(CurrentItem)
how exactly are they related.. is the CurrentItem like the index.. and the CurrentDataItem the value of that index? =/
but what i really dont get is ths shuffle part
If CurrentDataItem < Item(Comparison) THEN
ShuffleItem = CurrentItem
WHILE ShuffleItem > Comparison
Item(ShuffleItem) = Item(ShuffleItem - 1)
Subtract 1 from shuffleItem
ENDWHILE
Item(Comparison) = CurrentDataItem
from what i actually get from that.. if the value of the current data is smaller than the value of the comparison data, then ...shuffleitem = currentitem..
Item(ShuffleItem) = Item(ShuffleItem - 1)
Subtract 1 from shuffleItem
that part i really dont get, whats item(shuffleitem) is that the value of the shuffle item or something, can anyone explain that whole shuffle part =/
CurrentItem = 2
CurrentDataItem = Item(CurrentItem)
how exactly are they related.. is the CurrentItem like the index.. and the CurrentDataItem the value of that index? =/
but what i really dont get is ths shuffle part
If CurrentDataItem < Item(Comparison) THEN
ShuffleItem = CurrentItem
WHILE ShuffleItem > Comparison
Item(ShuffleItem) = Item(ShuffleItem - 1)
Subtract 1 from shuffleItem
ENDWHILE
Item(Comparison) = CurrentDataItem
from what i actually get from that.. if the value of the current data is smaller than the value of the comparison data, then ...shuffleitem = currentitem..
Item(ShuffleItem) = Item(ShuffleItem - 1)
Subtract 1 from shuffleItem
that part i really dont get, whats item(shuffleitem) is that the value of the shuffle item or something, can anyone explain that whole shuffle part =/