Skip to main content

Schedule

The schedule below shows the tentative dates for all class topics, readings, and assignments. You should complete all assigned reading before class on the day it is listed. Labs will be available shortly before the assigned lab day. There may be some revisions to the schedule during the semester, but I will make sure to announce these changes in class.

If you view this page with JavaScript enabled you can jump to the current week on the schedule, and you should see the next day of class highlighted in the schedule below.

Week 1
W
Jan 23
class 1

An introduction to algorithms

We begin the class by exploring the definition of computer science and by trying to write some basic algorithms.

Topics: Introduction - What is CS. Exercise - An everyday algorithm. Debriefing on exercise. Common parts of an algorithm.


F
Jan 25
class 2

Getting started with Linux, HTML, and CSS

We begin to consider the content and structure of the course, exploring both our laboratory environment (Linux workstations) and mechansisms for representing and styling text.

Topics: Getting started with Linux. Generalized markup with XML. Web markup with HTML. Page styling with CSS.

Week 2

M
Jan 28
class 3

Getting started with Racket

We consider Racket, the programming language we will use throughout the course.

Topics: Why use programming languages. Scheme history. Scheme basics. Using DrRacket.


Tu
Jan 29


F
Feb 1
class 4

Writing your own procedures

We consider ways to write your own procedures and why you might do so.

Topics: Review: Algorithm components. Detour: Sequencing operations. User-defined-procedures. Lambda. Compose. Section.

Week 3
M
Feb 4
class 5

Basic types in Racket

We explore many of the basic types in Racket and the capabilities those types provide.

Topics: Values and types. Numbers. Characters. Strings. Symbols. Lists.


Tu
Feb 5

W
Feb 6
class 6

Pattern matching with regular expressions

We consider ways to search for patterns in text and to use the results of those searches. We also explore how to extract data from text files.

Topics: Text files. Patterns and pattern matching. Searching, replacement, and splitting. Forms of regular expressions.


F
Feb 8
class 7

Pair programming, evaluating expressions, and other issues

We explore the whys and hows of working with others. We revisit the way in which Racket evaluates expressions. We also catch up on any confusing issues from the first few days of class.

Topics: Basics of pair programming. Benefits of pair programming. Pair programming in the classroom. Forming a code of conduct. The structure of Racket code. Parsing code. An evaluation strategy. The Racket “dictionary”. Assorted other issues.

Readings
Lab
  • No lab
Due
  • Quiz 2
Week 4
M
Feb 11
class 8

Exploring lists

We return to Scheme’s list data structure and some ways to use lists to work with collections of data.

Topics: Context: What and why lists. Building lists. Mapping lists. Reducing lists. Sorting lists. Other list operations.


Tu
Feb 12
 

W
Feb 13
class 9

Boolean values, predicate procedures, and conditionals

We consider how one writes procedures that make decisions.

Topics: Boolean values. True vs. truish. Predicates - procedures that return Boolean values. Combining Boolean values with and and or. The parts of an algorithm, revisited. Choosing between two options with if. Optional evaluation with when. Making multiple choices with cond.


F
Feb 15
class 10

Documentation and precondition checking

We consider documentation for your programs: Why to write documention, when to write documentation, how to write documentation. We also explore the 6P style of documentation that we use in this course.

Topics: The Six P’s - a strategy for documenting procedures. A few additional P’s. Practice. Verifying preconditions. The error procedure. Husk and kernel programming.

Week 5
M
Feb 18
class 11

Testing your procedures

We consider testing: When, why, and how you might test the procedures and programs that you write.

Topics: Why test. Strategies for testing. RackUnit’s primary testing operations. Careful postconditions.


Tu
Feb 19
 
Due

W
Feb 20
class 12

Randomness

We consider Scheme’s random procedure and how one might use that procedure in generating language.

Topics: Why use randomness. The random procedure. Simulation. Grammars. Language generation.


F
Feb 22
class 13

Local bindings

We consider how and why to name values within procedures.

Topics: Local bindings. The let and let* operations. Semantics: let as a procedure call.

Week 6
M
Feb 25
class 14

Discuss exam 1

We discuss your solutions to the first examination.

Topics: Common problems. Improving style.

Reading
  • No reading
Lab
  • No lab

Tu
Feb 26

W
Feb 27
class 15

Dictionaries and hash tables

We consider structures that allow us to store information for quick retrieval.

Topics: Dictionaries. Key dictionary operations. Hash tables. Mutation.


F
Mar 1
class 16

Structured data

We consider Racket’s techniques for creating structured data types.

Topics: Structured data. Using structs. Mutable and immutable structs.

Week 7
M
Mar 4
class 17

Processing XML

We consider how one writes programs that process HTML and XML.

Topics: XML, revisited. Representing XML in Racket. Expressing patterns in XML. Seaching XML. Constructing new documents from old.


Tu
Mar 5

W
Mar 6
class 18

Transforming XML

We consider additional ways to transform XML documents.

Topics: Replacing elements. Inserting elements. Deleting elements. Other approaches.


F
Mar 8
class 19

Debugging

We explore techniques for undersatnding and correcting flaws in our programs

Topics: Approaches to debugging. Reading error messages. The DrRacket debugger. Debugging with printing.

Week 8
M
Mar 11
class 20

Recursion basics

We begin our exploration of recursion, the most general form of repetition available in Scheme. You can use recursion to both build and iterate over different kinds of values.

Topics: Background. Key ideas in recursion. Sample recursive procedures. Expressing recursion in Scheme.

Lab
  • No lab

Tu
Mar 12

W
Mar 13
class 21

