Functional Problem Solving (CSC 151 2014F) : EBoards

CSC151.01 2014F, Class 37: Geometric Art Through Numeric Recursion


Overview

Preliminaries

Admin

Upcoming Work

Cool Upcoming Events on Campus

Extra Credit Opportunities

Academic

Peer Support

Exam Notes and Questions

Are there some questions and answers in yesterday's eboard?

Yes. I've also copied some of them into the exam.

What interesting questions have you seen in the prologue?

Amazingly, most of the people who have responded to the prologue included "start early" in their list of approaches.

Someone asked how many different tests I wrote for problem 2. My "first pass" set of tests explored eleven different issues, including two kinds of preconditions that might be checked.

Many of you seem overly enamored of append, particularly for problem 1. If you are only adding one element to the front of a list, you should probably use cons.

I'm trying to figure out what char-drypot is. Maybe auto-correct.

I appreciate that at least one of you noted that for both problems 5 and problem 6, you were likely to lose a lot of points if you failed to get the turtle back to the original position and orientation.

Can you try explaining repeat again?

(repeat N FUNCTION VAL) is a way to say "Do (FUNCTION VAL) N times."

(repeat N FUNCTION VAL) is conceptually equivalent to (for-each FUNCTION (make-list N VAL)), but without the extra work of making the list.

Should I use direct or helper recursion for problem 1?

It strikes me that direct recursion is better. I forgot to mention it on Wednesday, but if you're building a new list, and you want the elements mostly in the same order, direct recursion is often the way to go.

Can we see pictures for problem 8?

Done.

Should the procedures in problem 3 check their preconditions?

They need not do so in exams submitted for my section of the course.

_Should the string-rot13 procedure in problem 4 check its preconditions?

Yes.

Can I assume that capital A has collating sequence number 65?

No. The problem is fairly specific that you should not assume any particular collating sequence.

I hear rumors that some students have finished the exam already. Is that really the case?

"This is among the hardest exams I have ever taken. If you don't start it early, you will have no chance of finishing."

Other Questions

The Reading: Geometric Art

Two minutes with your partner

Quiz

Lab

Use (context-set-brush! "2. Hardness 100" 2) and make sure that you have the brush tool selected.