Figure 5 shows the Wumpus world game, where the agent starts from location
Ask Expert

Be Prepared For The Toughest Questions

Practice Problems

Figure 5 shows the Wumpus world game, where the agent starts from location

Question 6: Figure 5 shows the Wumpus world game, where the agent starts from location [4,1], and does not sense breeze or stench. 

Please use propositional logics to write sentences to describe the observations and rules & backgrounds (after agent enters location [4,1], and only consider Pit).

Given above settings, please use model checking to validate that location [3,1] is safe (or KB ╞ ¬P3,1). Please list all models as a table (only consider Pit), and mark model(s) of KB and model(s) of a. Explain why KB ╞ ¬P3,1


Question 7: Figure 6 shows the Wumpus world game, where the agent starts from location [1,1], and does not sense breeze or stench. After that, the agent moves to location [1,2] and sense a Breeze (B). Then the agent moved back to [1,1], and further moved to location [2,1] and senses a Stench (S). Based on the above observations and the Wumpus world game rules, please use resolution algorithm to prove following entailment.

KB╞ ¬W1,3 (There is no Wumpus at location [1,3])

KB ╞ W3,1 (There is a Wumpus at location [3,1])

KB ╞ P1,3 (There is a Pit at location [1,3])

KB ╞ ¬P2,2 (There is no Pit at location [2,2])

KB ╞ ¬W2,2 (There is a no Wumpus at location [2,2])


Question 8: The following table lists a number of predicates 

A(x)

x is an apple

B(x)

x is blue

T(x)

x is tasty

G(x)

x is green

R(x)

x is red

P(x)

x is people

F(x)

x is fruit

L(x,y)

x like y

Using first order logic to express following sentences 

Apples are fruit

Some apples are red

No apple is blue

Green apples are tasty

Some people do not like apple

Not all apples are green

Some people like fruit, except apples

No fruit is liked by every people

Question 9: The following sentences describe interesting behaviors of a Hoffer club members. 

Tony, Shi-Kuo and Ellen belong to the Hoofers Club. 

Every member of the Hoofers Club is either a skier or a mountain climber or both. 

No mountain climber likes rain, and all skiers like snow. 

Ellen dislikes whatever Tony likes and likes whatever Tony dislikes.

Tony likes rain and snow.

Query: Does Hoffer club has a member who is a mountain climber but not a skier?

(1) Define predicates and relations of the Hoffer using first order logic

(2) Using first order logic to express each sentence (including query)

(3) Converting each sentence to clause format

(4) Using Unification to answer the query

For each subtask, please use task description (requirement) as comments, and report your coding and results in following format: 


Question 10: The Minmax Decision Playing Tictactoe [Notebook, html] and Alphabeta Pruning Playing Tictactoe [Notebook, html] posted on Canvas show two programs playing Tic-Tac-Toe game against a computer agent.  Use Notebook as the skeleton code, validate and compare following settings and results. 

a. Play Tic Tac Toe Minmax for 10 times. Report average computer thinking time (which is the time required for Minmax algorithm to find solutions). Report number of times you have won/lost/tied. Explain why it is hard to win the game against computer

b. Play Tic Tac Toe Alphabeta for five time. Report average computer thinking time (which is the time required for Alpha Beta Pruning to find solutions). Compare time required for Minmax and Alphabeta pruning, explain why Alphabeta pruning is quicker.

c. What is the maximum depth of the game tree for Tic tac toe.

tictactoealphabeta

tictactoeminmax

Hint
ManagementAlpha–beta pruning : The alpha beta pruning is a search algorithm which seeks to decrease the number of nodes that are evaluated by the minimax algorithm in its search tree. Also, it is an adversarial search algorithm which is used commonly for the machine playing of two-player games....

Know the process

Students succeed in their courses by connecting and communicating with
an expert until they receive help on their questions

1
img

Submit Question

Post project within your desired price and deadline.

2
img

Tutor Is Assigned

A quality expert with the ability to solve your project will be assigned.

3
img

Receive Help

Check order history for updates. An email as a notification will be sent.

img
Unable to find what you’re looking for?

Consult our trusted tutors.

Developed by Versioning Solutions.