The purpose of this laboratory exercise is to practice working with lists and recursion, and to develop a complex algorithm.
At the command line:
cd
cd cs101
mkdir lab8
cd lab8
/usr/share/dict/words
. If you are using another OS, download the list of words here. All of us can refer to the explanatory text near figure 74 in the text for more information. The figure itself is:; On OS X:
(define LOCATION "/usr/share/dict/words")
; On LINUX: /usr/share/dict/words or /var/lib/dict/words
; On WINDOWS: borrow the word file from your Linux friend
; A Dictionary is a List-of-strings.
(define AS-LIST (read-lines LOCATION))
Log out
Remember to logout before you leave.