Text Assignment 3 James DeJong Chapter 3: Informed Search Abstract: Chapter 3 discusses informed searches and different ways to asses searches. informed searches are search methods that utilize heuristics to reduce a problem space. Four methods of search are discussed which include, Hill Climbing, steepestascent hill climbing, beam search and bestfirst search. There are four ways to measure the effectiveness of heuristics which include admissibility, monotonic, more informed, and tentative approaches. Discovering optimal searches through the branch and bound search are also introduces and ways to achieve optimality. Problem reduction by employing constraint satisfaction search is considered by using the Donkey Sliding Block Puzzle as well as AND/OR trees. Questions for Discussion 1) What distinguishes heuristic search methods from those discussed in Chapter 2? a)Give three definitions of heuristic search b)Give three ways heuristic information can be added to a search Heuristic search methods are search methods that take into consideration a set of rules of thumb that can be useful in problem solving. Heuristic search methods use these rules of thumb to find the best goal while avoiding any unnecessary effort unlike the search methods discussed in Chapter 2 that were just blind and searched through the entirety of the data. Heuristic search can be defined as the practical strategy for increasing the effectiveness of complex problem solving. A heuristic search should enable one to avoid the examination of dead ends and to use only gathered data. Another definition would be pertaining to the use of general knowledge gained by experience sometimes expressed as “using a ruleofthumb”. Heuristic information can be added to a search to decide which node to expand next, instead of doing expansions in a strictly breadth first or depth first style. it can also be added to decide which successor or successors to generate when generating nodes, rather than blindly generating all possible successors at once or to decide that certain nodes should be discarded from the tree. 3) Explain how steepestascent hill climbing can also provide an optimal solution. Steepestascent hill climbing can provide an optimal solution by choosing the node that is the best next option instead of choosing a node that is just better than the current. Steepestascent finds an optimal solution by going to the next node that provides the next best choice over all the other nodes being looked at. 5) Explain how beam search works. A beam search works by investigating each level of a search tree but only expanding the best X nodes. X is associated with the beam width. Beam search will first expand a level and generate all of the successors from each state. From there it sorts all the nodes of increasing heuristic values and from those picks at most X amount. After this it expands the beam by storing the first pick only. 7) What does it mean for a heuristic to be more informed than another heuristic? A heuristic is said to be “more informed” than another provided that H1(n)<H2(n) for all nodes n. In this case H2 is said to be more informed then H1 because this means that H2 is closer to, or in the very least as close to, H*(n) or the exact cost to the goal of h1(n). 8) What is the idea behind the branch and bound search? Branch and bound search’s main idea is to find a path to the goal and then compare it with other partial paths to make sure that the heuristic value is greater than the current goal path. Branch and bound searches to find the most optimal path by comparing it to other partial paths. Exercises 1) Give three examples of heuristics and explain how they play a significant role in a) your daytoday life, and b) the problemsolving process for some challenge that faces you. Heuristics play a part in our everyday lives whether we think of them consciously or subconsciously. One heuristic that takes part in my own day to day life is where I should park my car depending on how early I am getting to campus. Shineman parking lot is usually full after the first class session so I park over by Sheldon but if I come to campus early enough I can park in Shineman. Another heuristic is adding salt and pepper to any dish, if I don’t like the taste of what I am eating I can always add more salt or pepper if I want to alter the taste or bring out a different flavor in the dish. Finally at my job I am often faced with the problem of deciding which food I should drop in the fryer next, this is dependent on cook time and what is in need at the current moment so both are taken into my decision before I choose. Everyday there are different problems that need to be solved and depending on what the sort of problem that I face is how I come up with a resolution. The first heuristic that needs to be applied is what type of problem am I facing, is it a logical, mathematical, physical, or emotional. After I have determined what type of problem I am facing I need to come up with an approach to the problem. Prior knowledge of the situation is taken into consideration as well as any background information I have on the problem itself. Finally applying the solution and evaluating the results is my last and final heuristic. Evaluating my results and determining whether my solution was satisfactory not only to myself but did it solve the problem at hand. If not then the process should be repeated else I am done with problem solving and can move on. 2) Explain why hill climbing is called “greedy algorithm.” a) Describe some other algorithms that you know are “greedy” b) Explain how steepestascent hill climbing is an improvement over simple hill climbing c) How does the best first search improve over hill climbing The hill climbing searching algorithm is considered to be greedy because it has no sense of history and it does not have the ability to recover from mistakes or false paths. The method will always use one measure to get to the goal. Breadth first search and Depth first search are both examples of other greedy algorithms. The reasons these two search methods are considered to be greedy is because neither of them takes into consideration the ability to make up from mistakes or false paths but rather would just explore it all the way through nor do they keep track of past moves. Steepestascent hill climbing is an improvement over hill climbing because a choice can be made from a number of nodes that might be better than the current state. Instead of just purely choosing a better node though, the steepestascent goes directly for the best node instead from the set of possible moves. Best first search keeps a list of open and closed nodes that can be later explored if needed. The list of open nodes can be used for backtracking which would allow for the search to recover from nodes that do not end up being the goal state. This is an improvement over hill climbing because it is one of the things that makes best first search not greedy. 3) Suggest an admissible heuristic, not mentioned in the text, for solving the 3puzzle a) Employ your heuristic to conduct an A* search to solve the instance of the puzzle presented in this chapter. b) Is your heuristic more or less informed than the two heuristics that are presented? One such heuristic would be to apply the manhattan distance heuristic. This means averaging the tiles out of place with the manhattan distance itself. The manhattan distance is the horizontal and vertical distance between 2 points on a grid. The manhattan distance itself is more informed than the number of tiles that are out of place so by this fact and the fact that the 2 heuristics that were given are the average of the manhattan distance is enough to prove that it is more informed than the number of tiles out of place and less informed than the total manhattan distance. 4) Suggest an admissible heuristic for the Missionaries and Cannibals Problem that is robust enough to avoid unsafe states. a) Is your heuristic informed enough to appreciably reduce the searchbase explored by an A* search? The heuristic that we will apply to the Missionaries and Cannibals Problem need to avoid the unsafe states in the problem. THe unsafe states in the problem are defined as states where the Cannibals on the bank out number the missionaries. The heuristic needs to just check to make sure that the number of missionaries is either greater than or equal to the number of Cannibals on both banks. This heuristic will only check for unsafe states that violate the more Cannibals on the bank problem. There are other unsafe states that can be included into the problem which include not having anyone on the boat itself. This concludes that even though the searchbase will be reduced it will not be reduced significantly. 6) Consider the following variation of the nQueens problem: If some of the squares are obstructed by the placement of pawns on an NxN chessboard can more than nQueens be placed on the partial board that remains? For example, if five pawns are added to a 3x3 chessboard, then four non attacking queens may be placed on the board. Q P Q P P p Q P Q Only for certain board sizes would it be possible to place more than nQueens on the board. In this case, a 5x5 board can fit 6 queens by using 4 pawns but on a 4x4 board no more than 4 queens can be placed on it no matter the amount of pawns used. With this being said if we flood the board with pawns like the example above we will always be able to fit (n/2)^2 queens on the board with the same pattern.
© Copyright 2026 Paperzz