



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




YOUR ID: ID TO RIGHT: ROW: NO. FROM RIGHT:
The exam will begin on the next page.
This page summarizes the points available for each question so you can plan your time.
2a. N “All men are mortal.” ∀x Man(x) Mortal(x)
2b. Y “Fido has a brother who is a dog.” ∃x Brother(x, Fido) Dog(x)
2c. Y “For every quiz, there is a student who got 100 on it.” ∀q∃s Quiz(q) [ Student(s) Got100(s, q) ]
2d. “No student got 100 on every quiz.” ∀s∃q Student(s) [ Quiz(q) ¬Got100(s, q) ] (Question 2d was discarded as ambiguous. Everyone gets it right.)
2e. N “Every student got 100 on every quiz.” ∀s∃q Student(s) [ Quiz(q) Got100(s, q) ]
2f. Y “Everyone has a favorite food.” ∀x∃y Person(x) [ Food(y) Favorite(y, x) ]
2g. N “There is someone at UCI who is smart.” ∃x [ Person(x) At(x, UCI) ] Smart(x)
3a. T (A B) is equivalent to (¬ A B).
3b. F [ (A B) (¬ A) ] entails (¬ B).
3c. T [ (A B) (¬ B) ] entails (¬ A).
3d. T [ (A B) (¬ A C) (¬ C) ] entails B.
3e. T [ (A B) (¬ (A ¬ B) ) ] is equivalent to A.
3f. T (A (B C) ) is equivalent to (A B) (A C).
3g. T (A B) is equivalent to (¬ A ¬ B).
Criterion Complete? Time complexity Space complexity Optimal? Breadth-First Yes O(b^d) O(b^d) Yes Uniform-Cost Yes O(b^(1+floor(C/ε))) O(b^(1+floor(C/ε))) Yes Depth-First No O(b^m) O(bm) No Depth-Limited No O(b^l) O(bl) No Iterative Deepening Yes O(b^d) O(bd) Yes Bidirectional (if applicable)
Yes O(b^(d/2)) O(b^(d/2)) Yes
Where the answer is Y, other weights are OK iff the decision function is correct.
8a. “At least two inputs are 1.” Correctly classifiable? Y If yes, weights are w0 = -1.5 ; w1 = 1 ; w2 = 1 ; w3 = 1
8b. “Exactly two inputs are 1.” Correctly classifiable? N If yes, weights are w0 = ; w1 = ; w2 = ; w3 =.
8c. “At most two inputs are 1.” Correctly classifiable? Y If yes, weights are w0 = 2.5 ; w1 = -1 ; w2 = -1 ; w3 = -.
8d. “Input x1 = 1, input x2 = 0, input x3 =anything.” Correctly classifiable? Y If yes, weights are w0 = -0.5 ; w1 = 1 ; w2 = -1 ; w3 = 0.
8e. “IF input x1 = 1 THEN input x2 = 0 ELSE input x2 = 1.” Correctly classifiable? N If yes, weights are w0 = ; w1 = ; w2 = ; w3 =.
8f. “Input x1 = input x2.” Correctly classifiable? N If yes, weights are w0 = ; w1 = ; w2 = ; w3 =.