EE2.sad > Exercises > Solutions

The University of Surrey

 EE2.sad:  Exercise solutions


 [ Home | Syllabus | Exercises | Coursework | Exams ]

 [ Wk 2 | Wk 4 | Wk 6 | Wk 8 | Wk 10 | Wk 12 ]
 

Week 2

The farmer, fox, goose and grain:
 

Your critique of the various design representations should consider:

  • how obvious their notation is to interpret;
  • how clearly they reveal the correct solutions, and whether all are shown;
  • whether their viewpoint adequately shows the sequence of states (behavioural is best for this).

Here's another way to represent the solution that you must see!

  And here's an adaptation of another solution I found:
Farmer and boat, the goose deliver
While fox and grain stand by the river,
Observe with envy the goose, that free-liver.
Farmer, goose, and grain, with patience refrain
And watch the fox alone, the misgiver.
When fox, farmer, and goose their seat obtain,
They look at the grain, their lips acquiver.
 
Farmer, fox, and grain together remain
On the opposite bank of the river.
"Beautiful boat bring the goose", they blither.
A fox, a goose, a farmer, some grain
Finally succeed in crossing the river.
Now they are gladly willing to resign
The wonderful benefits of Software Design,
As a solution it helps to deliver!!
from Alexander Tzonis (1990). Hermes and the Golden Thinking Machine, Cambridge, MA: Bradford. (pp. 149-150)



Dept.
[ CVSSP | Dept. | Fac. | Univ. ]

© 2002-8, maintained by Philip Jackson, last updated on 20 Nov 2008.


Faculty