Recursion basics lab

We continue our exploration of the basics of recursive procedures.

Topics: Lab. Debrief.


F
Mar 15
class 22

Recursion with helper procedures

We consider a different form of recursion, one based on the construction of recursive helper procedures that take additional parameters. Along the way, we consider the idea of tail recursion. We also explore how careless design of recursive procedures can inadvertently lead to slow execution.

Topics: Basics of helper recursion. Tail recursion. Why use tail recursion.

Spring Break
Week 9
M
Apr 1
class 23

Discuss exam 2

We discuss your solutions to the second examination.

Topics: Common problems. Improving style.

Reading
  • No reading
Lab
  • No lab

W
Apr 3
class 24

Patterns of list recursion

We conclude our initial forays into list recursion by looking for some common patterns in the design of recursive procedures.

Topics: Looking for patterns. Patterns of list recursion (extreme, reduce, etc.). List predicates.


F
Apr 5
class 25

Numeric recursion

We consider a slightly different kind of recursion, numeric recursion. In this technique, we once again have procedures call themselves. However, the parameter that we “simplify” at every step is a number, rather than a list.

Topics: Generalizing recursion. Numeric recursion.

Week 10
M
Apr 8
class 26

Naming local recursive procedures

We explore how and why one writes local recursive procedures.

Topics: Why have local procedures. Naming local procedures with letrec. Naming local procedures with named let. Tail recursion vs. helper recursion.


Tu
Apr 9

W
Apr 10
class 27

Pairs and pair structures

We consider pairs, the basic data type used to build lists and other structures in Scheme. We also consider why it is useful to understand about pairs.

Topics: Representing lists with pairs and cons cells. Why care about the underlying representation. Other pair structures.


F
Apr 12
class 28

Vectors

We consider vectors, an alternative to lists for storing collections of data.

Topics: Some problems with lists. A solution: vectors. Behind the scenes: How Scheme implements vectors. Important vector procedures. Recursion over vectors.

Reading
Due
  • Quiz 9
Week 11
M
Apr 15
class 29

Project introduction

We introduce the project.

Topics: About the project. Group composition and construction. Playing and brainstorming.

Reading
  • About the project
Lab
  • No lab

Tu
Apr 16
 

W
Apr 17
class 30

Higher-order procedures, revisited

We revisit the topic of higher-order procedures, one of the most important techniques in languages like Scheme. Higher-order procedures are procedures – like map, left-section, or compose – that take other procedures as parameters, return other procedures as values, or both.

Topics: Some program design principles. Thinking about repetition. Procedures as first-class values.

Assigned
  • Project proposal
  • Project core
  • Project presentation
Due
  • Flashcards for week 11

F
Apr 19
class 31

Analyzing procedures

We explore techniques for analyzing the number of calls made in evaluating procedures, particularly recursive procedures. We consider why such analysis is useful.

Topics: Comparing algorithms. Two metrics: time and number of steps. Using output to count procedure calls. Tools for procedure analysis.

Week 12
M
Apr 22
class 32

Deep recursion

We consider hierarchical data structures and explore how to write procedures to process such structures.

Topics: Nested lists. Deep recursion.

Due
  • Project proposal (by 10:30pm)

W
Apr 24
class 33

We consider the general problem of searching. We explore binary search, one of the most efficient algorithms for searching.

Topics: Analyzing algorithm efficiency. The problem of searching. Divide and conquer. Destructive binary search (a demonstration). Design issues.


F
Apr 26
class 34

Project work day 1

Groups have time to work on their projects.

Topics: Work time.

Reading
  • No reading
Lab
  • No lab
Due
  • Quiz 11
Week 13
M
Apr 29
class 35

An introduction to sorting

We explore the problem of sorting. When you sort a list, vector, or other collection, you put the elements in order. The order of the elements usually corresponds to the type of the elements. We might sort strings alphabetically, grades numerically, colors by brightness, and so on and so forth.

Topics: The problem of sorting. Writing sorting algorithms. Some examples. Formalizing the problem.

Reading
  • No reading
Lab
  • No lab

Tu
Apr 30
 
Due
  • Project core (by 10:30pm)

W
May 1
class 36

Insertion Sort

We move from our general exploration of sorting to the implementation of a particular sorting algorithm, insertion sort. We also explore how the running time for that algorithm varies based on the number of values we are sorting.

Topics: Insertion sort basics. Four questions about insertion sort. Analyzing insertion sort.


F
May 3
class 37

Merge Sort

We continue our exploration of sorting by considering the applicability of the divide-and-conquer approach to the problem of sorting. We look at one particular divide-and-conquer algorithm, merge sort. We explore how the running time for that algorithm varies based on the number of values we are sorting.

Topics: More efficient sorting techniques. Divide and conquer, revisited. Merge sort. Analyzing merge sort.

Reading
Due
  • Quiz 12
Week 14
M
May 6
class 38

Project presentations

We explore some of your projects.

Topics: Lightning presentations.

Reading
  • No reading
Lab
  • No lab
Due
  • Project presentation

Tu
May 7

W
May 8
class 39

Presentations and Wrap-Up

We conclude the course.

Topics: Additional lightning presentations. Comments on the final. The subject matter(s) of the course. More about the subject matter(s). Final comments.

Reading
  • No reading
Lab
  • No lab

F
May 10
class 40

Course evaluation and Review for final

We evaluate the class and prepare for the final.

Topics: Course evaluation / official. Course evaluation / unofficial. Review for the final.

Reading
  • No reading
Lab
  • No lab
Finals Week
Tu
May 14

Final examination