teaching machines

CS 145 Lecture 29 – ArrayList and the So Far Pattern

Agenda what ?s what does this do? arrays as collections the so-far pattern What Does This Do? For-each/Map make new array same size as old for each element in old transform element drop it in the corresponding location in the new array So Far/Fold/Reduce initialize so-far for each element in array combine element with so-far […]

CS 145 Lab 7 – Arrays and ArrayLists

First, if you have checkpoints left over from last lab, get them inspected during the first 15 minutes of this lab. No credit will be awarded past these 15 minutes. Don’t forget to work in pairs! Where possible, please work with someone that you did not work with last lab. The exchange of new ideas and […]

CS 145 Lecture 28 – ArrayList and For-each Pattern

Agenda what ?s blackboxes for-each pattern program this the tail of an apache log growable arrays Blackbox Blackbox 9 Blackbox 10 Blackbox 11 Program This Your work for U-WE-C, a digital security firm. You are inspecting the log files on a system, but you only care about the last 10 entries in the file. How […]

CS 145 Lecture 27 – Array Miscellany

Agenda what ?s program this 1 arrays of arrays TODO We will not have class or office hours on Friday. Your instructor will be meeting with math educators from the local area as part of a research project he is involved in. Read chapter 7 through section 7.2. Share questions, observations, and sightings of arrays […]

CS 145 Lab 6 – Arrays

First, if you have checkpoints left over from last lab, get them inspected during the first 15 minutes of this lab. No credit will be awarded past these 15 minutes. Don’t forget to work in pairs! Where possible, please work with someone that you did not work with last week. The exchange of new ideas and […]

CS 145 Homework 5 – due before November 14

See the PDF.

CS 145 Lecture 26 – Arrays as Maps

Agenda what ?s arrays as maps fair die letter frequencies TODO Start homework 5. Due before November 14. For 2 extra credit quarter sheet participation points, map out a Choose Your Own Adventure book (as described in the homework 5 specification, e.g. “2|3|5,6,7|p|||”). Share the book String and a graph of the book on Piazza. […]

CS 145 Lecture 25 – Array Bingo

Agenda what ?s array bingo you call Bingo The rules: Each player drafts a board: an array of 10 ints in [0, 9]. The instructor calls out a series of boolean expressions that involve elements of the players’ boards. The leftmost element identified in the expression is the target. If the expression is true for […]

CS 145 Lecture 24 – Hello, Arrays

Agenda what ?s the birthday problem numbering our data arrays Program This You, being a degree-seeking human, have an insatiable appetite for trivia. You wonder how many birthdays are in the room. Does each person have a unique birthday? Was everybody born on just one day? Or is the answer somewhere in the middle? How […]

CS 145 Lecture 23 – Loops V

Agenda what ?s what does this do? blackboxes loops in other languages TODO Share a quiz question before the quiz in Monday’s lab. Pretend that your question might actually appear in the quiz: make it short, direct, and on topic. Worth a 1/4 sheet. What Does This Do? Blackboxes Blackbox 7 Blackbox 6 Blackbox 8 […]

1 20 21 22 23 24 35