Artificial Intelligence: A Modern Approach
3rd Edition
ISBN: 9780136042594
Author: Stuart Russell, Peter Norvig
Publisher: Prentice Hall
expand_more
expand_more
format_list_bulleted
Concept explainers
Expert Solution & Answer
Chapter 3, Problem 31E
Explanation of Solution
Gaschnig’s heuristic vs Manhattan distance:
- The misplaced-tiles heuristic is exact for the problem where a tile can move from square A to square B.
- As this is a relaxation of the condition that a tile can move from square A to square B if B is blank, Gaschnig’s heuristic cannot be less than the misplaced tiles heuristic...
Explanation of Solution
Calculating Gaschnig’s heuristic:
- To compute Gaschnig’s heuristic, repeat the following until the goal state is reached:
- let B be...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Computer science. Correct answer will be upvoted else downvoted.
Think about a n by n chessboard. Its columns are numbered from 1 to n from the top to the base. Its sections are numbered from 1 to n from the passed on to one side. A cell on a convergence of x-th line and y-th section is indicated (x,y). The fundamental corner to corner of the chessboard is cells (x,x) for all 1≤x≤n.
A stage of {1,2,3,… ,n} is composed on the fundamental slanting of the chessboard. There is actually one number composed on every one of the cells. The issue is to segment the cells under and on the principle askew (there are by and large 1+2+… +n such cells) into n associated areas fulfilling the accompanying imperatives:
Each district ought to be associated. That implies that we can move from any cell of a locale to some other cell of a similar area visiting just cells of a similar district and moving from a cell to a neighboring cell.
The x-th area ought to contain cell on the fundamental…
GIVEN:
n red points and n blue points in the plane in general
position (i.e., no 3 points are on the same line)
PROVE:
there exists a matching (i.e., 1-1 correspondence)
between red and blue points such that the segments
connecting the corresponding points do not intersect.
EXTRA/HINT:
describe an algorithm for finding such matching
In order to determine the full histogram for all matchings of a given size, we need to generate every single possible matching in a unique way. This is where the inductive
description from the introduction becomes useful, as it provides a way to do so recursively: We can generate all arc diagrams with n arcs from all arc diagrams with
(n - 1) arcs by adding one arc to each of them in precisely 2n 1 ways. To this end, we take an arc diagram with (n - 1) arcs, insert one new point at the left end and
one more point somewhere to the right of it (2n − 1 options), and then match the newly inserted points to obtain the additional arc. The only "problem" is that we need
to relabel some points in doing so.
-
-
Inserting a point to the left implies that the indices of the other points all have to be increased by one. Moreover, if we insert another point at some position m, then all
the indices with values m and larger again have to be increased by one.
.
=
1, 2, 3. This implies that all indices…
Chapter 3 Solutions
Artificial Intelligence: A Modern Approach
Ch. 3 - Explain why problem formulation must follow goal...Ch. 3 - Prob. 2ECh. 3 - Prob. 3ECh. 3 - Prob. 4ECh. 3 - Prob. 5ECh. 3 - Prob. 6ECh. 3 - Prob. 8ECh. 3 - Prob. 9ECh. 3 - Prob. 10ECh. 3 - Prob. 11E
Ch. 3 - Prob. 12ECh. 3 - Prob. 13ECh. 3 - Prob. 14ECh. 3 - Prob. 15ECh. 3 - Prob. 16ECh. 3 - Prob. 17ECh. 3 - Prob. 18ECh. 3 - Prob. 20ECh. 3 - Prob. 21ECh. 3 - Prob. 22ECh. 3 - Trace the operation of A search applied to the...Ch. 3 - Prob. 24ECh. 3 - Prob. 25ECh. 3 - Prob. 26ECh. 3 - Prob. 27ECh. 3 - Prob. 28ECh. 3 - Prob. 29ECh. 3 - Prob. 31ECh. 3 - Prob. 32E
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- seems the sample puzzle is wrong. this is not a tentaizu puzzle puzzle = [ [0, 1, 1, 1, 1, 1, 0], [1, 2, 3, 3, 3, 2, 1], [1, 3, 8, 8, 8, 3, 1], [1, 3, 8, 0, 8, 3, 1], [1, 3, 8, 8, 8, 3, 1], [1, 2, 3, 3, 3, 2, 1], [0, 1, 1, 1, 1, 1, 0]] Sample puzzle should look like this. 3.................0........1......3.......3.....3arrow_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_forwardA frieze pattern is a decoration made from repeated copies of a basic unit, arranged in a row. Figure 1 shows two examples from France in about 1820. Figure 1 Example friezes a.Provide a decomposition of the problem of drawing a frieze pattern, assuming for the moment that the basic unit is repeated just 7 times. At this stage you are not trying to produce a solution, just break the problem down into smaller parts. We are looking for a decomposition that could apply to any frieze, so you should for now ignore the details of how the basic unit will be drawn. You will need to use a loop. (4 marks) In the remainder of this question, you will design and implement a program to draw the particular frieze shown in Figure 2. Figure 2 The frieze pattern for this question In this frieze the length of each horizontal and vertical segment is 25. b.Next refine your decomposition, adding more detail so that it becomes an algorithm. This is not yet a program, so you should write the…arrow_forward
- Answer the given question with a proper explanation and step-by-step solution. You are asked to pick up a project on building highways to connect all cities in the country. The cost of building a highway between two cites i and j is c(i, j) > 0. If you were in charge from the beginning, this would have been a minimum spanning tree problem and could be solve easily with the algorithms covered in class. Since you pick it up halfway, however, some suboptimal choices have already been made by your predecessor. In other words, highways were already built between some pairs of cities. Design an algorithm to find a cost minimizing set of highways to built subject to the choices already made. Do not copy others.arrow_forwardLet S = {3n :neZ}.A recursive definition for the set S is: %3D Basis Step: 3 ES Recursive Step: If x E S then a +3 E S Prove by structural induction that for every x E S, x+x E S. Hint: Use the recursive definition of S to set up your proof by structural induction and use the definition S = {3n : n e Z*} in your proof. + Drag and drop an image or PDF file or click to browse...arrow_forwardQ4// Simplify and then implement the Boolean function F(A,B,C,D) = N (1,2,3,5,6,7,9,11,13,15) using POS karnough map , draw the implementation. %3Darrow_forward
- h(n) = 0 is an admissible heuristic for the 8-puzzle. True or false? Explain your answers in one sentencearrow_forward• Simplify the Boolean functions by means of the tabulation matching method: a. F(w,x,y,z) = Σm(2,3,12,13,14,15) b. P(m,n,o,p,q,r) =Em(6,9,13,18,19,25,27,29,41,45,57,61) c. P(A,B,C,D,E,F,G) =Σm(20,28,38,39,52,60,102,103)arrow_forwardCorrect answer will be upvoted else downvoted. Today we will play a red and white shading game (no, this isn't the Russian Civil War; these are only the shades of the Canadian banner). You are given a n×m matrix of "R", "W", and "." characters. "R" is red, "W" is white and "." is clear. The neighbors of a cell are those that share an edge with it (those that main offer a corner don't count). Your responsibility is to shading the clear cells red or white so every red cell just has white neighbors (and no red ones) and each white cell just has red neighbors (and no white ones). You are not permitted to recolour currently hued cells. Input The primary line contains t (1≤t≤100), the number of experiments. In each experiment, the principal line will contain n (1≤n≤50) and m (1≤m≤50), the tallness and width of the network separately. The following n lines will contain the matrix. Each character of the matrix is either 'R', 'W', or '.'. Output For each experiment,…arrow_forward
- Appendix A 10-Fold Cross Validation for Parameter Selection Cross Validation is the standard method for evaluation in empirical machine learning. It can also be used for parameter selection if we make sure to use the training set only. To select parameter A of algorithm A(X) over an enumerated range d E [A1,..., A] using dataset D, we do the following: 1. Split the data D into 10 disjoint folds. 2. For each value of A e (A1,..., Ar]: (a) For i = 1 to 10 Train A(A) on all folds but ith fold Test on ith fold and record the error on fold i (b) Compute the average performance of A on the 10 folds. 3. Pick the value of A with the best average performance Now, in the above, D only includes the training data and the parameter A is chosen without the knowledge of the test data. We then re-train on the entire train set D using the chosen A and evaluate the result on the test set.arrow_forwardGiven is a strictly increasing function, f(x). Strictly increasing meaning: f(x)< f(x+1). (Refer to the example graph of functions for a visualization.) Now, define an algorithm that finds the smallest positive integer, n, at which the function, f(n), becomes positive. The things left to do is to: Describe the algorithm you came up with and make it O(log n).arrow_forwardDetermine P(A x B) – (A x B) where A = {a} and B = {1, 2}.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education