More Study questions for problem 3 

Forum: Com Sci 12500, U Chicago, Autumn 2002, Discuss Classwork
Re: News I posted a study guide for the final (Mike O'Donnell)
Re: News Study questions for problem 1 (Mike O'Donnell)
Date: 2002, Dec 08
From: Mike O'Donnell <odonnell@cs.uchicago.edu>

3. Abstraction barrier

Define the following procedures above the abstraction barrier for the invlist abstration.

  • Find all occurrences of the contiguous sequence a b c in an invlist.

  • Determine whether the sequence a b c appears in an invlist, in that order, but not necessarily contiguously.

  • Determine whether two invlists are equal.

  • Reverse an invlist.
Make sure that you are very clear on the distinction between invlists, whose implementations are hidden from you behind the abstraction barrier, and normal Scheme lists, which you manipulate with the usual Scheme procedures, such as car, cdr, cons. Since the procedures in the barrier return normal Scheme lists, you have to manipulate both sorts of object, and a bit of confusion could really mess you up.


Messages

1. Question Reversing an invlist by Mark Kittisopikul, 2002, Dec 08
1. Agree Oops --- no way to construct the invlist by Mike O'Donnell, 2002, Dec 08
(_ More Instead of reversing, test for a palindrome by Mike O'Donnell, 2002, Dec 08
2. More solutions to study questions by Ivan Beschastnikh, 2002, Dec 09
1. Feedback They can be shorter by Mike O'Donnell, 2002, Dec 09
3. More Mark's solutions by Mark Kittisopikul, 2002, Dec 10

to: "Study questions for problem 3"