Analysis of Uninformed Search Algorithms in Computer Science

Categories: ScienceTechnology

 Introduction

Uninformed search , also called blind search is a class of general-purpose search algorithms which works in savage power way. Ignorant pursuit calculations don't have extra data about state or search space other than how to navigate the tree, so it is additionally called blind search.

Types of Uninformed Search Algorithms

Uninformed search algorithms include:

  1. Breadth-first Search
  2. Depth-first Search
  3. Depth-limited Search
  4. Uniform cost search

Breadth-first Search (BFS)

Is an algorithm for traversing or searching tree or graph so it is called breadth-first search .

It begins at the tree root (or some subjective node of a graph, now and then alluded to as a 'search key' ), and investigates the entirety of the neighbor hubs at the current profundity preceding proceeding onward to the nodes at the following profundity level.

It uses the contrary system as profundity first inquiry, which rather investigates the node branch beyond what many would consider possible before being compelled to backtrack and grow different nodes.

Advantages:

  • BFS will give an solutions if any arrangement exists.

    Get quality help now
    Dr. Karlyna PhD
    Dr. Karlyna PhD
    checked Verified writer

    Proficient in: Science

    star star star star 4.7 (235)

    “ Amazing writer! I am really satisfied with her work. An excellent price as well. ”

    avatar avatar avatar
    +84 relevant experts are online
    Hire writer

  • On the off chance that there are more than one solutions for a given issue, at that point BFS will give the insignificant arrangement which requires minimal number of steps

Disadvantages:

  • BFS expends huge memory space. Its time unpredictability is more.
  • It has long pathways, when all ways to a goal are on around a similar pursuit profundity[3].

Example:

In the underneath tree structure, we have indicated the navigating of the tree utilizing BFS calculation from the root hub S to objective hub K.

Get to Know The Price Estimate For Your Paper
Topic
Number of pages
Email Invalid email

By clicking “Check Writers’ Offers”, you agree to our terms of service and privacy policy. We’ll occasionally send you promo and account related email

"You must agree to out terms of services and privacy policy"
Write my paper

You won’t be charged yet!

BFS search calculation navigate in layers, so it will follow the way which is appeared by the specked bolt, and the crossed way will be:

S---> A--->B---->C--->D---->G--->H--->E---->F---->I---->K

S---> A--->B---->C--->D---->G--->H--->E---->F---->I---->K

Time Complexity: Time Complexity of BFS algorithm can be acquired by the quantity of hubs navigated in BFS until the shallowest Node. Where the d= profundity of shallowest arrangement and b is a hub at each state.

T (b) = 1+b2+b3+.......+ bd= O (bd)

Space Complexity: Space complexity of BFS algorithm is given by the Memory size of boondocks which is O(bd).

Completeness: BFS is finished, which implies on the off chance that the shallowest objective hub is at some limited profundity, at that point BFS will discover an answer.

Optimality: BFS is perfect if way cost is a non-reducing limit of the significance of the node.

Depth-first Search (DFS)

Depth-first search (DFS) is a algorithm for looking through a graph or tree data structure. The algorithm begins at the root (top) node of a tree and goes as far as possible down a given branch (way), at that point backtracks until it finds an unexplored way, and afterward investigates it. The calculation does this until the whole chart has been investigated. Numerous issues in software engineering can be thought of regarding graphs. For instance, investigating systems, mapping courses, planning, and finding traversing trees are graph issues. To investigate these issues, graph search calculations like profundity first pursuit are helpful.

Advantages:

  • DFS requires less memory as it just needs to store a pile of the nodes on the way from root node to the present node.
  • It requires some investment to reach to the objective node than BFS calculation (in the event that it crosses in the correct way).

Disadvantages:

  • There is the likelihood that numerous states keep re-occurring, and there is no assurance of finding the arrangement.
  • DFS calculation dives for deep down looking and at some point it might go to the infinite loop.

Example:

In the underneath search tree, we have indicated the progression of depth-first search, and it will follow the request as:

