Skip to main content

WHAT IS GUIDED AND UNGUIDED SEARCH IN AI | BLOG |

DATE :- 10/02/2020 


A typical chess playing program might need to evaluate a million states during a serious chess game.

We will look at two types of search, guided and unguided. Unguided search is done without the help of heuristics while guided search takes the help of heuristic in choosing seemingly better path than the rest.

Guided and unguided search

Let us go back to the previous chapter and look at the 8-5-3 gallon milk jug problem. Suppose we have no clue about how to achieve the solution, we may start randomly and try applying any rule which is applicable to a given state space. We may have a sequence which is different than what led to the solution in the previous chapter but if given enough amount of tries it is quite likely to reach to a solution barring an important point; the solution path should not contain any cycles.

For example consider following sequences

8-0-0, 3-5-0, 8-0-0, ...

8-0-0, 5-0-3, 0-5-3, 3-5-0, 8-0-0, ..

8-0-0, 5-0-3, 5-3-0, 2-3-3, 0-5-3, 5-0-3...

The process may continue forever but we will not find a final state as state sequences are repeated.
So we may form the rule for a search that if the same state which is generated earlier should not be
generated again. Sometimes this requirement is known as being systematic.

Even if we follow that rule you may clearly see that some futile states may be traveled before embarking on the right path. Even when we are dealing with such a simple problem we may end up traversing a very long path before getting a solution.

Such search, which operates blindly, applying random moves to try for a final state, is known as
unguided or blind search.

 On the contrary, it is usually possible to have some domain knowledge to learn that some typical types of moves are better than others. Trying them before others usually lead to a solution faster. Such domain knowledge is called heuristics and search which operates using heuristics is called guided search.

 Though they are less efficient than guided search methods, they are useful when there is not enough domain knowledge and when some other guided search is applied in conjunction with them.

Generate and test


This method is quite known to us. For example, when my father leaving for job and cannot find my car keys on the place he usually keep them, he try looking for them in my table drawer, in the showcase, on my study table and so on, may be finally looking at the place where her daughter is playing. What he is doing? he is generating states one after another, checking if it is a solution state, if so quits or otherwise try looking at some other option.

This simple method is useless if the state space is too large. For example, if I have to search my entire
house for the key, it is impossible in real time. That is why to generate and test is applied when the state space is either small enough or some other technique is used to reduce the number of states to a
manageable level.

Glossaries


Search                                  search is a common component in most AI solutions. A Search is a way                                                 to find a solution using the state space.

Unguided search                  Search without using any heuristics or not using any domain knowledge.
                                             This is also known as blind search.

Guided search                      Search using some heuristic. This type of search takes the advantage of
                                             domain knowledge to determine which type of states are better compared
                                             to others in choosing the next state

State sequence                     sequence of states which results in a solution

Generate and Test                an unguided search method where random selection of states are chosen                                                 and  tested for a solution

Dendral                                Expert system for geological information designed based on generate                                                     and  test and constraint satisfaction methods

Breadth First Search(BFS)   the search method where each level of the tree is explored first and the                                                  next level is explored is explored after that till the final level.                                                                  Exploration a method of exploring the tree level by level in BFS

Depth First Search               The search method where each branch of tree is explored one after                                                          another from left to right till the rightmost branch

Depth bound DFS               This method is a depth first search considering the length of the DFS                                                       search for a typical value. This is also known as Depth-Limited Search

Optimum path                     a path to solution which is nearest from the root node

Finite Search space             If the state space contains a finite number of nodes it is called finite                                                        search space. For a finite search space, both DFS and BFS is guaranteed                                                to give an optimum solution.

Comments

Popular posts from this blog

Rinku privacy policy

Privacy Policy krg built the Rinku app as a Free app. This SERVICE is provided by krg at no cost and is intended for use as is. This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service. If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy. The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which are accessible at Rinku unless otherwise defined in this Privacy Policy. Information Collection and Use For a better experience, while using our Service, I may require you to provide us with certain personally identifiable information. The information that I request will be retained on your device and is not...

Idle Solar Defence Policy

  Privacy Policy This privacy policy applies to the Idle Solar Defence app (hereby referred to as "Application") for mobile devices that was created by krg (hereby referred to as "Service Provider") as a Free service. This service is intended for use "AS IS". Information Collection and Use The Application collects information when you download and use it. This information may include information such as Your device's Internet Protocol address (e.g. IP address) The pages of the Application that you visit, the time and date of your visit, the time spent on those pages The time spent on the Application The operating system you use on your mobile device The Application does not gather precise information about the location of your mobile device. The Service Provider may use the information you provided to contact you from time to time to provide you with important information, required notices and marketing promotions. For a better experience, while using ...

MISSIONARY CANNIBAL PROBLEM SOLUTION IN AI | BLOG |

DATE :- 09/02/2020 Both problems we have seen in the previous module were comparatively simple as there was the little prerequisite for applying rules. To emphasize that important part, let us take two more problems which rely heavily on the prerequisites for applying a rule. A missionary cannibal problem Let us take our next example to reiterate our understanding of state space, the start state, the end state, the rules and using those rules to solve the problem, especially the preconditions under which a rule is to be applied.  The problem is called a missionary and cannibal problem. Three missionaries and three cannibals found themselves on one side of a river. All of them have to move to the other side. The only boat available for communication can carry maximum two of them at a time. Minimum one of the travelers must come back to get the boat on the side where others are waiting. Another condition is, at no point in time, the missionaries should be less than the nu...