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 3, Problem 4E
Explanation of Solution
Formulation for a planar map:
- The goal state has the numbers in a certain order, which is measured as starting at the upper left corner, then proceeding left to right, and when we reach the end of a row, going down to the leftmost square in the row below.
- For any other configuration besides the goal, whenever a tile with a greater number on it precedes a tile with smaller number, the two tiles are said to be inverted.
Proposition:
- For a given puzzle configuration, let “N” denote the sum of the total number of inversions and the row number of the empty square.
- “Nmod2” is invariant under any legal move.
- After a legal move an odd “N” remains odd whereas an even “N” remains even.
- The goal state with no inversions and empty square in the first row, has “N=1”, and can only be reached from starting states with even “N”...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Correct answer will be upvoted else Multiple Downvoted. Computer science.
You need to change this grouping so all components in it are equivalent (I. e. it contains a few events of a similar component).
To accomplish this, you pick some integer x that happens to some extent once in a, and afterward play out the accompanying activity quite a few times (perhaps zero): pick some portion [l,r] of the arrangement and eliminate it. Yet, there is one special case: you are not permitted to pick a fragment that contains x. All the more officially, you pick some adjoining aftereffect [al,al+1,… ,ar] to such an extent that ai≠x if l≤i≤r, and eliminate it. After expulsion, the numbering of components to one side of the eliminated portion changes: the component that was the (r+1)- th is presently l-th, the component that was (r+2)- th is currently (l+1)- th, etc (I. e. the leftover arrangement simply falls).
Note that you can not change x after you picked it.
For instance, assume n=6,…
In chess, a walk for a particular piece is a sequence of legal moves for that piece, starting from a square of your choice, that visits every square of the board. A tour is a walk that visits every square only once. (See Figure 5.13.)
5.13 Prove by induction that there exists a knight’s walk of an n-by-n chessboard for any n ≥ 4. (It turns out that knight’s tours exist for all even n ≥ 6, but you don’t need to prove this fact.)
CT ser.
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
Similar questions
- Pick one million sets of 12 uniform random numbers between 0 and 1. Sum up the 12 numbers in each set. Make a histogram with these one million sums, picking some reasonable binning. You will find that the mean is (obviously?) 12 times 0.5 = 6. Perhaps more surprising, you will find that the distribution of these sums looks very much Gaussian (a "Bell Curve"). This is an example of the "Central Limit Theorem", which says that the distribution of the sum of many random variables approaches the Gaussian distribution even when the individual variables are not gaussianly distributed. mean Superimpose on the histogram an appropriately normalized Gaussian distribution of 6 and standard deviation o = 1. (Look at the solutions from the week 5 discussion session for some help, if you need it). You will find that this Gaussian works pretty well. Not for credit but for thinking: why o = 1 in this case? (An explanation will come once the solutions are posted).arrow_forwardCorrect answer will be upvoted else Multiple Downvoted. Don't submit random answer. Computer science. Artem is building another robot. He has a network a comprising of n lines and m sections. The cell situated on the I-th line from the top and the j-th segment from the left has a worth ai,j written in it. In the event that two nearby cells contain a similar worth, the robot will break. A lattice is called acceptable if no two adjoining cells contain a similar worth, where two cells are called nearby on the off chance that they share a side. Artem needs to increase the qualities in certain cells by one to make a decent. All the more officially, find a decent network b that fulfills the accompanying condition — For all substantial (i,j), either bi,j=ai,j or bi,j=ai,j+1. For the imperatives of this issue, it tends to be shown that such a framework b consistently exists. In case there are a few such tables, you can output any of them. Kindly note that you don't need to limit…arrow_forwardGiven a deck of 52 playing cards, we place all cards in random order face up next to each other. Then we put a chip on each card that has at least one neighbour with the same face value (e.g., on that has another queen next to it), we put a chip. Finally, we collect all chips that were each queen placed on the cards. For example, for the sequence of cards A♡, 54, A4, 10O, 10♡, 104, 94, 30, 3♡, Q4, 34 we receive 5 chips: One chip gets placed on each of the cards 100, 10♡, 104, 30, 3♡. (a) Let p5 be the probability that we receive a chip for the 5th card (i.e., the face value of the 5th card matches the face value of one of its two neighbours). Determine p5 (rounded to 2 decimal places). (b) Determine the expected number of chips we receive in total (rounded to 2 decimal places). (c) For the purpose of this question, you can assume that the expectation of part (b) is 6 or smaller. Assume that each chip is worth v dollars. Further, assume that as a result of this game we receive at least…arrow_forward
- Correct answer only else downvoted. There are some utility poles on the plane, which is addressed by a lattice an of size (n+1)×(m+1). There is a utility pole at (x,y) if ax,y=1. For each point (x,y), characterize S(x,y) as the square of the Euclidean distance between the closest post and (x,y). Officially, the square of the Euclidean distance between two focuses (x1,y1) and (x2,y2) is (x2−x1)2+(y2−y1)2. To streamline the structure plan, the task director asks you the amount of all S(x,y) for each 0≤x≤n and 0≤y≤m. Help him by discovering the worth of ∑nx=0∑my=0S(x,y). Input :The main line contains two integers n and m (0≤n,m<2000) — the size of the framework. Then, at that point (n+1) lines follow, each containing (m+1) integers ai,j (0≤ai,j≤1) — the lattice signifying the places of utility poles in the plane. There is no less than one utility pole in the given lattice. Output :Output an integer meaning the worth of ∑nx=0∑my=0S(x,y).arrow_forwardParticle filters are a good way of keeping track of a set of hypotheses when performing SLAM. With regards to the FastSLAM algorithm discussed in the video, select all the true statements in the following set. Select one or more: ✔a. Each particle must keep a hypothesis of the noise in the motion model * ✓b. Each particle must keep a hypothesis of the robot's observations* ✓c. Each particle must keep a hypothesis of the position of the robot d. Particles do not keep a hypothesis of the variance in landmark positions e. Particles do not keep a hypothesis of the robot's sensor model ✔f. Each particle must keep a hypothesis of the positions of landmarks g. Particles do not keep a hypothesis of the variance in the robot's positon ✔h. Each particle must keep a hypothesis of the path followed by the robot* Your answer is incorrect. The correct answers are: Each particle must keep a hypothesis of the position of the robot, Each particle must keep a hypothesis of the positions of landmarks,…arrow_forwardIf five integers are chosen from the set {1, 2, 3, 4, 5, 6, 7, 8}, must there be at least two integers with the property that the larger minus the smaller is 2? Write an answer that would convince a good but skeptical fellow student who has learned the statement of the pigeonhole principle but not seen an application like this one. Describe the pigeons, the pigeonholes, and how the pigeons get to the pigeonholes.arrow_forward
- There are m towns in a straight line, with a road joining each pair of consecutive towns. Legends say that an ordinary person in one of these towns will become a hero by completing a sequence of n quests. The first quest will be completed in their home town, but after each quest they may complete their next quest either in the same town or after moving to a neighbouring town.For example, if n = 5 and m = 4, a resident of town 2 may become a hero as follows:• begin in town 2 for quest 1,• then move to town 3 for quest 2,• stay in town 3 for quest 3,• return to town 2 for quest 4, and• move to town 1 for quest 5.Design an algorithm which runs in O(nm) time and finds the total number of waysto complete n quests.arrow_forwardImagine there are N teams competing in a tournament, and that each team plays each of the other teams once. If a tournament were to take place, it should be demonstrated (using an example) that every team would lose to at least one other team in the tournament.arrow_forwardCorrect answer will be upvoted else downvoted. Computer science. You are given three positive (more prominent than nothing) integers c, d and x. You need to track down the number of sets of positive integers (a,b) with the end goal that balance c⋅lcm(a,b)−d⋅gcd(a,b)=x holds. Where lcm(a,b) is the most un-normal various of an and b and gcd(a,b) is the best normal divisor of an and b. Input The primary line contains one integer t (1≤t≤104) — the number of experiments. Each experiment comprises of one line containing three integer c, d and x (1≤c,d,x≤107). Output For each experiment, print one integer — the number of sets (a,b) to such an extent that the above uniformity holds.arrow_forward
- Generate ten random numbers (s1-s10) using the linear congruently generator using the seed (s0) as 5, and with the three parameters a, b, and m as 14, 15, and 21, respectively. (Note: si+1 = (a*si + b) mod m). SHOW WORK.arrow_forwardGive a loop invariant that accurately relates the present values of, r, s, x, and y.Look at the GCD loop property for a hint. This invariant is also true when the calculation is between the first and second step of each iteration, in addition to being true each time the computation is at the top of the loop. Prove that your method creates and keeps the loop invariant as claimed.arrow_forwardThe rook is a chess piece that may move any number of spaces either horizontally or vertically. Consider the “rooks problem” where we try to place 8 rooks on an 8x8 chess board in such a way that no pair attacks each other. a. How many different solutions are there to this?b. Suppose we place the rooks on the board one by one, and we care about the order in which we put them on the board. We still cannot place them in ways that attack each other. How many different full sequences of placing the rooks (ending in one of the solutions from a) are there?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