Assignments

Theoretical homework

Instructions for all assignments:

  • The theoretical homework are personal and intended for self work. It is not allowed to solve these assignments together or to share solutions.
  • Solutions should be submitted to wooden box #4 (next to room 005, ground floor, Schreiber Building). They will be returned to room 114.
  • Explain each of your answers, unless instructed otherwise.
  • Write your answers clearly, in print or with a clear pen.
  • Do not forget to write your name and ID on top of the exercise.
  • Keep a copy of every assignment you submitted.

Assignments

Assignment Due date Solutions
Assignment no. 1 Mar 19, 16:00 solution
Assignment no. 2 (Missing figure) Apr 2, 16:00 solution
Assignment no. 3 Apr 23, 16:00 solution
Assignment no. 4 May 7, 16:00 solution
Assignment no. 5 May 14, 16:00 solution
Assignment no. 6 May 24, 16:00 solution
Assignment no. 7 June 4, 16:00 solution
Assignment no. 8 June 30, 16:00

Programming projects

Assignment Due date Tester
Project No. 1 Header Tester Apr 30, 16:00 Ex1Tester.java MyTree.java
Project No. 2 Heap.java HeapTester.java June 4, 16:00
  • There will be two programming assignments during the semester.
  • Each student must submit all assignments in order to be eligible for a final grade.
  • The programming projects should be submitted in pairs.
  • The projects should be submitted on time.

What to submit?

  1. The Java file with your code.
    • Built-in data-structures: You may not use in your implementation any of the built-in java.util data-structure classes (or similar packages)
    • Inline comments : The java file should have inline documentation, mainly composed of a reasonable amount of comments (when needed).
    • Code readability : Pay attention to things like variable names (call a variable start, not s ), line length (no lines spilling over to the next line!)
  2. A documentation file. The file name should be ex1.doc for the first exercise, and ex2.doc for the 2nd exercise.The documentation file should contain :
    • Course and exercise number
    • Full name, ID and login of both students. Also include an email addresses if you are not using the @post.tau.ac.il address.
    • A description of the class and how you implemented it. What is the purpose of each member of the class.
    • For every method in your program:
      • A short description of what it does and how it works.
      • The method's complexity analysis. This should be rigorous. (Like you did in class or in the lectures. Note that if a method calls other methods, you must include this in your calculations.)

How to sumbit?

  1. Submit a printout of the documentation file, and of the .java file you created, printed from both sides, maximum font size 10, and stapled together or in a folder, to box #260 on the first floor in Schreiber. Submit one hardcopy per pair.
  2. Submit a softcopy in your account.
    1. You should have a ds09b directory in your account.
    2. Exercise 1 should reside in the directory ~/ds09b/ex1. Exercise 2 should reside in ~/ds09b/ex2.
    3. This directory should contain 2 files: the .java file for the exercise and the appropriate documentation file (ex1/2.doc)
    4. You must not touch or change the files you submit after the deadline. All files carry a timestamp indicating the time of last modification. Files that are changed after the deadline will be considered as not submitted on time!
    5. The exercises should be in both students' accounts.

File permissions

The permissions of the entire path from your home directory down to the exercise files themselves should be 755, to enable reading by the checkers. You may use the following commands, which should be used from a linux terminal window, either in the lab or remotely from home (using Putty, for example):

chmod 711 ~
chmod -R 755 ~/ds09b

It is very important to submit the project with correct file permissions. A project without the right access permission cannot be check and would not be graded.

To make sure that you have the right permissions, do the following:
A. Run:

ls -lR ~/ds09b

The result should be something like that:
/a/home/cc/students/cs/student/ds09b/:
total 4
drwxr-xr-x 2 student student 4096 2009-03-29 20:14 ex1

/tmp/ds09b/ex1:
total 0
-rwxr-xr-x 1 student student 0 2009-03-29 20:14 example.java

Where the line of each directory should start with drwxr-xr-x, and the line of each file should start with -rwxr-xr-x

B. Each students should run the project from his/her partner's home directory.
For example, if Aya and Boaz are partners, then Aya logs in using her account, and runs the project in ~boaz/ds09b/ex1.

In case of problems with file, you can contact the helpdesk.

Grading

  • The grades will be composed of the following parts:
    1. Correctness of the program.
    2. Implementation efficiency. Your programs should have the smallest asymptotic time complexity you can achieve.
    3. Documentation and code clarity. Your documentation and code should be easy to understand.
  • You can appeal a grade within 2 weeks of a grade's publication.

Contact

Question regarding the submission of the projects, and their grades should be directed to the grader - Naama Mayer, naamamay at post tau ac il

Working on school servers

FAQ can be found here.
It is explained there how to log-in to "nova" using Putty and how to upload files using WinSCP.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License