next up previous
Next: 2. Programming assignment Up: No Title Previous: No Title

1. Tutorial exercises

Tutorial exercise 1:

Do exercises 2.46, 2.47, and 2.48 of the textbook, which ask you to define selectors and constructors that implement data structures for vectors (make-vect, xcor-vect, ycor-vect), for frames (make-frame, origin-frame, edge1-frame, edge2-frame), and for line segments (make-segment, start-segment, end-segment), as well as some basic vector operations (add-vect, sub-vect, scale-vect). You need not try these on the computer now (although you'll need to do this as part of the programming assignment). Note that there are different possible answers for these: the choice of representation is up to you. In tutorial, expect that your tutor will ask you to draw box-and-pointer diagrams to describe some of these data structures, and also to discuss how these structures are printed by the Scheme interpreter.
Check the 6.001 discussion forum for tutorial-ex-01
Look here for information about the forum.

Tutorial exercise 2:

Do exercise 2.18 of the textbook, which asks you to define a procedure that returns the reverse of a given list.
Check the 6.001 discussion forum for tutorial-ex-02
Look here for information about the forum.

Tutorial exercise 3:

Do exercise 2.23 of the textbook.
Check the 6.001 discussion forum for tutorial-ex-03
Look here for information about the forum.

Tutorial exercise 4:

Do exercise 2.24 of the textbook.
Check the 6.001 discussion forum for tutorial-ex-04
Look here for information about the forum.

Tutorial exercise 5:

Do exercise 2.25 of the textbook.
Check the 6.001 discussion forum for tutorial-ex-05
Look here for information about the forum.


next up previous
Next: 2. Programming assignment Up: No Title Previous: No Title

Hal Abelson
Sat Feb 7 23:30:52 EST 1998