|
This Monday, 21 October, I will give a quiz in the first 15 minutes of the class. Please bring blank paper and pencil. You may not use any aids during the quiz. Time pressure will be significant. The direct impact on your grade will be small. But the quiz will cover important skills. You will probably not do well in the rest of the course unless you become fluent in these skills. The quiz will either give us confidence that you are fluent, or provide a warning shot and suggest some urgent study and practice next week. I took the quiz myself. Including a bit of fumbling around, and pushing buttons on my stopwatch, it took me 7 minutes and 15 seconds. You will have 15 minutes. Since you didn't make up the problems, you will probably feel time pressure. I'd rather find out what you can accomplish in 15 minutes than let the thing drag out, so I'll collect the papers strictly on time. I'll ask you to finish any remaining problems outside of class. Here is a description of the problems on the quiz: 1. S-expressions as nested lists and binary treesI took about 4 minutes on this one, mostly making sure that I had parentheses matched properly. Do this one deliberately and carefully. Rushing will cost you time. This is definitely a case where "haste makes waste" applies.
Make up your own binary trees, and practice finding all the different notations for them, between now and Monday morning. 2. EvaluationI took about 2 and 1/2 minutes on this one. There is a bit less detail than in part 1, but the concept is a bit deeper. I also recommend working deliberately and carefully on this one, rather than jumping to conclusions.
So, between now and Monday morning, read about quote with an eye for precise distinctions between things that go on in reading and printing vs. evaluation.Think up your own examples of expressions that can be evaluated several times. Think of more imaginative ones than 3. Generic iteration on listsI took about 1 minute on this one. If you really study my procedure in advance, you should be able to do it just as quickly. Here is a procedure for generic left-to-right accumulation by iteration on lists.
Define a procedure to solve a list-manipulation problem that I pose. The solution is small. I did it by providing three arguments to If you don't run a bunch of examples with |
I reversed the order of quiz questions by Mike O'Donnell, 2002, Oct 17
scheme notation by Katie Edmonds, 2002, Oct 20
All legitimate input forms are Scheme notations by Mike O'Donnell, 2002, Oct 20
List question by Mark Gillam, 2002, Oct 21
Recursive call should be accumulate_lr by Mike O'Donnell, 2002, Oct 21
to: