All Exams Test series for 1 year @ ₹349 only
Question

Match List-I with List-II:

List-I

List-II

(a) Greedy best-first

(i) Minimal cost (p)+h(p)

(b) Lowest cost-first

(ii) Minimal h(p)

(c) A* algorithm

(iii) Minimal cost (p)

Choose the correct option from those given below:

The correct answer is

(a)-(ii); (b)-(iii); (c)-(i)

Understanding AI Search Algorithms and Evaluation Functions

Different search algorithms used in Artificial Intelligence employ various strategies to explore the state space and find a solution path. These strategies are often guided by an evaluation function that determines the priority of expanding a node.

Let's analyze each algorithm and its corresponding evaluation function:

Greedy Best-First Search Evaluation

Greedy best-first search is an informed search algorithm. It expands the node that is estimated to be closest to the goal. This estimation is provided by a heuristic function, denoted as \(h(p)\), which estimates the cost from the current node \(p\) to the nearest goal state. The algorithm's priority is based solely on this heuristic value.

  • Algorithm: Greedy best-first search
  • Evaluation Function: Minimal \(h(p)\)

Lowest Cost-First Search Evaluation (Uniform Cost Search)

Lowest cost-first search, also known as Uniform Cost Search, is an uninformed search algorithm. It expands the node with the lowest path cost from the start node. The path cost to reach a node \(p\) from the start node is denoted as \(g(p)\). This algorithm prioritizes nodes based on the accumulated cost to reach them.

  • Algorithm: Lowest cost-first search
  • Evaluation Function: Minimal \(g(p)\)

A* Algorithm Evaluation

The A* algorithm is an informed search algorithm that combines aspects of both uniform cost search and greedy best-first search. It evaluates nodes based on the sum of the cost to reach the node from the start node (\(g(p)\)) and the estimated cost from the node to the goal state (\(h(p)\)). The evaluation function for A* is \(f(p) = g(p) + h(p)\), and the algorithm expands the node with the lowest \(f(p)\) value.

  • Algorithm: A* algorithm
  • Evaluation Function: Minimal \(g(p) + h(p)\)

Matching List-I with List-II

Based on the evaluation functions discussed above, we can match the algorithms in List-I with the criteria in List-II:

  • (a) Greedy best-first: Evaluates based on minimal \(h(p)\). This matches (ii) Minimal \(h(p)\).
  • (b) Lowest cost-first: Evaluates based on minimal \(g(p)\). This matches (iii) Minimal cost \(g(p)\).
  • (c) A* algorithm: Evaluates based on minimal \(g(p) + h(p)\). This matches (i) Minimal cost \(g(p)\) + \(h(p)\).

Therefore, the correct matching is (a)-(ii), (b)-(iii), (c)-(i).

List-I (Algorithm) List-II (Evaluation Criteria) Corresponding Formula
(a) Greedy best-first (ii) Minimal \(h(p)\) \(\min(h(p))\)
(b) Lowest cost-first (iii) Minimal cost \(g(p)\) \(\min(g(p))\)
(c) A* algorithm (i) Minimal cost \(g(p)\) + \(h(p)\) \(\min(g(p) + h(p))\)

The final correct option is the one that provides the mapping (a)-(ii); (b)-(iii); (c)-(i).

Revision Table: AI Search Algorithm Evaluation

Algorithm Name Type Evaluation Function Focus
Greedy Best-First Search Informed Heuristic cost to goal \(h(p)\) Estimated distance to goal
Lowest Cost-First Search (Uniform Cost Search) Uninformed Path cost from start \(g(p)\) Actual cost incurred so far
A* Algorithm Informed Sum of path cost and heuristic \(f(p) = g(p) + h(p)\) Total estimated cost (past + future)

Additional Information on Search Algorithms

Understanding the evaluation function is key to understanding how these search algorithms behave:

  • Completeness: An algorithm is complete if it guarantees finding a solution whenever one exists. Uniform Cost Search is complete (for non-negative step costs). Greedy Best-First is not complete in infinite state spaces or with zero step costs. A* is complete if the heuristic is admissible and the branching factor is finite.
  • Optimality: An algorithm is optimal if it guarantees finding the lowest-cost solution. Uniform Cost Search is optimal (for non-negative step costs). Greedy Best-First is not optimal. A* is optimal if the heuristic is admissible.
  • Admissible Heuristic: A heuristic \(h(p)\) is admissible if it never overestimates the actual cost to reach the goal from node \(p\). \(h(p) \le \text{actual_cost}(p, \text{goal})\) for all \(p\). Admissibility is crucial for the optimality of A*.
  • Consistent Heuristic: A heuristic \(h(p)\) is consistent if for every node \(p\) and every successor \(p'\) of \(p\) generated by action \(a\), \(h(p) \le \text{cost}(p, a, p') + h(p')\). Consistency implies admissibility and is required for A* to work correctly on graphs (preventing revisiting nodes with higher costs).

These properties highlight why the evaluation function choice is critical for the performance, completeness, and optimality of a search algorithm.

Was this answer helpful?

Important Questions from Greedy Algorithms - Teaching

  1. A text is made up of the characters A, B, C, D, E each occurring with the probability 0.08, 0.40, 0.25, 0.15 and 0.12 respectively. The optimal coding technique will have the average length of:

  2. Which among the following statement(s) is(are) FALSE?

    A. Greedy best‐first search is not optimal but is often efficient.

    B. A* is complete and optimal provided h(n) is admissible or consistent.

    C. Recursive best‐first search is efficient in terms of time complexity but poor in terms of space complexity.

    D. h(n) = 0 is an admissible heuristic for the 8‐puzzle.

  3. Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding sizes 150 KB, 225 KB, 75 KB, 60 KB, 275 KB and 65 KB respectively. The files are to be stored on a sequential device in such a way that optimizes access time. In what order should the files be stored?

  4. A text is made up of the characters a, b, c, d, e each occurring with the probability 0.11, 0.40, 0.16, 0.09 and 0.24 respectively. The optimal Huffman coding technique will have the average length of :

  5. If b is the branching factor and m is the maximum depth of the search tree, what is the space complexity of greedy search ?  

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App