teaching machines

CS 330 Lecture 13 – Types

Agenda what ?s program this a definition of type scalars arrays enums structs enums in C vs. enums in Java type qualifiers Program This Code blackjack.c Haiku

CS 245 Lecture 9 – Computational Complexity and Binary Search

Agenda what ?s finishing up OurrayList think about this linear search binary search computational complexity TODO Synchronize on Bitbucket and pull in Eclipse. No 1/4 sheet. Optional: read http://bugs.java.com/bugdatabase/view_bug.do?bug_id=5045582 and http://googleresearch.blogspot.com/2006/06/extra-extra-read-all-about-it-nearly.html. Think About This Code Super.java Sub.java OurrayList.java Haiku

CS 330 Lecture 12 – C

Agenda what ?s array/pointer duality scope in C vs. Java array allocation in C vs. Java call by value in C vs. Java new types enums in C vs. Java Think About This TODO Read Simon Tatham’s Descent into C: http://www.chiark.greenend.org.uk/~sgtatham/cdescent. Why does C not have a boolean type? Why does Java not have unsigned types? […]

CS 330 Lecture 11 – Slightly Above the Machine with C

Agenda what ?s what does assembly not do? things that languages provide: binding names to data type systems scope abstraction compilers and interpreters some C exercises atoi makepath blackjack scoring TODO Read chapter 1 through 1.5 in Programming Language Pragmatics. Bonus 1/4 sheet. Start Savage, homework 1. Later-week submission deadline is February 28. Code atoi.c […]

CS 245 Homework 1 – due before February 24

See the PDF.

CS 330 Homework 1 – due before February 28

See the PDF.

CS 245 Lecture 8 – Arrays

Agenda what ?s think about this OurrayList program this a spellchecker TODO Read pages 61-79 in Data Structures. 1/4 sheet. Think About This Program This constructor void add(String o) int size() void remove(int i) void remove(String s) int indexOf(String s) String get(int i) Code Table.java BigArray.java OurrayList.java Haiku

CS 245 Lab 4 – Sorted List

First, if you have checkpoints left over from last lab, get them inspected during the first 15 minutes of this lab. Work in pairs, where possible. Prefer working with someone that you did not work with last week. The exchange of new ideas and perspectives is not an opportunity you want to rob yourself of. […]

CS 330 Lecture 10 – Assembly

Agenda what ?s assembly ways of doing: loops structs local variables functions TODO Read pages 35-45 in Programming From The Ground Up. 1/4 sheet. Code headxortails.s loop.s struct.s stringloop.s Haiku

CS 245 Lecture 7 – Abstract Classes

Agenda what ?s the inheritance spectrum a transformation hierarchy TODO Start homework 1. Due before February 24. Code Transform.java Translate.java Scale.java Rotate.java DotMover.java Haiku  

1 2 3