CSci 1301: Problem Solving and Algorithm Development -- Resources
[Home]
[Syllabus]
[Assignments]
[Resources]
The textbooks and other helpful resources
In-class examples
- Aug. 28: an image used in the first Racket example:
, The first Racket
example.
- Sept 1, 6: Writing Racket expressions and functions, Example for the problem set. Our in-class work on Racket expressions and functions.
- Sept 8: The rocket example in Prologue.
- Sept 11: A
simple
animation, helper
functions, an example of potential
pitfalls when working with randomness.
Fall
2016 cartoons.
Solution for helper
functions.
- Sept 15, 20:
box-string.rkt, The solution we wrote in class, doesn't include error handling
- Sept 24: Creating your own error messages, The section of the book that introduces world programs, The first world program example, Binary world; The car example with an added click handling.
- Sept 29:
Introduction to intervals, enumerations, Introduction to structures.
Solutions: intervals, enumerations.
- Oct 2: examples of Racket worlds with a structure as a world state:
a dot controlled by up and down arrow keys; Handling mouse clicks.
- Oct 18. Introduction to lists and recursion, solution for the first list exercise
- Oct 20. List exercises,
solutions for the exercises.
- Oct 25. Making new lists recursively, Lists as world states.
Solutions: Solution for making new lists exercises, two solutions for the list-as-world-state exercies: the solution that we wrote in class (a new dot is added at the end) and a new modification with the new dot added in the beginning.
-
Nov 1: The start of ballooon exercise for the lab.
-
Nov 3: Examples of recursion on numbers, finding the smallest element in a list, comparing two lists, sorting. Solutions: recursion on numbers, finding the smallest element in a list, comparing two lists solutions (no sorting yet); solution with sorting
-
Nov 8, 10, 13: Introduction to functional
abstraction, more
examples of designing abstract
functions. Solutions for the abstraction examples, solution for more abstract functions.
-
Nov 15: Review for the second midterm, Solutions for the review questions.
-
Nov 20: Using
predefined functions, the list of predefined functions in the book and the functions
foldr
and foldl
.
Games from
the previous year. A partial solution for using predefined functions.
- Nov 29: Local variables, Self-referential
structures
and Some solutions.
- Dec 6:
Overview of tail recursion.
- Dec 4: Review for the final, selected solutions
DrRacket resources
Various links