Slide 27
Slide 27 text
ダブル配列における遷移
27
¨ def goto(cur, label)
¤ next := BASE[cur] + label
¤ if CHECK[next] = cur
n return next
¤ return -1
# 嶺 上
0 1 2
8:牌
6:開
3:#
2:上
0 1 2 3 4 5 6 7 8
BASE 0 0 3 5 0 7
CHECK 0 1 2 6 4 2 8 2
6 := BASE[2] + 開 = 3 + 3
開 花 牌
3 4 5
CHECK[6] = 2