Exercise 11


This exercise has two parts. In the first, somewhat minor, part you will draw memory pictures related to lists. The second part is the more interesting one, in which you will write a recursive algorithm to solve a word puzzle.

Part I: In Part I, you will work with lists of lists to see how they work and to make sure you understand the details:

Part II: In this part, you will write code to solve Word-Morphs (sometimes also called Word-Ladders). Here's an example of a Word-Morph:

  lead  ->  load  ->  goad  ->  gold
  
In this example, by changing only one letter at a time, we transform the word lead into the word gold. Here's another example that morphs black into white:
  black  ->  brack  ->  brace  ->  trace  ->  trice  ->  trite  ->  write  ->  white
  
The first one used three steps (morphs) to change lead into gold, while the second used seven steps to morph black into white. Try this one: can you change dog into cat? How many steps did you need?

Now for the program you will write:

Next, let's look a little deeper into the details:

Submission:

What else is due: