CS241: Spring 2017 -- Lecture 2

  1. Reading assignment (for Tues), Chapter 5
  2. On beginnings (and endings)
  3. Java and the process of programming
  4. Seeding: given n, a power of 2, generate (and return) an array with the initial pairings for a seeded tournament of size n: so your whole could be: display(generateSeeded(n));! Assuming void display(int[] seeds){...}, the signature must be int[] generateSeeded(int). Two ways to go at it:
  5. How to write/test int[] expand(int[])? Two ways: old for loop, new for loop...