Homework for UCLA Computer Science 131, winter 2023

[131 home]

Submit your homeworks electronically on Bruin Learn.

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
2023-01-22 Homework 1 (OCaml)
2023-02-03 Homework 2 (OCaml)
2023-02-15 Homework 3 (Java)
2023-02-24 Homework 4 (Prolog)
2023-03-03 Homework 5 (Scheme)
2023-03-13 Project (Python) – no submissions after 2023-03-17
2023-03-17 Homework 6 (Rust) – no late submissions

The midterm is scheduled for Wednesday, 2023-02-08, in lecture.

The final exam is scheduled as per the registrar.

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