home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Net: Ultimate Internet Guide
/
WWLCD1.ISO
/
pc
/
java
/
eduhm01h
/
anbn.t
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS
UTF-8
Wrap
Text File
|
1996-08-14
|
241 b
|
22 lines
# This program will determine if a string of As and Bs
# is of the form aNbN - it outputs T or halts
aaabbb
16
0 a 1 a
1 a 2 c
2 c 2 >
2 a 2 >
2 d 2 >
2 b 3 d
3 d 3 <
3 d 3 <
3 a 3 <
3 c 1 >
1 d 4 >
4 d 4 >
4 - 5 <
5 d 5 >
5 - 6 >
6 - 6 T