Artificial Intelligence: A Modern Approach
3rd Edition
ISBN: 9780136042594
Author: Stuart Russell, Peter Norvig
Publisher: Prentice Hall
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 5, Problem 1E
Explanation of Solution
- The translation uses the model of the opponent to fill in the opponent’s actions leaving the actions to be determined by the search algorithm.
- The search problem is given by
Initial state: P(S0) where S0 is the initial game state. P can be applied as the opponent may play first.
Actions: defined as in the game by ACTIONSs.
Successor function: RESULT′(s, a) = P(RESULT(s, a))
Goal test: goals are terminal states
Step cost: the cost of an action is zero.
Want to see more full solutions like this?
Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
n = 9.
sign and Analysis of Algorithms (3rd ed.) [Levitin 2011-10-09].pdf ✓
1
2
3
zoom O
4
O
5. How would you modify the dynamic programming algorithm for the coin-
collecting problem if some cells on the board are inaccessible for the robot?
Apply your algorithm to the board below, where the inaccessible cells are
shown by X's. How many optimal paths are there for this board?
1
3
4
5
6
8.1 Three Basic Examples
2
X
O
5 XXX
2
O
Xo
X
O
Search
Fri May 12
291
6. Rod-cutting problem
Design a dynamic programming algorithm for the fol-
lowing problem. Find the maximum total sale price that can be obtained by
cutting a rod of n units long into integer-length pieces if the sale price of a piece
i units long is p; for i = 1, 2, ..., n. What are the time and space efficiencies
of your algorithm?
7. Shortest-path counting A chess rook can move horizontally or vertically to
any square in the same row or in the same column of a chessboard. Find the
number of shortest paths by which a rook can move…
You and Alice and Bob are considering variants of the Pokemon problem. In the opti-
mization problem we are looking for the minimum set of packs, and there are multiple
ways to convert it to a decision problem (you probably used the standard method of
adding a threshold variable k above).
Alice considers the question "Is there a collection of packs of size 5 (or less) that includes
one of every card in the set?".
Bob considers the question "Is there a collection of packs of size [2] (or less) that
includes one of every card in the set?".
Are Alice and Bob's versions of the problem NP-complete? Either way, justify your answer
with a proof.
Artificial Intelligence - Adversarial Search
1. Consider the following three variants of minimax search: the simple version, alpha-beta search, anddepth-limited search, and consider the games of tic-tac-toe and chess. For the chess game, supposethat the Threefold Repetition Rule and the Fifty-Move Rule, and the similar rules if any, are notconsidered, i.e., the game will not terminate if the same position occurs multiple times. For eachcombination of minimax variant and game, answer the following question: can that minimax variantpossibly never terminate, in computing the best next move? Justify your answer.
Chapter 5 Solutions
Artificial Intelligence: A Modern Approach
Knowledge Booster
Similar questions
- Give the initial state, goal test, successor function, and cost function to transform the following problem into a search problem. Choose a formulation that is precise enough to be implemented. You are not to supply the solutions. You have to color a planar map using only three colors, with no two adjacent regions having the same color.arrow_forwardImplement an algorithmic solution, indicating which states are valid and which are not, and model the space of the following problem: An interest group from a small town decided to sue a company for commercial abuse. For this, the people have organized themselves and decided to send 3 representatives, who will have to travel in a Van to the city where the lawsuit will be filed. The company to be sued, upon learning of these actions, has decided to send 3 lawyers to persuade the representatives, who will also travel in the same Van for that purpose. The community must file the class action suit under these conditions: - The three applicants must reach the destination city; - Only two people can travel per trip in the Van (small town - city, city - small town); - There can never be more lawyers than plaintiffs in any one place (either in the small town or city) because the lawyers can persuade the plaintiffs and as a consequence, the lawsuit would not be made; - The Van cannot be…arrow_forwardCalculate the optimal value of the decision parameter p in the Bresenham's circle drawing algorithm. The stepwise procedure for implementing Bresenham's algorithm for circle drawing is delineated.arrow_forward
- 8.arrow_forwardStart from any random state of the 8 puzzle problem. State the goal state for your problem. Then simulate the possible states that a stochastic hill climbing search and a first choice hill climbing search might take from the given state using manhattan distance heuristicarrow_forwardImplement the algorithm for an optimal parenthesization of a matrix chain product as dis-cussed in the class.Use the following recursive function as part of your program to print the outcome, assumethe matrixes are namedA1, A2, ..., An.PRINT-OPTIMAL-PARENS(s, i, j){if (i=j) thenprint “A”i else{print “(”PRINT-OPTIMAL-PARENS(s,i,s[i, j])PRINT-OPTIMAL-PARENS(s, s[i, j] + 1, j)print “)”} }a- Test your algorithm for the following cases:1. Find and print an optimal parenthesization of a matrix-chain product whose sequenceof dimensions is<5,10,3, X,12,5,50, Y,6>.2. Find and print an optimal parenthesization of a matrix-chain product whose sequenceof dimensions is<5,10,50,6, X,15,40,18, Y,30,15, Z,3,12,5>. 3. Find and print an optimal parenthesization of a matrix-chain product whose sequenceof dimensions is<50,6, X,15,40,18, Y,5,10,3,12,5, Z,40,10,30,5>. X=10 Y=20 Z=30arrow_forward
- Consider navigating the maze shown below (same maze used in the homework). (N M 4 2 K 2 2 2 E B G 2 2 F H 2 The maze is represented as a graph with edge costs as shown on the edges. The edge cost is 1 for all edges where the cost is not shown. Let B be the initial state and G is the goal state. The heuristic cost of every node to reach G is : h(n) Th A 5.1 B 4.1 C 3.9 D 14 E 2.2 IF 3.8 G 0 IH 3.7 IJ 7 IK 16 L 14 IM 0.5 IN 1.5 IP 1.8 S 4.5 Show the steps of an A* search starting from B to goal G: . Show the frontier and explored set in every iteration (i.e., complete the above table) List the vertices in the order they are expanded.arrow_forwardC programming, please solve with full answer.arrow_forwardCorrect answer will be upvoted else downvoted. Computer science. deck is called arranged if the front qualities are in expanding request and the back qualities are in diminishing request. That is, if ai<ai+1 and bi>bi+1 for all 1≤i<n. To flip a card I implies trading the upsides of simulated intelligence and bi. You should flip some subset of cards (perhaps, none), then, at that point, put every one of the cards in any request you like. What is the base number of cards you should flip to sort the deck? Input The main line contains a solitary integer n (1≤n≤2⋅105) — the number of cards. The following n lines depict the cards. The I-th of these lines contains two integers ai,bi (1≤ai,bi≤2n). Each integer somewhere in the range of 1 and 2n shows up precisely once. Output In case it is difficult to sort the deck, output "- 1". In any case, output the base number of flips needed to sort the deck.arrow_forward
- Suppose that you have a maze search problem. From each numbered square in the maze, youmay move that exact number of squares horizontally or vertically in a straight line. Startingat a particular square (e.g. the top-left corner), find a path to the goal square marked "G".3 4 1 3 1 3 3 3 G 2 3 1 2 2 3 4 2 3 3 3 4 1 4 3 2 Describe the State Space components of this problem. Then solve the problem using breadthirst search and the depth first search. Hint: Indicate the changes to the Open and ClosedQueues in solving this problem for each type of search.arrow_forwardHow would you modify the dynamic programming algorithm for the coin collecting problem if some cells on the board are inaccessible for the robot? Apply your algorithm to the board below, where the inaccessible cells are shown by X’s. How many optimal paths are there for this board? You need to provide 1) a modified recurrence relation, 2) a pseudo code description of the algorithm, and 3) a table that stores solutions to the subproblems.arrow_forwardAnswer them please.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Operations Research : Applications and AlgorithmsComputer ScienceISBN:9780534380588Author:Wayne L. WinstonPublisher:Brooks Cole
Operations Research : Applications and Algorithms
Computer Science
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Brooks Cole