Algorithms and OOD (CSC 207 2014F) : EBoards

CSC 207.01 2014F: Extra Session 7 (Thursday, 16 October 2014)


Topics to discuss

How do I get CSC207.xml on my laptop?

Open a terminal window.

    $ cd Desktop
    $ sftp
    Password: MathLAN Password
    sftp> cd /home/rebelsky/share/
    sftp> get CSC207.xml$a
    sftp> bye

Open Eclipse and Import

How do I think about average?

How do I make a random array?

I really mean "how do I make a lot of random arrays"?

We could look at the sorting code.

"A lot" probably means I should use a loop

    Random generator = new Random();
    for (size = 3; size < 10000; size = size + generator.nextInt(100))
        int[] arr = new int[size];
        for (int i = 0; i < size; i++)
            arr[i] = generator.nextInt();
          } // inner for
      } // outer for

Kitchen Sink


Loop Invariants

Issues: Problems are getting hard -> Programmers screw up.