On this page:
Week 1
Week 2
Week 3
Week 4
Week 5
Week 6
Week 7
Week 8
Week 9
Week 10
Week 11
Week 12
Week 13
Week 14
Week 15
6.12

Syllabus

Week 1

1/08:

 

Lecture 1: Data Definitions in Java
Designing Data: Simple classes, classes with containment
Lecture 2: Data Definitions: Unions
Designing unions of classes; self-reference

1/10:

 

Lecture 3: Methods for simple classes
Methods for simple classes and classes with containment
Lecture 4: Methods for unions
Methods for unions of classes and classes with self-reference

1/11:

 

Lecture 5: Methods for self-referential lists
Designing methods for complex class hierarchies
Lecture 6: Accumulator methods
More complicated methods for self-referential data

Lab:

 

Lab 1
Data definitions in Java; Eclipse IDE; Handins homework server

Week 2

1/15:

 

No class: MLK Day

1/17:

 

Lecture 7: Accumulator methods, continued
(continued) Methods with accumulators
Lecture 8: Practice Design
Recap: designing methods and wish lists for a larger problem

1/18:

 

Lecture 8: Practice Design
Recap: designing methods and wish lists for a larger problem

Lab:

 

No lab: MLK day

Week 3

1/22:

 

Lecture 9: Abstract classes and inheritance
Abstract classes and inheritance

1/24:

 

Lecture 9: Abstract classes and inheritance
Abstract classes and inheritance

1/25:

 

Lecture 10: Customizing constructors for correctness and convenience
Customizing constructors for correctness and convenience

Lab:

 

Lab 3
Designing methods for self-referential data

Week 4

1/31:

 

Lecture 13: Abstracting over behavior
Overview of world programming; Function objects
Lecture 14: Abstractions over more than one argument
More function objects

Lab:

 

Lab 4
Practice with abstract classes and constructors

Week 5

2/05:

 

Lecture 16: Visitors
Visitors

2/07:

 

Lecture 17: Mutation
Creating cyclic data, mutation

2/08:

 

Lecture 18: Mutation inside structures
Testing mutation methods, indirect cycles

Lab:

 

Lab 5
Functional world games

Week 6

2/12:

 

Lecture 19: Mutation, aliasing and testing
Aliasing and equality, revisited

2/14:

 

Lecture 20: Mutable data structures
Removing items from lists, mutable lists

2/15:

 

Enrichment: advanced generic types

Lab:

 

Lab 6
Working with function objects

Midterm 1: 6:00--9:00PM
RI 200

Week 7

2/19:

 

No class: Presidents’ Day

2/21:

 

Design: handin server data model

2/22:

 

Lecture 21: ArrayLists
Direct-access data structures: ArrayList; swapping two items, mapping over ArrayLists, for-each loops

Lab:

 

Lab 7
Generics and Visitors

Week 8

2/26:

 

Lecture 22: ArrayLists
ArrayLists and binary search; for-each loops; working with indices

2/28:

 

Lecture 23: For-each loops and Counted-for loops
For-each loops and counted-for loops

3/01:

 

Lecture 24: While loops
While-loops

Lab:

 

Lab 8
Working with mutable and cyclic data

Week 9

3/05:

 

No class: Spring break

3/07:

 

No class: Spring break

3/08:

 

No class: Spring break

Week 10

3/12:

 

Lecture 25: Iterator and Iterable
Iterators and Iterables

3/14:

 

Lecture 26: Hashing and Equality
HashMap, equals

3/15:

 

Lecture 27: Introduction to Big-O Analysis
Big Oh: searching and sorting; insertion sort and selection sort

Lab:

 

Lab 9
Loyd's 15 puzzle: working with ArrayLists, loops and imperative worlds

Week 11

3/19:

 

Lecture 28: Quicksort and Mergesort
Big Oh: searching and sorting; quicksort and merge sort

3/21:

 

Lecture 29: Priority Queues and Heapsort
Big Oh: searching and sorting; HeapSort -- Priority Queue

3/22:

 

Lecture 30: Breadth-first search and Depth-first search on graphs
Graph algorithms: breadth-first search, depth-first search

Lab:

 

Lab 10
Practice implementing iterators

Week 12

3/26:

 

Lecture 31: Dijkstra’s Algorithm for single-source shortest paths
Graph algorithms: Dijkstra's algorithm, and comparison with BFS/DFS

3/28:

 

Lecture 32
Minimum spanning trees: Prim's and Kruskal's algorithms

3/29:

 

Lecture 33
Design choices in object-oriented languages: JavaScript

Lab:

 

Lab 11
Heapsort, stress tests

Midterm 2: 6:00--9:00PM
CH 103

Week 13

4/02:

 

Scope in Java: access modifiers and packages

4/04:

 

Scope in Python

4/05:

 

Exam review

Lab:

 

Lab 12
TBD

Week 14

4/09:

 

Implementing GUI widgets

4/11:

 

Lecture 34: Implementing Objects
Implementing Objects

4/12:

 

Lecture 35
Slack

Lab:

 

No lab: good luck on your Logic&Comp exam

Week 15

4/16:

 

No class: Patriots’ Day

4/18:

 

AMA

Lab:

 

No lab: Patriots' Day