Question

In: Computer Science

The sliding-tile puzzle consists of three black tiles, three white tiles, and an empty space in...

  1. The sliding-tile puzzle consists of three black tiles, three white tiles, and an empty space in the configuration shown in this table.
B B B W W W


The puzzle has two legal moves with associated costs:

  1. A tile may move into an adjacent empty location. This has a cost of 1.
  2. A tile can hop over one or two other tiles into the empty position. This has a cost equal to the number of tiles jumped over.

Question

The goal is to have all the white tiles to the left of all the black tiles. The position of the blank is not important.

A Estimate/calculate a branching factor of the space and justify your estimation

B. How many total states need to be searched for a path of 12?

C. Propose two heuristics for solving this problem and analyze them with respect to admissibility, monotonicity, and informedness.

Solutions

Expert Solution

Ans A):-

Ans B):-

Ans C):- h(n) = # of white tiles on the wrong side of each black tile

Breadth-first search is admissible, monotonic and very uninformed. Counting tiles out of the goal position is a simple useful heuristic that is admissible. A form of this heuristic would be to count all white tiles on the wrong side of each black tile.

For example for the following configuration, there are 3 Ws on the right side of 1st B, and 2 Ws on the right side of both the 2nd and 3rd Bs. Therefore h(n) = 3+2+2 = 7

B_WBBWW

Counting tiles out of place is not monotonic, but is more informed than breadth-first search. An easy way to prove that a heuristic is non-monotonic is to watch its value change as it goes along a search path.


Related Solutions

There is a famous puzzle called the Towers of Hanoi that consists of three pegs and...
There is a famous puzzle called the Towers of Hanoi that consists of three pegs and n circular disks, all of different sizes. The disks start on the leftmost peg, with the largest disk on the bottom, the second largest on top of it, and so on, up to the smallest disk on top. The goal is to move the disks so that they are stacked in this same order on the rightmost peg. However, you are allowed to move...
Three white and three black balls are distributed in two urns in such a way that...
Three white and three black balls are distributed in two urns in such a way that each contains three balls. We say that the system is in state i,i = 0, 1, 2, 3, if the first urn contains i white balls. At each step, we draw one ball from each ufn and place the ball drawn from the first urn into the second, and conversely with the ball from the second urn. Let Xq denote the state of the...
Three white and three black balls are distributed in two urns in such a way that...
Three white and three black balls are distributed in two urns in such a way that each contains three balls. We will say that the system is in state i, i = 0, 1, 2, 3, if the first urn contains i, white balls. At each step, we draw one ball from each urn – the ball drawn from the first urn is placed into the second, and the ball from the second urn is placed into the first. Let...
Urn A contains four white balls and three black balls. Urn B contains six white balls...
Urn A contains four white balls and three black balls. Urn B contains six white balls and seven black balls. A ball is drawn from Urn A and then transferred to Urn B. A ball is then drawn from Urn B. What is the probability that the transferred ball was white given that the second ball drawn was white? (Round your answer to three decimal places.) I can't seem to figure this out! Please help! Thank you!
Three fair dice (black, white and red) are tossed simultaneously and the value recorded as an...
Three fair dice (black, white and red) are tossed simultaneously and the value recorded as an ordered triple y = (yb, yw, yr), which is a point in S. Let A1, A2, A3 be the events A1 = {(yb, yw, yr) : yb = yw} A2 = {(yb, yw, yr) : yb = yr} A3 = {(yb, yw, yr) : yw = yr} (i) What is the sample space S for this experiment? How many points or elementary events does...
Three fair dice (black, white and red) are tossed simultaneously and the value recorded as an...
Three fair dice (black, white and red) are tossed simultaneously and the value recorded as an ordered triple y = (yb, yw, yr), which is a point in S. Let A1, A2, A3 be the events A1 = {(yb, yw, yr) : yb = yw} A2 = {(yb, yw, yr) : yb = yr} A3 = {(yb, yw, yr) : yw = yr} For the set-up described in the preceding question, let 1 ≤ t ≤ 18 be a positive...
A box contains three white balls, two black balls, and one red ball. Three balls are...
A box contains three white balls, two black balls, and one red ball. Three balls are drawn at random without replacement. Let Y1 be the number of white balls drawn, and Y2 the number of black balls drawn. Find the distribution of Z = Y1 × Y2
A space station consists of three modules, connected to form an equilateral triangle of side length...
A space station consists of three modules, connected to form an equilateral triangle of side length 82.0 m. Suppose 100 people, with an average mass of 75.0 kg each, live in each capsule and the mass of the modules is negligible compared to the mass of the people. If everyone went to the top left module for a parade what would be the change in position of (a) the center of mass of the station and (b) top left module,...
Twelve marbles are placed in a hat, three are black, two blue, one green, four white...
Twelve marbles are placed in a hat, three are black, two blue, one green, four white and two red. Two marbles are drawn out at random, without replacement. Find the probability that (a). Both marbles are black. (b).one of them is red, and the other is green.    (c). Neither marble is white.
Lake McMurtry Monsters (LMM) have three different coat color phenotypes (black, orange, and white). Their coat...
Lake McMurtry Monsters (LMM) have three different coat color phenotypes (black, orange, and white). Their coat color is an example of epistasis. The B gene codes for color type while the W gene codes for the presence or absence of color. ‘B’ is completely dominant to ‘b’ and ‘W’ is completely dominant to ‘w’. For a LMM to be black or orange, they must have the ‘W’ allele. Black is dominant to orange. What are the possible genotypes for the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT