[Latex Template] [Programming Guidance]

Please carefully read the Academic Integrity before you start working on the homework assignments.

In short, you can get help from the instructors, TAs, textbooks (or relevant books), the Internet, or discussions with your classmates, but you must cite them fully and completely (i.e., provide citations to the book or website link, acknowledge the other students that had discussions with you). Again, you are NOT allowed to:

  • copy anything from the book or the Internet,
  • read or look at anyone else's solutions (write-up or code),
  • share your solutions (write-up or code) with any other students, during or after the completion of the course.
  • When you write down your solution, it MUST be close-book. This is to make sure you truly understand and can recreate the solutions.

    📃 Entrance Exam

    There is an entrance exam for this course. There are 5 programming problems, covering several important algorithms you should have learned in undergraduate algorithm courses (simple sorting, greedy, DP, graph algorithms). Each of them should only take a few lines of code. You need to finish them in the first week. Each of them is 1 point in your final grade. Ideally you should pass all of them (and get all 5 points). ⚠ I would not recommend anyone getting < 4 points to take the course.

    If you cannot finish them in the first week, you are simply not ready for the course, and I suggest you to take the prerequisite courses and take CS218 again in the future (otherwise the course will also be too difficult to you, too).

    📝 Assignments

    There will be in total 5 assignments, each including both written and programming problems. We have 10 deadlines, which is help to push you plan ahead to work on the assignments 😜

    In particular, you need to finish the “training” programming problems in the first week (except for HW1). Generally they are simpler questions and are not too hard to finish within one week.

    For each assignment, there are 90 basic points (mapped to 9 points in your final score), and many bonus points available.

    • 80 points for required written problems and training programming problems. Usually we have 40-60 pts of required written problems, and 20-40 training programming problems. There are usually 2 training problems.
    • 30 pts of challenge problems, which are more challenging and advanced problems. They may be programming or written problems. There will be 3 such problems, 10pts each. You can work on any of them to get the 10 pts. If you solve more, they will be directly counted as bonus points. If you solved any problem in this part completely (i.e., getting full marks), you earn one candy.

    This means that you can get 11 out of 9 points if you work on ALL the problems (although that’s very very difficult!). Those beyond 9 points will be counted as bonus. For all the challenge problems, if you finish them before the June 3, you can get half of the points but no candy.

    Assignment Release Date Training Deadline Deadline Solution
    HW1 03/28 04/10 04/10 Solution
    HW2 04/11 04/17 04/24 Solution
    HW3 04/25 05/01 05/08 Solution
    HW4 05/09 05/15 05/22 Solution
    HW5 05/16 05/29 06/31 Solution

    🖋 Written Assignments

    You must use LaTeX to prepare your solution. Here you can find sample code for writing solutions using LaTeX.

    In grading, we will reward not only correctness but also clarity and simplicity. To avoid losing points for hard-to-understand solutions, you should make sure your solutions are either self-explanatory or contains good explanations. Please understand that grading your assignments is a lot of work for your TAs and readers, especially determining the correctness and cost bounds for your algorithms. We reserve the right to manually deduct points for solutions that are conceptually correct but does not show a sincere attempt to explain the ideas clearly.

    💻 Programming Assignments

    For all programming assignments, you will submit them on CodeForces. You can find a guidance document here. You still need to submit a short report in your write-up about each of the programming problems. The report does not need to be very long, but should contain:

    • CodeForces id and submission id.
    • A short description of your algorithm.
    • Some analysis of your algorithm (time complexity, correctness, etc.) if needed.

    We run automatic code comparison programs on student solutions. These programs are very good at detecting similarity between code, even code that has been purposefully obfuscated. Such programs can compare a submitted assignment against all other submitted assignments, against all known previous solutions of a problem, etc. The signal-to-noise ratio of such comparisons is usually very distinctive, making it very clear what code is a student’s original creative work and what code is merely transcribed from some other source. Cheating is simply not worth the risk.