Algorithms and OOD (CSC 207 2014S) : EBoards

CSC207.01 2014S, Class 08: Input and Output




Notes/Questions on HW 2

Why do I ask you the average question?

Because there's a great story about binary search in Java.

What is "amortized time"?

"On average, it takes. ..."

How do you write a good hash function for Fractions?

We'll talk about that later.



What's that true in new PrintWriter(System.out, true)?

It indicates that the PrintWriter should autoflush

Where does the file go?

You should probably give a full pathname.

Otherwise, it has some silly default location, like "In the directory that the code resides."

Copyright (c) 2013-14 Samuel A. Rebelsky.

Creative Commons License

This work is licensed under a Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.