Homework for UCLA Computer Science 131, fall 2019

[131 home]

Submit your homeworks electronically on CCLE.

You are expected to do your homeworks by yourself. You can share ideas and discuss general principles with others in the class, but all the code that you submit must be your own work; do not share your homework code with others, and do not look for previous solutions by using a search engine or visiting sites like GitHub. Please see Grading for more details. Consult a TA or the instructor if you have any questions about this policy.

Your programs must behave robustly. Among other things, this means they must avoid arbitrary limits on the length or number of any data structure, including symbols, strings, and line length. It is OK to impose a non-arbitrary limit, e.g., because your computer runs out of memory or because of the limited range of the Java int type, but it is not OK to impose an arbitrary limit, e.g., a limit of at most 255 characters in a symbol.

Please stick to coding styles used in the course material rather than inventing your own style, as this saves work for the grader.

Assignments are due by 23:55 on the specified date (i.e., five minutes before midnight).

Assignments and the schedule are tentative and may be adjusted as the quarter progresses.

due assignment
2019-10-08 Homework 1 (OCaml)
2019-10-21 Homework 2 (OCaml)
2019-10-25 Homework 3 (Java)
2019-11-07 Homework 4 (Prolog)
2019-11-15 Homework 5 (Scheme)
2019-11-25 Project (Python)
2019-12-04 Homework 6 (C++, Go, Java, Python) – 12-06 is last day to submit

The midterm is Wednesday, 2019-10-30, during lecture.

The final exam is scheduled as per the registrar.

Please see the grading policy for how assignments are treated when late.