CS 236 Homework Assignments
Homework assignments are due by the 11:00 pm on the due date.
Please upload a PDF file containing your solutions to Learning Suite.
Late submissions are not accepted.
Email submissions are not accepted.
Assignment | Assigned Problems | Due Date |
---|---|---|
Homework 1 | only problems 3, 4 | 27 Jun 2025 |
Homework 2 |
only problems 2, 5
(for problem 5, you don't need to use BNF notation) |
30 Jun 2025 |
Homework 3 |
only problems 2, 3, 4, 5
(for problem 4, the start symbol is <expression>) |
30 Jun 2025 |
Homework 4 |
only problems 6, 7
(you don't need to give "output" for problem 7) |
2 Jul 2025 |
Homework 5 |
only problems 4, 5, 7
(for problem 5, only do parts a,b,c (not part d)) |
7 Jul 2025 |
Homework 6 | only problems 1, 5, 6 | 7 Jul 2025 |
Homework 7 |
only problems 1, 2, 5, 6
(for problem 1, assume 'sound' means 'valid') |
9 Jul 2025 |
Homework 8 |
Problem 1.
Use mathematical induction to prove
Use mathematical induction to prove |
11 Jul 2025 |
Homework 9 | only problems 1, 2, 6 | 14 Jul 2025 |
Homework 10 | only problems 6, 7 | 14 Jul 2025 |
Homework 11 |
Problem 1.
Consider the following facts, rules, and queries. Facts: child('Jill','Zed'). child('Ned','Bea'). child('Tim','Jack'). child('Sue','Jack'). child('Anne','Jill'). child('Lou','Jane'). child('Mary','Tim'). child('Ron','Dan'). child('Anna','Kim'). child('Tim','Jill'). child('Mary','Jane'). child('Jill','Bea'). Rules: ancestor(X,Y) :- child(Y,X). ancestor(X,Y) :- child(Y,Z), ancestor(X,Z). Queries: ancestor('Zed','Mary')? a. Write the rules as clauses (disjunctions of literals). b. Write one formal proof of the query using proof-by-contradiction, instantiation, and resolution. Give a justification for each line in your proof. Each step must be a premise or the result of instantiation or resolution. |
16 Jul 2025 |
Homework 12 | only problems 1, 7 | 18 Jul 2025 |
Homework 13a | only problem 1 | 18 Jul 2025 |
Homework 13b |
only problems 2, 3i
(For problem 3, only complete part i: give a relational algebra expression) |
21 Jul 2025 |
Homework 14a |
only problems 1, 2
(for problem 2, only do parts a-e) |
23 Jul 2025 |
Homework 14b |
only problem 6
(For problem 6, ignore the Irreflexive and Asymmetric properties.) |
25 Jul 2025 |
Homework 15a | only problems 1, 2 | 30 Jul 2025 |
Homework 15b | only problems 5, 7 | 30 Jul 2025 |
More will be posted later. |