Course Exercises 2007

FPLC
On this page, links to additional exercises (not in the book) will be placed.

GO Assignment 2

Announced: 24 October 2007, deadline: 2 November 2007 (12:00 noon)

Update: 26 October 2007. Full version of the assignment now available.

Submission via the Submit system.

Trial Exams / Old Exams

Here are a few old exams, to give you an idea on what kind of questions are to be expected. Note that these exams are usually 3 hours for either FP or GO, and our exam will be 3 (or possibly 4) hours for FP and GO, so the individual parts of the exam will be a bit shorter.

GO assignment 1

Announced: 15 October 2007, deadline: 25 October 2007 (23:59) (prolonged)

Update: 17 October 2007. Check annotations (+ or #) are optional, so the corresponding production should also allow to derive the empty word. The instructions have been corrected.

Update: 17 October 2007. The skeleton file is now there. The instructions have been extended slightly.

Submission via the Submit system.

FP assignment 3

Announced: 08 October 2007, deadline: 16 October 2007 (12:00 noon) (prolonged)

Update: 15 October 2007. The decoder function given in the source file produces, depending on the random colors that are chosen, sometimes illegal colors. I have fixed that (only the Haskell skeleton has changed).

Update: 11 October 2007. On Windows, there seems to be a problem writing certain PPM files due to the conversion of line end markers. I have therefore modified both the program skeleton and the instructions to fix that problem. I have also clarified the specification of the function `add' somewhat. Please use the new versions if possible.

Update: 08 October 2007. Some of the examples with RGB colors produced type errors, that should be fixed now. Only the task description has changed.

I have extended the deadline by half a week due to the rather late announcement of this third assignment. This assignment is more complex than the previous ones, so start early and use the opportunity to ask questions at the werkcollege on Wednesday.

Submission via the Submit system.

FP assignment 2

Announced: 24 September 2007, deadline: 5 October 2007 (12:00 noon)

Submission via the Submit system.

Update: 25 September 2007. Clarified exercise 4 (only the description has changed).

Update: 26 September 2007. Fixed the propagation of paint events (only Rocks.hs has changed).

FP assignment 1

Announced: 18 September 2007, deadline: 28 September 2007 (12:00 noon)

New: Results are available.

All the instructions are contained in the PDF. If necessary, an FAQ about the assignment will be created in this place. You also require a skeleton Haskell program that you can download here as well. Edit this skeleton to produce your solution.

Lab Intro

The Lab Intro is supposed to help you get started with the GHC(i) environment. It contains a lot of relatively easy exercises that teach you the most important commands in GHCi, typical error messages, how to build expressions, etc.

This first version is finished up to Exercise 72. I'll update this file soon.

-- AndresLoeh - 26 Oct 2007

Topic attachments
I Attachment Action Size Date Who Comment
elsehs Calories.hs manage 0.5 K 26 Oct 2007 - 11:34 AndresLoeh Calories module for GO assignment 2
elsehs Chess.hs manage 1.2 K 17 Oct 2007 - 06:43 AndresLoeh GO assignment 1 skeleton program
pdfpdf Chess.pdf manage 100.3 K 17 Oct 2007 - 08:19 AndresLoeh GO assignment 1 instructions
pdfpdf Lab.pdf manage 125.7 K 05 Sep 2007 - 14:39 AndresLoeh Lab Intro
elsehs MasterMind.hs manage 2.4 K 18 Sep 2007 - 19:59 AndresLoeh FP assignment 1 skeleton program
pdfpdf MasterMind.pdf manage 77.8 K 18 Sep 2007 - 19:58 AndresLoeh FP assignment 1 instructions
elsepgn Mate.pgn manage 0.1 K 17 Oct 2007 - 06:44 AndresLoeh example PGN file
pdfpdf PST06-2-FP.pdf manage 77.4 K 17 Oct 2007 - 12:51 AndresLoeh  
pdfpdf PST06-2-GP.pdf manage 100.5 K 17 Oct 2007 - 12:52 AndresLoeh  
pdfpdf PST06-FP.pdf manage 80.9 K 17 Oct 2007 - 12:51 AndresLoeh  
pdfpdf PST06-GP.pdf manage 105.2 K 17 Oct 2007 - 12:51 AndresLoeh  
pdfpdf Recipes.pdf manage 75.7 K 26 Oct 2007 - 11:33 AndresLoeh GO assignment 2 instructions
pdfpdf Rocks.pdf manage 130.6 K 25 Sep 2007 - 13:39 AndresLoeh FP assignment 2 instructions
zipzip Rocks.zip manage 8.5 K 26 Sep 2007 - 15:25 AndresLoeh FP assignment 2 sources and data
elsehs SIRDS.hs manage 8.3 K 15 Oct 2007 - 08:35 AndresLoeh FP assignment 3 skeleton program
pdfpdf Stereograms.pdf manage 132.8 K 11 Oct 2007 - 20:24 AndresLoeh FP assignment 3 instructions
elseEXT recipes-ex manage 1.2 K 24 Oct 2007 - 07:04 AndresLoeh GO assignment 2 examples