CS 151: Algorithms and Data Structures II

Course overview, policies



About
Announcements
Lectures
Coursework
FAQ


Java API

  • Instructor: Prof. Rahul Simha

  • Time/place:
    • Class: Tuesdays/Thursdays 2.20-3.35pm, Tompkins 411.
    • Lab: Mondays, 6.10-8.00, Tompkins 411.

  • Office Hours: Tue/Thu 4-6pm, Phillips 717.

  • TA: Yu Zhou (Email: yuzhou AT gwu.edu)

  • TA Office Hours: Mon 10-12, Fri 1-3, 725 Phillips.

  • Course CRN's: Class (52415), Lab (52416)

  • Prerequisites: CS 143 or equivalent (See undergraduate curriculum). Working knowledge of Java.

  • Course description: In this course, students will learn core concepts in algorithms, data structures, and problem-solving techniques. Students will be exposed to classic problems in computer science (such as searching and sorting), classic data structures (hashing, heaps) and classic optimization problems (such as the Traveling Salesman Problem). Students will be encouraged to write clean, efficient code for their assignments. The course will be conducted lab-style with a mix of lecture, lab assignments and projects.

  • Textbook: A fair portion of the course does not need a textbook because the lecture material is available to you on this site. However, I am going to prescribe some reading from the book below. The amount of reading is light enough that you can share a book or borrow one. On the other hand, you won't go wrong buying the book - it's quite a useful reference in later years.
    Introduction to Algorithms. T.H.Cormen, C.E.Leiserson and R.L.Rivest. (McGraw-Hill). This book covers much more material than can be handled in a single-semester course. It's advantages are that it makes a useful desktop reference, algorithms are fleshed out in detail with examples and accurate pseudocode, and the book is up-to-date in most areas. Disadvantages: it's bulky, expensive and can initially be intimidating.

  • Programming load: The course will be fairly programming-intensive, comparable with CS143 or CS156. If you are taking TWO OTHER programming-intensive courses, you could be in for a rough semester. Stop by and discuss the issue with me.

  • Java: The course will make strong use of Java, especially in the assignments. See the CS143 homepage for some Java references.

  • Coursework and grading:
    • 7-8 points: some unannounced quizzes.
    • 30 points: five 1-week exercises.
    • 48 points: four 2-week assignments.
    • 15 points: one in-class exam.
    NOTE: the weightage may change depending on how the course evolves.

  • Assignment submission and late work policy:
    • All assignments will be submitted via your Unix accounts. Follow these instructions when submitting work.
    • No late submissions will be accepted for the exercises.
    • The assignments may be submitted late, but points will be taken off: 20 percent for each 24-hour period after the due-date. These points will not be pro-rated hourly. Thus, if an assignment is due 5pm Oct 19th, a submission at 5.05pm Oct 19th loses 20 percent.
    • The submission time will be determined by the file-date of your crypt file. Hardcopy late submissions must be initialled with the submission time by one of the secretarial staff if I am not available.
    • If you're seeking an extension because you've been ill and have a letter from a doctor, come by and see me about it.
    • Don't forget: you need to pick a crypt-key for the semester and email that to the TA before the first exercise or assignment is due.

  • Email policy: You can send email to my GW email address. I will answer most class email during specific times set aside during the week for this purpose - so do not expect an instantaneous response. Since this is an advanced class, you may not perform "debugging by email". That is, do not send me code snippets and ask me to identify the problem. If you want me to look at your code, you have to stop by in person during office hours and bring along hardcopy. Email is typically used for clarification regarding coursework. If there is a TA assigned to the course, you ought to try to email the TA assignment-related questions before emailing me.

  • Academic Integrity policy:
    • In this course, you will be expected to work on all assigned coursework by yourself, unless otherwise specified by instructions on this page. If you have any questions whatsoever regarding these policies, see me during office hours.
    • You may not, without permission from the instructor, exchange course-related code with anyone (including anyone not registered in the course), or download code for use in your coursework, or use material from books other than the textbook. Likewise, you may not look at anyone else's code or show your code to anyone else. Protect your work: for example, be careful not to leave your printouts around.
    • If using a tutor, you may not show your CS151-related code to your tutor nor use code shown or written by your tutor. All tutors for CS151 need to first register with me, by meeting me during office hours.
    • If you use material in your assignments that are from outside the course material, then you should be prepared to explain that material. The instructor and TA's reserve the right to question you on your use of extraneous material. Failure to answer such questions might be viewed as grounds for an integrity violation.
    • The Academic Integrity Code will apply to this course. Please read through the code carefully.
    • Penalties for violating the code or the policies described here include failing this course, and are elaborated in the Academic Integrity Code.

  • If you have a disability that may effect your participation in this course and wish to discuss academic acommodations, please contact me as soon as possible.

  • Coding standards:
    • Having completed CS-143, you are expected to submit well-written code:
      • Include high-level documentation.
      • Comments must be substantive and must follow pseudocode where appropriate (more about this later).
      • Select readable variable names and method names.
    • Use consistent Java style:
      • Consistent indentation (preferred: two or four spaces).
      • Variable and method names start lowercase.
      • Class names start uppercase.
      • Capitalize multi-word names instead of using underscores.
    • You will learn to write efficient code in this course, but also need to pay attention to the three golden principles of coding: simplicity, clarity and generality.
    • Points may be taken off for "ugly code" even if correct and efficient.