CSci 1301: Problem Solving and Algorithm Development -- Resources
[Home]
[Syllabus]
[Assignments]
[Resources]
The textbooks and other helpful resources
In-class examples
- Sept 4: an image used in the first racket example:
, The first Racket
example.
- Sept 8, 10: Writing Racket expressions and functions; solutions for the exercises.
- Sept 10: The rocket example in Prologue
- Sept. 15: helper
functions
(see solutions), A
simple
animation, some examples of last year cartoons (with modifications):
a nice use of helper functions and randomness, use of images and coordinated movement.
- Sept 19: box-string.rkt, this is our work in progress after Sept 19 class
- Sept 22: finished box string example, Introduction to intervals, enumerations, and structures.
- Sept 24: examples of Racket worlds: binary world (alternating zeros and ones), a dot controlled by up and down arrow keys
- Sept. 29. World examples: An
example of creating a "world" (recording mouse movements) from
the book,
handling key events, modified binary world to check that world state is correct
- Oct 6. Introduction to lists and recursion
- Oct 8. Continuing with list example from Monday (here are the functions we wrote in class) and working on list exercises.
- Oct 15: making new lists recursively, lists as world states. A solution for the making lists problem that we did in class.
- Oct 22, 24: more examples of functions on lists, examples of recursion on numbers, world example with balloons Solution for the increasing numbers and random numbers
- Oct 27: Solution for equal lists, the starting point for the balloon exercise.
- Nov 3. Example of
lists of lists and of
sorting, a
solution we wrote in class
- Nov 5, 7:
Introduction to functional
abstraction, more
examples of designing abstract
functions, solutions
for today's exercises
- Nov 10: Midterm I
solutions: Sample
solution for task 1 of the
midterm, a
sample solution for task 4 with a
structure, a
sample solution for task 4 with a number as a world state;
new
material: using
predefined functions
- Nov 14: Review for the second midterm
- Nov 19: Local variables
- Nov
24, 26: Self-referential
structures
and Solutions
(the last one needs to be finished).
- Dec 1: Generative recursion
- Dec 5: Overview of tail recursion
- Dec 12: Review for the final
DrRacket resources
Previous year's work
Various links