News Study questions for problem 1 

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

1. Programming with higher-order procedures

  • Define my filter procedure from one of the accumulate procedures, instead of the direct recursion that I used.

  • Define increasing_sum to compute the sum of all the numbers in a list that are greater than the same sort of sum of the numbers to their left.

  • Define partial_maxes so that (partial_maxes numlist) evaluates to the list of numbers in numlist that are greater than all numbers to the left.

  • Define (sums listlist) to compute the list of sums of corresponding elements in the lists in listlist. For example, (sums '((1 2) (3 4 5 6) (7 8 9))) evaluates to (11 14 14 6).

  • Represent a 3-dimensional matrix as a list of lists of lists. Define project_3->2_matrix to project a 3-dimensional matrix to 2 dimensions by concatenating along the last dimension.

  • Think up and define other sorts of 3-dimensional to 2-dimensional projection. Some of them may require nested use of higher-order procedures.


Messages

1. More Study questions for problem 2 by Mike O'Donnell, 2002, Dec 08
2. More Study questions for problem 3 by Mike O'Donnell, 2002, Dec 08
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
... 1 Message(s)
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
3. More Study questions for problem 4 by Mike O'Donnell, 2002, Dec 08
4. More Study questions for problem 5 by Mike O'Donnell, 2002, Dec 08
5. More Study questions for problem 6 by Mike O'Donnell, 2002, Dec 08
1. Question question on make-account-database version of make-account by Ivan Beschastnikh, 2002, Dec 09
1. Feedback Database contents should be local to deposit/withdraw procedures by Mike O'Donnell, 2002, Dec 09
2. Question lambda questions by Ivan Beschastnikh, 2002, Dec 10
1. Note It's in the manual somewhere by Benedict Singer, 2002, Dec 10
6. Question can we use higher-order procedures? by Ivan Beschastnikh, 2002, Dec 08
1. Agree OK, but don't expect a big difference by Mike O'Donnell, 2002, Dec 08
7. Question matrices ...??? by Ivan Beschastnikh, 2002, Dec 10
1. Feedback Each dimension of a matrix is a level of list nesting by Mike O'Donnell, 2002, Dec 10
1. More Solutions to 2 practice projections of matrices by Ivan Beschastnikh, 2002, Dec 10
... 2 Message(s)
2. More Mark's solutions by Mark Kittisopikul, 2002, Dec 10
8. Question "single use of higher order procedure" by Nathan Krapf, 2002, Dec 10
1. Feedback Exam questions can be done with one higher-order proceure each by Mike O'Donnell, 2002, Dec 10

to: "Study questions for problem 1"