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
CT ser.
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).
Given 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…
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
- Particle 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_forwardGenerate 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_forward
- The DFA M = ({qo,, 95}, E, 6, 90, 91, 95}) with = {0, 1} is given by this table for the transition function 8. 80 90 * 91 92 90 95 92 92 94 91 93 93 94 94 94 91 *95 95 94 (a) Draw a transition diagram of M. Cross out any state(s) that we don't need. Now partition the set of states into two parts such that it is immediately clear that no state in the first set is equivalent to a state in the second set. (b) Find a minimum DFA equivalent to M.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_forwardThis problem is taken from the delightful book "Problems for Mathematicians, Young and Old" by Paul R. Halmos. Suppose that 931 tennis players want to play an elimination tournament. That means: they pair up, at random, for each round; if the number of players before the round begins is odd, one of them, chosen at random, sits out that round. The winners of each round, and the odd one who sat it out (if there was an odd one), play in the next round, till, finally, there is only one winner, the champion. What is the total number of matches to be played altogether, in all the rounds of the tournament? Your answer: Hint: This is much simpler than you think. When you see the answer you will say "of course".arrow_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_forwardSuppose a biking environment consists of n ≥ 3 landmarks,which are linked by bike route in a cyclical manner. That is, thereis a bike route between landmark 1 and 2, between landmark 2 and 3,and so on until we link landmark n back to landmark 1. In the centerof these is a mountain which has a bike route to every single landmark.Besides these, there are no other bike routes in the biking environment.You can think of the landmarks and the single mountain as nodes, andthe bike routes as edges, which altogether form a graph G. A path is asequence of bike routes.What is the number of paths of length 2 in the graph in termsof n?What is the number of cycles of length 3 in the graph in termsof n?What is the number of cycles in the graph in terms of n?arrow_forward4. Consider a random walk on the infinite line. At each step, the position of the particle is one of the integer points. At the next step, it moves to one of the two neighboring points equiprobably. Show that the expected distance of the particle from the origin after n steps is O(n/2).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: 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 matchingarrow_forwardDesign and explain a generic m-round winner tournament, Round-Winner-Tournament(P,m), for players P, in which the participants are matched randomly in each round 0, 1,...,m 1, and the winners advance to the next round. Following round m 1, the champion is chosen at random from among the remaining participants. This tournament structure, interestingly, contains the following special cases: m = 0 is a random selection tournament, m = 1 is a random pairing tournament, and m = lg |P| is a single elimination seeding tournament.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