Functional Problem Solving (CSC 151 2016S) : EBoards

CSC151.02 2016S, Class 37: Pairs and Pair Structures


Overview

Preliminaries

Admin

Reminders

Upcoming Work:

Extra Credit

Academic / Artistic

Peer

Miscellaneous

Regular Peer

Misc

Far in the Future

Questions

I'm having trouble with postconditions for rac and rcd.

For rdc, you can talk about the length of the list and the value at each position.

For rac, you can probably rely on list-ref to clarify the
postcondition.

Can we use position-distance in solving the stenciled circle problem?

Yes.

Can we text you with questions tonight?

Yes. But before 10 p.m. (You can email after 10 p.m.; the odds are that I'll still be awake.)

Are there positive aspects to your failure to grade exam 2 in a timely fashion?

Yes. I am much less likely to take off for formatting and insufficient examples on exam 3.

What should index-of-substring return if there are multiple matching positions?

Any of those positions (usually the first).

Any hints on finding the errors?

Be thorough. If it were me, I'd try more substring sizes and more substring positions. And think about edge cases.

Is banana a subtring of banana?

Yes.

What is (rac (list 5))?

5

What is (rdc (list 5))?

null or '()

What do I use as the type for a list that can contain any type of value?

"list" or "heterogeneous list"

I have this fantasy that you give partial credit. How do you determine how much partial credit we receive? In particular, should I transcribe my scratch paper?

No work implies no partial credit.

Seeing your work helps me give partial credit. (Put in comments about your thought process, and commented out failed attempts with notes about what you learned.)

I forgot about the letter between O and Q during break. For "Produces", what do I give?

Typically, the name and the type. You explain further in the postconditions.

Can strings and substrings have spaces?

Yes. Good thinking about edge cases.

Randomness Lab, Revisited

Writeup: 1b

Pairs Lab

Writeup: Exercise 3