15.08.2013 Views

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

We want every maze to be solvable. (should have path from entrance to exit)<br />

Also: We want mazes to be fun, i.e.,<br />

We want maze solutions to be unique<br />

We want every “room” to be reachable<br />

How should we think about this?<br />

c○: Michael Kohlhase 11<br />

There are of course various ways to build such a a maze; one would be to ask the students from<br />

biology to come and plant some hedges, and have them re-plant them until the maze meets our<br />

criteria. A better way would be to make a plan first, i.e. to get a large piece of paper, and draw<br />

a maze before we plant. A third way is obvious to most students:<br />

An Answer:<br />

Let’s hack<br />

c○: Michael Kohlhase 12<br />

However, the result would probably be the following:<br />

2am in the IRC Quiet Study Area<br />

c○: Michael Kohlhase 13<br />

If we just start hacking before we fully understand the problem, chances are very good that we<br />

will waste time going down blind alleys, and garden paths, instead of attacking problems. So the<br />

main motto of this course is:<br />

no, let’s think<br />

“The GIGO Principle: Garbage In, Garbage Out” (– ca. 1967)<br />

9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!