Exercises for Week 02

Exercise 0

  1. At the top right and at the bottom right of the present page, there is a clickable word, “index”, to access the index of the current version of the lecture notes. Click on it and then peruse the index, making sure that its entries make sense to you (otherwise, click on them to check them out).
  2. In the light of your homework from Week 01, read again the vision and the mission of Yale-NUS College.
  3. In reference to the section about Using a grammar to generate grammatically correct sentences, do check out Strachey’s generator of love letters and the generator of mathematical proofs. (Make sure to reload these web pages a few times.)

Mandatory exercises

Practicalities

  • Like last week, feel free to draw your solutions with a pencil, take low-resolution snapshots of them, and include these snapshots in your report.
  • Like last week, please upload a separate file “week-02.txt” containing your names, student numbers, and email addresses. But this time, create this file using Emacs.
  • Unlike last week, submit your homework on Canvas as a group, not as an individual, so that all the members of the group get a recorded grade on Canvas, not only the individual who submitted.
  • For Week 01, in order for each other member of each group to get a recorded grade on Canvas, sigh, please submit individually a token file so that I can assign it the grade of your group.
This is a mechanism, not a solution.

Mao Zedong

Exercise 15

Write down as many as you like of the four causes of interpretation in Computer Science, in the order of your choosing:

  • material cause
  • efficient cause
  • formal cause
  • final cause

How does your solution compare with the four causes of an interpreter, in Exercise 3 of Week 01?

Exercise 16

Write down as many as you like of the four causes of compilation in Computer Science, in the order of your choosing:

  • material cause
  • efficient cause
  • formal cause
  • final cause

How does your solution compare with the four causes of a compiler, in Exercise 4 of Week 01?

Version

Created [21 Jan 2021]

Table Of Contents

Previous topic

Syntax of regular expressions

Next topic

Lecture Notes, Week 03