Search strategies and AI

0 Conversations

Imagine yourself in Romania, without a map, trying to get to Budapest by car. You have a distance table between cities in the country and you have a plane. How do you find a good route to your destination that will get you to the capital before your flight leaves?

Search

It is an accepted fact in Computer Science that most problems eventually come down to a search problem in some abstract or concrete domain. A search problem is usually expressed as a collection of unexplored nodes1, a set of operators that can be applied to a node to get a list of successor nodes and a goal test that can examine a node to see if it is an acceptable solution.

Many strategies for searching a solution space exist but most can be divided into three broad categories:

  1. Uninformed
  2. Informed
  3. Local


Each category contains several different search strategies that differ in their space and time complexity3 and their applicability.

Uninformed search strategies

The category of uninformed search strategies contains two basic types of search; breadth-first search and depth-first search. In a breadth-first search, all the nodes at one level of the tree are expanded first. This leads to a space/time complexity of bd where b is the average branching factor4 and d is the depth of the search from the start node. For all but the smallest searches, this is an unfeasible complexity leading to storage requirements of terabytes and search times of hundreds of years.

Most of the problem with a breadth-first search comes from the space complexity. The space requirements go into the realm of the unfeasible far faster than the time requirements. The space complexity results from the need to hold all the nodes at each level of the search tree in memory at once. Depth-first search eliminates this need by exploring a path fully before moving on to the next. If a path proves fruitless, it backtracks up a level and explores another path.

1A node is a point in the solution space22The solution space is the set of variables through which a solution can be expressed3Space and time complexity refers to how much memory and how much time it would take, in the worst case, to find a solution in a space of n nodes.4The average number of nodes that each node expands into

Bookmark on your Personal Space


Conversations About This Entry

There are no Conversations for this Entry

Entry

A872822

Infinite Improbability Drive

Infinite Improbability Drive

Read a random Edited Entry


Disclaimer

h2g2 is created by h2g2's users, who are members of the public. The views expressed are theirs and unless specifically stated are not those of the Not Panicking Ltd. Unlike Edited Entries, Entries have not been checked by an Editor. If you consider any Entry to be in breach of the site's House Rules, please register a complaint. For any other comments, please visit the Feedback page.

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more