teaching machines

CS 145 Lab 1

Welcome CS 145 is a class where you learn to teach machines. You won’t just use them. You’re going to become a developer. Unlike the natural and social sciences, computer science and programming are not topics addressed in many of our schools. Let’s take a moment to describe what we computer scientists do with each […]

Example case studies

OpenGL Example Installation needs: OpenGL driver GLUT Code: Android example Installation needs: Eclipse Android SDK Eclipse ADT plugin Android virtual device Code:

CS 145 Final

Exam

Plotting samples with GNU Octave

Suppose we have a plain text file of samples named samples.txt, with each intensity on its own line: We can visualize these results in GNU Octave with: If we write this code in a script named plot_samples.m, we can simply run plot_samples at the Octave command-line.

CS 491 Lecture 24 – Trivia competition

Agenda ask 100 questions give out prizes Haiku  

Levenshtein distance

We’re looking at methods for comparing the distance between two sequences of text. A fairly simple one is Levenshtein distance, which calculates how many edits it takes to go from one string to another. I wrote a little calculator to demonstrate its results. Enter two words and calculate their distance. Cell (i, j) reports the minimum […]

CS 145 Lecture 25 – Sound

Agenda how’d it go? generating sound (frequencies, WAV standard) binary I/O little endian vs. big endian Code LEDataOutputStream Haiku

CS 145 Lecture 24 – Growable arrays

Agenda identity per instance instance vs. static a growable String array Code … Haiku  

CS 491 Lecture 23 – BThwack

Agenda BThwack We were going to talk about incorporating a two-player Bluetooth mode into Bluecheckers, but it was getting out of hand. Instead, I looked back at the last of apps you folks expressed interest in back at the beginning of the semester. And there is was. Whack-a-mole. But not just any Whack-a-mole, Bluetooth-enabled Whack-a-mole. […]

CS 491 Lecture 22 – Bluecheckers

Agenda case study of making a NDK/OpenGL powered game Bluecheckers A couple of weeks ago I got the latest issue of Make magazine in the mail. On page 56, Charles Platt describes a 2-player Chinese Checkers game. I thought, “That’d be fun on a mobile device.” We don’t have time to code it all from scratch, but […]

1 194 195 196 197 198 204