Course Notes / Class Diary: CS 2710, Section 01 (Fall 1999)
All course transparency files given below, e.g., sl2710_1.ps, are in PostScript
format. To read this format, you need access to a PostScript reader. The most
widely-available of these readers is called "ghostview", and is available
on our departmental Linux systems as command "gv", e.g.,
"/usr/X11/bin/gv sl2710_1.ps". If you require a PostScript viewer for your computer
at home, Hamsa Subramanian reccomends the following
website of downloadable software
for viewing Postscript files; Greg Lush also recomends the following
website of downloadable
PostScript software.
Kurt Sampson has passed on the following info about printing PostScript
documents under Windows: "To print from GSview
in windows, in the print screen select mswinpr2 from the device section. Make
sure Post Script Printer and Print to File are NOT selected. In the
Queue: field select the name of your printer and press ok. This will allow
windows to convert the .ps file to a temporary .doc file to print normally."
People curious about on-line Java tutorials should check out this
website (found by Greg Lush).
A good review of the material in Lewis and Loftus (1998) (our course textbook)
is given online at
the University of Toronto's introductory Java course home page
(
lecture notes ;
course home page ) (found by Greg Saunders).
Persons curious about the UNIX operating system (of which Linux is the
PC version) might find the folowing
on-line tutorial
interesting.
Persons curious about the Linux operating system should contact the
St. John's Linux Users Group (SLUG).
Please note that copies of all transparencies listed below are on reserve in
the QE II Library; they are listed under Computer Science 2710 as "Lecture
Notes" and collectively have Library Reserve # 10905.
-
Lecture #1 (Wed, Sept 8)
- Why Are We Here (In This Course)?
-
Lecture #2 (Fri, Sept 10) [Sections 2.1 -- 2.3]
- Java Programs
- General Structure
- An Example
(
Short_Story.java )
- Classes and Methods
- Identifiers, Reserved Words, and Literals
- Comments and White Space
- Programming Languages
- Levels
- Compilers and Interpreters
- Syntax, Semantics, and Errors
- Compiling and Running a Java Program
-
Lecture #3 (Mon, Sept 13) [Sections 3.1 -- 3.2]
- Primitive Data Types
- What Are They?
- Integers and Floating Points
- Characters and Booleans
- Wrappers
- Variables
- What Are They?
- Declaration Statements
- Assignment Statements
- An Example Program
(
VarExp1.java )
- Another Example Program
(
VarExp2.java )
-
Lecture #4 (Wed, Sept 15) [Sections 3.3 -- 3.4]
- Input and Output
- General Structure
- Buffered I/O
- Example Program
(
IOExp.java )
- Notes on Example Program
- Arithmetic Operations
- Operator Precedence
- Example Program
(
OpExp.java )
-
Lecture #5 (Fri, Sept 17) [Section 3.5]
-
Lecture #6 (Mon, Sept 20) [Section 3.6]
- Conditional Statements (Cont'd)
-
Lecture #7 (Wed, Sept 22) [Sections 3.7 -- 3.8]
-
Lecture #8 (Fri, Sept 24) [Class Notes] (REVISED AND EXPANDED FROM LECTURE)
- Time Complexity
- What Is It?
- Example Algorithms
- Input Size
- Time Complexity Functions
(
time_complexity.txt ) [NEW!]
- Asymptotic Time Complexity Functions
(
big_Oh.txt ) [NEW!]
- Why Should You Care?
-
Lecture #9 (Mon, Sept 27) [Sections 2.4 -- 2.5, 4.1]
- Classes and Objects
- The Software Crisis
- What Are They (Really)?
- Implementation in Java
- Inheritance and Class Libraries
-
Lecture #10 (Wed, Sept 29) [Section 4.2] (EXPANDED FROM LECTURE)
- A Numerical Interlude
- Conversion of Numerical Types
- Types of Conversion
- Classes and Objects (Cont'd)
-
Lecture #11 (Fri, Oct 1) [Sections 4.3 -- 4.4]
- Classes and Objects (Cont'd)
-
Lecture #12 (Mon, Oct 4) [Section 4.5 -- 4.8]
- Classes and Objects (Cont'd)
-
Lecture #13 (Wed, Oct 6) [Sections 4.9 -- 4.10]
- Classes and Objects (Cont'd)
-
Lecture #14 (Fri, Oct 8) [Sections 5.1 -- 5.2]
- Mon, Oct 11: Thanksgiving: No Lecture
-
Lecture #15 (Wed, Oct 13) [Sections 5.3 -- 5.4]
- More Operators
- The switch Statement
- The do Statement
- The for Statement
-
Lecture #16 (Fri, Oct 15) [Section 5.4; OOP Review]
- Creating Object-Oriented Programs
- Lecture #17 (Mon, Oct 18) [OOP Review (Cont'd)]
-
Lecture #18 (Wed, Oct 20) [Section 6.1]
- Fri, Oct 22: Midterm Exam
- Covers Chapters 1 - 4 of the textbook.
- Useful example for midterm study: Source code for
Assignment #5
(
RatFull.java ,
RatFull.script )
- Lecture #19 (Mon, Oct 25) [Section 6.1]
-
Lecture #20 (Wed, Oct 27) [Sections 6.1 -- 6.2]
- Arrays (Cont'd)
- Arrays of Objects
- Multidimensional Arrays
- Vectors
- Lecture #21 (Fri, Oct 29) [Section 6.2, Sections 13.1]
- Lecture #22 (Mon, Nov 1) [Section 13.1]
- Lecture #23 (Wed, Nov 3) [Section 13.1]
- Fri, Nov 5: Class cancelled (instructor sick)
- Mon, Nov 8: Went over Midterm Exam
- Wed, Nov 10: Midterm Break: No Lecture
- Fri, Nov 12: Midterm Break: No Lecture
- Lecture #24 (Mon, Nov 15) [Section 13.2]
- Searching
- What is searching?
- Linear search
- Binary search
- Lecture #25 (Wed, Nov 17) [Sections 12.1 -- 12.2]
- Lecture #26 (Fri, Nov 19) [Sections 12.2 -- 12.3]
- Mon, Nov 22: Class cancelled (instructor sick)
- Lecture #27 (Wed, Nov 24) [Sections 8.1 -- 8.2]
- Relating Classes / Sharing Class Attributes
- Lecture #28 (Fri, Nov 26) [Sections 8.2 -- 8.3]
- Relating Classes / Sharing Class Attributes (Cont'd)
- Inheritance (Cont'd)
- Creating subclasses.
- Overriding methods.
- Polymorphism
- Lecture #29 (Mon, Nov 29) [Sections 8.3 -- 8.4, 9.1]
- Relating Classes / Sharing Class Attributes (Cont'd)
- Inheritance (Cont'd)
- Polymorphism
- Class Hierarchie
- Abstract classes and methods
- Lecture #30 (Wed, Dec 1) [Sections 8.3, 9.1 -- 9.2]
- Lecture #31 (Fri, Dec 3) [Sections 9.2 -- 9.3]
- Lecture #32 (Mon, Dec 6) [Section 14.1]
END-OF-TERM NOTES:
- The final exam is in Arts Annex rooms A-1046 (Wareham's class) and A-1043
(Batten's class) from 9 AM to 11 AM on December 11, 1999 (Saturday).
- Term marks are now out: Please see the posted notices outside my office
(EN-2014), check the marks listed for you carefully, and report any
discrepancies by December 14, 1999 in person to me (preferably with
relevant assignments / lab quizes / midterm exams / sick notes in hand);
otherwise, the posted marks are your marks for the term.
- All of assignment #10 is finally back; please drop by my office (EN-2014)
and see me to pick up it and any other stuff that I have belonging to
you from this term.
Created: September 8, 1999
Last Modified: December 8, 1999