Root node - >Left node - > right node.

It will begin looking from root node S, and cross An, at that point B, at that point D and E, subsequent to navigating E, it will backtrack the tree as E has no other replacement and still objective node isn't found. In the wake of backtracking it will cross node C and afterward G, and here it will end as it discovered objective node.

Completeness: DFS search algorithm is finished inside limited state space as it will grow each node inside a limited search tree.

Time Complexity: Time complexity of DFS will be proportionate to the node crossed by the algorithm.

T(n)= 1+ n2+ n3 +.........+ nm=O(nm)

Space Complexity: DFS algorithm needs to store just single way from the root node, thus space complexity of DFS is proportional to the size of the periphery set, which is O(bm).

Optimal: DFS search algorithm is non-Optimal, as it might produce countless advances or significant expense to reach to the goal node.

Depth-limited Search Algorithm (DLS)

A depth-limited search algorithm is like profundity first inquiry with a foreordained cutoff. Depth-limited search can settle the disadvantage of the boundless way in the Depth-first search. In this algorithm, the node at as far as possible will treat as it has no replacement nodes further.

Depth-limited search can be terminated with two Conditions of disappointment:

  1. Standard failure value: It shows that issue doesn't have any arrangement.
  2. Cutoff failure value: It characterizes no answer for the issue inside a given depth limit[6].

Advantages:

  • Depth-limited search is Memory proficient.

Disadvantages:

  • Depth-limited search likewise has an disadvantage of deficiency.
  • It may not be optimal if the prblem has more than one arrangement.

Completeness:

  • Depth-limited search algorithm is complete if the arrangement is over the depth-limit.
  • Time Complexity: Time complexity of depth-limited search algorithm is O(bℓ).
  • Space Complexity: Space complexity of depth-limited search algorithm is O(b×ℓ).
  • Optimal: : DLS can be seen as an special case of DFS, and not optimal even if ℓ>d.

Uniform-cost Search (UCS)

Uniform-cost search is a searching algorithm used for crossing a weighted tree or graph. This algorithm becomes an integral factor when an alternate expense is accessible for each edge. The essential objective of the uniform-cost search is to discover a way to the objective node which has the least combined expense. Uniform-cost search grows nodes as indicated by their way costs structure the root node. It tends to be used to understand any graph/tree where the optimal cost is popular. A uniform-cost search algorithm is executed by the need line. It gives most extreme need to the least combined expense. Uniform cost search is equal to BFS algorithm if the way cost of all edges is the equivalent.

Advantages:

  • Uniform cost search is optimal because at each state the way with the least cost is picked.

Disadvantages:

  • It couldn't care less about the number of steps include in looking and just worried about path cost. Because of which this algorithm might be stuck in an infinite loop.

Example

Completeness:

  • Uniform-cost search is complete, fo example if there is a solution, UCS will find it.
  • Time Complexity: Let C* is Cost of the optimal arrangement, and ε is each progression to draw nearer to the goal node. At that point the number of steps is = C*/ε+1. Here we have taken +1, as we begain from state 0 and end to C*/ε.

Thus, the worst-case time complexity of UCS is O(b1 + [C*/ε])/.

Space Complexity: Space complexity of UCS is O(b1 + [C*/ε]).

Optimal: Uniform-cost search is optimal.

Conclusion

Uninformed search algorithms are fundamental tools in computer science for solving problems represented in graph or tree structures. Each algorithm offers distinct advantages and faces unique challenges, making the choice of algorithm dependent on the specific requirements and constraints of the problem at hand.

Updated: Feb 17, 2024
Cite this page

Analysis of Uninformed Search Algorithms in Computer Science. (2024, Feb 17). Retrieved from https://studymoose.com/document/analysis-of-uninformed-search-algorithms-in-computer-science

Live chat  with support 24/7

👋 Hi! I’m your smart assistant Amy!

Don’t know where to start? Type your requirements and I’ll connect you to an academic expert within 3 minutes.

get help with your assignment