CSci 4511 - Homework 3
Homework 3 -- due date Thursday March 14
This homework will be graded out of 100 points. It will count 6% of the
grade. You can submit the homework with a 10% late penalty up to
Sunday March 17.
Written questions
- [30 points]
Decide if the following sentences are valid, unsatisfiable, or neither.
To do it, use the truth tables and equivalency rules from Chapter 7.
- Small ⇒ Small
- Small ⇒ Light
- (Small ⇒ Light) ⇒ (¬ Small ⇒ ¬ Light)
- Small ∨ Light ∨ ¬ Light
- ((Small ∧ Dense)⇒ ¬ Light) ⇔ ((Small ⇒ Dense)
∨ (¬ Light ⇒ Dense))
- (Small ⇒ Dense) ⇒ ((Small ∧ Light) ⇒ Dense)
- Small ∨ Cute ∨ (Small ⇒ Cute)
- (Small ∧ Cute) ∨ ¬ Cute
- ((Snow ⇒ Wet) ∧ (Wet ⇒ Cold)) ⇒ (Snow ⇒ Cold)
- ((Snow ∨ Wet ) ∧ ( ¬ Wet ∨ Cold)) ⇒ ( Snow ∨ Cold )
- [15 points]
For each of the following propositional calculus formulas, state
briefly if it is a
correct representation in propositional calculus of the sentence
"If the dog sleeps and the house is warm, then the night is quiet."
or not and explain why. The propositions used in the sentences
should have an obvious interpretation.
- DogSleeps ∧ HouseWarm ∧ NightQuiet
- (DogSleeps ∨ HouseWarm) ⇒ NightQuiet
- (DogSleeps ∧ HouseWarm) ⇒ NightQuiet
- NightQuiet ⇒ (DogSleeps ∧ HouseWarm)
- ¬ DogSleeps ∨ (¬ NightQuiet ∨ HouseWarm)
- [25 points] Convert the following set of propositional clauses to CNF
- (Sunny ⇒ Warm) ⇒ Warm
- (Sunny ⇒ Sunny) ⇒ Rain
- (Rain ⇒ Wet) ⇒ ¬ (Wet ⇒ Warm)
and prove by resolution with refutation "Rain".
Programming questions
Use the python or lisp aima software to anser the following questions.
Submit source files showing your function calls and any changes you make
(do nto submit all the aima files!)
and a file showing the output obtained.
- [5 points] Create a minimax agent and play it against itself in
a tic-tac-toe game.
- [5 points] Play the alpha-beta agent against itself in a tic-tac-toe
game.
- [5 points] Show if alpha-beta does any pruning when playing against
itself in a tic-tac-toe game.
- [15 points] Study the effect of the order in which players play
the game on their ability to win in a tic-tac-toe game.
- Play the alpha-beta agent against a random agent.
Collect the results when playing 10 games.
- Repeat the same but this time making the random agent playing
first. Collect the results when playing 10 games.
- Compute the average winning rate for the two setups. Can you make any
conclusion from the results?
Copyright: © 2019 by the Regents of the University
of Minnesota
Department of Computer Science and
Engineering. All rights reserved.
Comments to: Maria Gini
Changes and corrections are in red.