3 Problem Solving By Searching

Artificial Intelligence Ā· Unit 3 Ā· 9 hrs

Problem Solving by Searching

Exam-focused notes for Problem Solving by Searching (Artificial Intelligence, CSC266): what the TU syllabus asks and how it has actually been tested, with 17 solved past questions from this unit.

Problem Solving by Searching in short

This unit treats problem solving in AI as search: how a problem is turned into a state space, how that space is explored blindly or with heuristic guidance, how search works against an adversary in games, and how problems stated as constraints rather than paths are solved.

Problem Solving by Searching: notes

Definition

Problem solving in AI is a systematic search through a space of possible actions in order to reach a predefined goal or solution. It proceeds through four general steps. Goal formulation decides what counts as a satisfactory outcome, that is, the state or states the agent is trying to reach. Problem formulation decides which actions and states are worth considering, given that goal. The search step works out a sequence of actions, choosing the best one available. Execution then carries that sequence out in the world.

A problem can be pictured as a state space, a directed graph in which every node is a state the world could be in and every arc is an operator, an action that transforms one state into a successor state. A solution to the problem is a path through this graph from the initial state to a goal state, formally the tuple $(S, s, O, G)$, where $S$ is the set of all states, $s$ is the start state, $O$ is the set of operators that move between states, and $G$ is the set of acceptable goal states.

Problem formulation

A problem is defined formally by four components. The initial state is the state the agent starts in. The state description, also called the successor function, specifies, for any state, the set of actions available and the state each one leads to. The goal test determines whether a given state is a goal state. The path cost assigns a numeric cost to a path, normally the sum of the costs of the individual actions along it.

A single running example is used through the rest of this unit. It is a small tree with a start state $S$ and a goal state $G$:

FromTo (children)
SA, B, C
AD, E
BF, G
C(none)
D, E, F, G(none)

Here $G$ is reachable only through $B$, at depth 2 from $S$.

Well-defined problems

A problem that is missing one or more of the components above is called ill-defined. A well-defined problem is fully specified by five components: the initial state; the successor function (possible actions); the state space and path, that is, every state reachable from the initial state by some sequence of actions, and the specific sequence followed to reach a given state; the path cost; and the goal test. Well-defined problems are commonly grouped into toy problems, simplified enough to compare the performance of different search techniques (the vacuum-world problem is a standard example), and real-world problems, where the path cost must reflect genuine time, money or resource constraints (route finding is a standard example).

Solving Problems by Searching

A useful way to visualise a search problem is a map in which the nodes are locations and the links are direct routes between them, each carrying a cost such as distance; the task is to find a path from a start location to a goal location. Search of this kind underlies a large number of real-world applications, including VLSI layout, web search, path planning and robot navigation.

Search Strategies

There are two broad families of search strategy. Uninformed (blind) search methods consider potential solution paths in an order that uses no information about how close a state is to the goal, for example breadth-first, depth-first, depth-limited and bidirectional search. Informed (heuristic) search methods use domain-specific information to judge how promising a state is, allowing the space to be searched far more efficiently, for example greedy best-first search and A* search.

Performance evaluation of search techniques

Search strategies are compared along four dimensions. Completeness asks whether the strategy is guaranteed to find a solution when one exists. Time complexity asks how many nodes must be expanded in the worst case. Space complexity asks how many nodes must be held in memory at once. Optimality asks whether the solution found is guaranteed to have the lowest possible path cost. These are usually expressed in terms of the branching factor $b$ (the maximum number of successors of any node), the depth of the shallowest goal $d$, and the maximum depth of the search tree $m$.

What this unit covers

  • Definition
  • Problem as a state space search
  • Problem formulation
  • Well-defined problems
  • Solving Problems by Searching
  • Search Strategies
  • Performance evaluation of search techniques
  • Uninformed Search: Depth First Search, Breadth First Search, Depth Limited Search, Iterative Deepening Search, Bidirectional Search
  • Informed Search: Greedy Best first search, A* search, Hill Climbing, Simulated Annealing
  • Game playing
  • Adversarial search techniques
  • Mini-max Search
  • Alpha-Beta Pruning
  • Constraint Satisfaction Problems

Informed Search

2081 Ā· 10 marks

How is informed search different from uninformed search? Create a state space with appropriate heuristics, now illustrate how hill climbing search expands nodes to reach a goal. Modify the state space heuristics and demonstrate when the hill climbing will not be complete.[10]

Show solved answer

Informed vs Uninformed Search, Hill Climbing, and Incompleteness

Given

This is a conceptual and design question. There are no fixed numeric inputs provided; the student must construct a state space with heuristics. The state space used below is:

Working state space (Part 3):

Nodeh(n)Neighbors
A10B, C
B7D, E
C8F
D4G
E5-
F6-
G0GOAL

Modified state space (Part 4):

Nodeh(n)Neighbors
A10B, C
B7D, E
E3X
D5G
X4(dead end)
G0GOAL

No data is missing since the values are self-created and internally consistent.


Solution

FeatureUninformed (Blind) SearchInformed (Heuristic) Search
KnowledgeUses only the problem definition; no extra infoUses domain-specific heuristic $h(n)$
GuidanceExplores blindly in fixed orderGuided toward goal by $h(n)$
EfficiencyExplores more nodes; usually slowerExplores fewer nodes; usually faster
Optimality/CompletenessSome (e.g., BFS) are complete/optimalDepends on heuristic (A* optimal if admissible)
ExamplesBFS, DFS, DLS, IDDFS, Uniform Cost, BidirectionalGreedy Best-First, A*, Hill Climbing, AO*

The heuristic function is: $$h(n) = \text{estimated cost of the cheapest path from node } n \text{ to a goal}$$

Informed search leverages $h(n)$ to prioritize promising nodes, which uninformed search cannot do.


Part 2: Hill Climbing Concept

Hill climbing is a local, informed search that:

  • keeps only the current state (no frontier, no memory),
  • always moves to the best neighbor (here, lowest $h$ toward goal),
  • halts when no neighbor improves on the current node.

Part 3: State Space Where Hill Climbing Succeeds

        A (10)
       /   \
    B(7)    C(8)
    /  \      \
  D(4) E(5)   F(6)
   |
  G(0)  <-- GOAL

Execution (choose neighbor with lowest $h$):

StepCurrentNeighbors ($h$)Best (lower than current?)Move
1A (10)B(7), C(8)B(7) < 10 āœ“B
2B (7)D(4), E(5)D(4) < 7 āœ“D
3D (4)G(0)G(0) < 4 āœ“G
4G (0)-GOAL reachedSTOP

Solution path: $A \to B \to D \to G$

Hill climbing succeeds because the heuristic decreases monotonically along the correct path.


Part 4: Modified State Space Where Hill Climbing Fails

We change $D$'s value to $5$ and add a misleading branch $E \to X$ with $h(E)=3$, $h(X)=4$, so the greedy choice leads into a local minimum.

        A (10)
       /   \
    B(7)    C(8)
    /  \      \
  D(5) E(3)   F(6)
   |     \
  G(0)   X(4)  <-- dead-end trap

Execution:

StepCurrentNeighbors ($h$)BestMove
1A (10)B(7), C(8)B(7) < 10B
2B (7)D(5), E(3)E(3) < 5, so E preferred over DE
3E (3)X(4)X(4) > 3 → no improvementSTOP (stuck)

Path followed: $A \to B \to E$ → stuck at $E$ (local minimum).

The actual goal lies on $A \to B \to D \to G$, but at step 2 the greedy heuristic picked $E$ (h=3) over $D$ (h=5). At $E$, the only neighbor $X$ (h=4) is worse, so hill climbing terminates without reaching $G$.

Why incomplete: Hill climbing has no backtracking and no memory, so once it commits to a locally attractive but misleading node it cannot recover. This illustrates the classic failure modes:

  1. Local minimum/maximum (shown above),
  2. Plateau (all neighbors equal),
  3. Ridge (progress only via non-improving sideways moves).

Hence hill climbing is not complete: it can fail to find an existing goal.


Conclusion: Informed search uses $h(n)$ to guide exploration (unlike blind uninformed search). Hill climbing exploits $h(n)$ greedily and works when the heuristic slopes toward the goal, but because it lacks backtracking it becomes incomplete at local minima, plateaus, and ridges.

Open this answer on its own page →

2080 Ā· 10 marks

State Space Graph and Greedy Best-First Search Analysis

Initial State: $$\begin{array}{cc}\hline 1 & 2 \\hline \ & \ \\hline \end{array}$$ Goal State: $$\begin{array}{cc}\hline \ & 1 \\hline 2 & \ \\hline \end{array}$$ - Grid: 2Ɨ2, with positions labelled TL (top-left), TR (top-right), BL (bottom-left), BR (bottom-right). - Tiles present: 1, 2. Re...

Open this answer on its own page →

2079 Ā· 10 marks

Define admissible heuristic with an example. Explain the working mechanism and limitations of hill climbing search.[10]

Show solved answer

Admissible Heuristic and Hill Climbing Search


Part 1: Admissible Heuristic (3 marks)

Definition

An admissible heuristic is a heuristic function h(n) that never overestimates the true cost of reaching the goal from node n. In other words, for every node n:

h(n) <= h(n)*

where h*(n) is the actual (true) cost from node n to the goal.

An admissible heuristic is always optimistic - it either correctly estimates or underestimates the remaining cost. This property is crucial because it guarantees that search algorithms like A* will find the optimal (least-cost) solution.

Formal Condition

For a heuristic h(n) to be admissible:

  • h(n) >= 0 for all nodes n
  • h(goal) = 0
  • h(n) <= h*(n) for all nodes n

Example

Consider finding the shortest path on a map (Romania problem):

  • h(n) = straight-line distance (Euclidean distance) from node n to the goal city.

Since the straight-line distance between two points is always less than or equal to the actual road distance, this heuristic never overestimates the true cost. Therefore, it is admissible.

Nodeh(n) = Straight-line disth*(n) = Actual road dist
A366418
B00

Here h(A) = 366 <= 418 = h*(A), so the condition holds.

Another simple example: In the 8-puzzle problem, the number of misplaced tiles is an admissible heuristic because each misplaced tile requires at least one move to reach its goal position, so it never overestimates.


Part 2: Hill Climbing Search (7 marks)

Definition

Hill Climbing is a heuristically informed local search technique that continuously moves in the direction of increasing value (or decreasing cost) to find the best solution. It belongs to the category of heuristically informed search methods that use domain-dependent information to search more efficiently.

The algorithm works like climbing a hill - at each step, you move to the neighbor that is "higher" (better) than the current position, until no higher neighbor exists.


Working Mechanism

The algorithm uses an evaluation function h(n) (heuristic) to measure the quality of each state. The state with the lowest heuristic value (closest to goal) is selected next.

Algorithm Steps:

1. Start with an initial state (current node).
2. Evaluate the current state using heuristic h(n).
3. Generate all successors (neighbors) of the current state.
4. Evaluate each successor using h(n).
5. Select the successor with the best (lowest h(n)) value.
6. If the best successor is better than the current state:
      - Move to that successor (current = best successor)
      - Go to Step 3.
7. If no successor is better than the current state:
      - STOP. Current state is the local maximum/minimum.

Illustrated Example:

Consider nodes with heuristic values (h = estimated distance to goal):

Start: S (h=12)
       |
   ---------
   |       |
   B(h=4)  D(h=5)
   |
   E(h=7)  G1(h=0) <-- Goal

Step 1: At S, h(S) = 12. Successors: B(h=4), D(h=5).

  • Best successor = B (h=4 < h=5). Move to B.

Step 2: At B, h(B) = 4. Successors: E(h=7), G1(h=0).

  • Best successor = G1 (h=0). Move to G1.

Step 3: G1 is the goal. Search complete.

Path: S --> B --> G1


Types of Hill Climbing

TypeDescription
Simple Hill ClimbingMoves to the first neighbor that is better than current state
Steepest Ascent Hill ClimbingEvaluates all neighbors and moves to the best one
Stochastic Hill ClimbingRandomly selects among uphill moves

Limitations of Hill Climbing

Hill climbing suffers from three major problems:

1. Local Maxima (Local Optima)

  • The algorithm may reach a state that is better than all its neighbors but is not the global optimum.
  • Once at a local maximum, the algorithm stops even though a better solution exists elsewhere.
Global Max
     /\
    /  \
   / LM \      <-- Algorithm gets stuck at Local Max (LM)
  /  /\  \
 /  /  \  \
Start

2. Plateaus (Flat Local Maxima)

  • A plateau is a flat area in the search space where all neighboring states have the same evaluation value.
  • The algorithm cannot determine which direction to move, so it may wander randomly or stop.
  • This makes progress very slow or impossible.
h(n) = 5 --- 5 --- 5 --- 5   <-- Plateau (no uphill direction)

3. Ridges

  • A ridge is a sequence of local maxima that is difficult for the algorithm to navigate.
  • The path to the global optimum may require moving sideways or downhill temporarily, but hill climbing never does this.
  • The algorithm gets stuck because no single step leads uphill toward the true goal.
      Ridge
     /     \
    /  Goal  \
---/-----/----\---
  /     /      \

Summary Table of Limitations

LimitationCauseEffect
Local MaximaBetter neighbors exist globally but not locallyAlgorithm terminates prematurely
PlateausAll neighbors have equal valueNo progress, search wanders or stalls
RidgesUphill progress needs a combination of moves rather than any single moveSearch oscillates on the slope and cannot climb the ridge

Overcoming the Limitations

ProblemRemedy
Local maximaBacktrack to an earlier node and try a different direction, or restart the search from a randomly chosen state (random restart hill climbing)
PlateauMake a large jump so that the search lands outside the flat region before evaluating again
RidgeApply two or more operators as one compound move, so the search can travel diagonally along the ridge

Simulated annealing carries the same idea further by occasionally accepting a worse state, with a probability that falls as the search proceeds, so the search can escape a local maximum early on and still settle on a good solution later.

Conclusion

Hill climbing is attractive because it stores only the current state, needs very little memory and often reaches a good solution quickly. It is, however, neither complete nor optimal: it accepts the best immediate move and never looks beyond its own neighbourhood, so it can terminate at a local maximum, on a plateau or against a ridge. When the optimal solution is required, an admissible heuristic is used with a systematic search such as A*, which the admissibility condition h(n) <= h*(n) guarantees will return the least cost path. Hill climbing is preferred when a reasonably good solution has to be found quickly in a state space too large to search systematically.

Open this answer on its own page →

2076 Ā· 10 marks

Construct a state space with appropriate heuristics and local costs. Show that Greedy Best First search is not complete for the state space. Also illustrate A* is complete and guarantees solution for the same state space.[10]

Below is a carefully designed state space that demonstrates the incompleteness of Greedy Best First Search while showing A remains complete and optimal. More precisely, define the following state space: Node h(n) ------------ S 6 A 1 B 2 G 0 Note: h(A) = 1 is intentionally misleading. Node A look...

Open this answer on its own page →

2080.1 Ā· 10 marks

Define state space graph. Differentiate between A* search and greedy best first search.[10]

Show solved answer

State Space Graph and Comparison of A* Search vs Greedy Best First Search


Part 1: State Space Graph (Definition)

Definition

A state space graph is a directed graph in which:

  • Each node represents a state of the problem
  • Each arc (edge) represents the application of an operator that transforms one state into its successor state

Formal Representation

A state space is formally defined by the 4-tuple:

(S, Sā‚€, O, G)
SymbolMeaning
SSet of all possible states
Sā‚€Start (initial) state
OSet of operators/actions that transfer one state to its successor
GGoal state(s)

Key Components

  1. Initial State: The state from which the agent begins
  2. State Description (Successor Function): Describes all possible actions available to the agent at any state
  3. Goal Test: A function that checks whether a given state is the goal state
  4. Path Cost: The sum of the costs of each step along a path to the goal state

Solution

A solution is a path from the initial state to the goal state:

Initial State --> [Operator 1] --> State 1 --> [Operator 2] --> ... --> Goal State

Example Diagram

        S (Start)
       / \
      A   B
     / \   \
    C   D   E
             \
              G (Goal)

Nodes = States
Edges = Operators/Actions
Path S -> B -> E -> G = Solution

Both A* and Greedy Best First Search are heuristically informed (heuristic) search methods that use an evaluation function to decide which node to expand next. However, they differ significantly in their approach.


  • Uses the evaluation function:

$$f(n) = h(n)$$

where h(n) is the heuristic estimate of the cost from node n to the goal state.

  • It selects the node that appears closest to the goal based solely on the heuristic.
  • It is greedy because it only looks at the estimated future cost and ignores the cost already paid to reach the current node.

  • Uses the evaluation function:

$$f(n) = g(n) + h(n)$$

where:

  • g(n) = actual cost from the start node to node n (path cost so far)

  • h(n) = heuristic estimate of cost from node n to the goal

  • It selects the node with the lowest total estimated cost (past cost + future cost).


Comparison Table

FeatureGreedy Best First SearchA* Search
Evaluation Functionf(n) = h(n)f(n) = g(n) + h(n)
Cost ConsideredOnly estimated future cost h(n)Both actual past cost g(n) and estimated future cost h(n)
OptimalityNot optimal - may find a suboptimal solutionOptimal - always finds the least-cost solution (if h(n) is admissible)
CompletenessNot complete - can get stuck in loopsComplete - will always find a solution if one exists
Heuristic RequirementUses any heuristic h(n)Requires an admissible heuristic (h(n) never overestimates)
Time ComplexityO(b^m)O(b^d) in best case
Space ComplexityO(b^m)O(b^d)
Search BehaviorFocuses only on reaching goal quickly (greedy)Balances between cost so far and estimated cost to goal
RiskMay follow a path that looks good locally but is globally poorAvoids locally good but globally poor paths
Use CaseWhen speed is preferred over optimalityWhen optimal solution is required

Here: b = branching factor, m = maximum depth, d = depth of shallowest goal


Illustrative Example

Consider a graph where:

Start = S, Goal = G
Path 1: S -> A -> G  (g = 10, h(G) = 0)
Path 2: S -> B -> G  (g = 3,  h(G) = 0)
h(A) = 1, h(B) = 5
  • Greedy Best First would expand A first (h=1 is lower) and may find the longer path S->A->G
  • A* would compute:
    • f(A) = g(A) + h(A) = 8 + 1 = 9
    • f(B) = g(B) + h(B) = 2 + 5 = 7
    • Expands B first and finds the optimal path S->B->G

This shows that A* finds the optimal solution while Greedy may not.


Summary

Greedy Best First Search is fast but not reliable for finding optimal paths because it only considers the heuristic estimate. A* Search is both complete and optimal because it accounts for the total cost (actual cost traveled + estimated remaining cost), making it the preferred algorithm when an optimal solution is needed.

Open this answer on its own page →

Uninformed Search

2081 Ā· 5 marks

How uniform cost search is used to search goal in the state apace? Illustrate with example. [5]

Show solved answer

Uniform Cost Search (UCS) in State Space

Given Data

This is a conceptual/descriptive question. No numeric matrices, burst times, or reference strings are provided. The example graph and edge costs are constructed for illustration (as the question requires "an example").


Definition

Uniform Cost Search (UCS) is an uninformed (blind) search strategy that expands the node with the lowest cumulative path cost $g(n)$ from the start node. It is a special case of Best-First Search using the evaluation function:

$$f(n) = g(n)$$

where $g(n)$ = total cost of the path from the start state to node $n$. When all step costs are equal, UCS reduces to Breadth-First Search.


How UCS Searches the Goal

  1. Insert the start node into a priority queue ordered by path cost (minimum first), with cost $0$.
  2. Remove the node with the least path cost.
  3. Goal test at expansion (when popped, not when generated) to guarantee optimality.
  4. Generate successors; for each, compute $g(\text{child}) = g(\text{parent}) + \text{step cost}$ and insert into the priority queue.
  5. If a cheaper path to an already-seen node is found, update it.
  6. Repeat until the goal is popped or the queue is empty.

Illustrated Example

Consider a weighted graph with start $S$ and goal $G$:

Edge costs:

  • $S \to A = 1$
  • $S \to B = 4$
  • $A \to B = 2$
  • $A \to G = 5$
  • $B \to G = 2$

Step-by-Step Trace

StepPriority Queue (node, cost)ExpandedAction
1{(S,0)}S (0)Add A(1), B(4)
2{(A,1),(B,4)}A (1)Add G(1+5=6); B via A = 1+2=3 (better than 4)
3{(B,3),(G,6)}B (3)Add G(3+2=5)
4{(G,5),(G,6)}G (5)Goal found

Optimal Path: $S \to A \to B \to G$ with total cost $= 1 + 2 + 2 = \mathbf{5}$

The alternative $S \to A \to G$ costs $6$, so UCS correctly returns the cheaper path.

Check the path, not just the cost: with $S \to A = 1$ and $A \to B = 2$, node $B$ is reached at cost $3$, so the optimal path is $S \to A \to B \to G$ rather than $S \to B \to G$. The final cost (5) is identical either way.


Performance Measures

CriterionResult
CompletenessComplete if every step cost $\ge \varepsilon > 0$
OptimalityOptimal (least-cost path)
Time Complexity$O\big(b^{1 + \lfloor C^{*}/\varepsilon \rfloor}\big)$
Space Complexity$O\big(b^{1 + \lfloor C^{*}/\varepsilon \rfloor}\big)$

where $C^{*}$ = cost of optimal solution, $\varepsilon$ = minimum step cost, $b$ = branching factor.


Key Points

  • Uses a priority queue ordered by $g(n)$.
  • Optimal and complete for positive step costs.
  • Uninformed counterpart of A* (A* adds heuristic: $f(n)=g(n)+h(n)$).
  • Goal tested at expansion, ensuring no cheaper path is missed.
Open this answer on its own page →

2080 Ā· 5 marks

How iterative deepening search is used to find path from initial state to goal state in state space representation of any problem? Illustrate with an example. [5]

Iterative Deepening First Search (IDFS) is a combination of Breadth First Search (BFS) and Depth First Search (DFS) that achieves: - The completeness and optimality of BFS - The low memory requirement of DFS In this strategy, a depth-limited search is run repeatedly, increasing the depth limit wi...

Open this answer on its own page →

2079 Ā· 5 marks

Define game. Write the benefits and limitations of depth limited search. [5]

--- A game in Artificial Intelligence refers to a competitive environment where two or more agents (players) interact according to defined rules, each trying to achieve their own goal (usually winning) while opposing the other. Games in AI are typically modeled as two-person, zero-sum games, wher...

Open this answer on its own page →

2078 Ā· 10 marks

How informed search are different than uninformed? Given following state space, illustrate how depth limited search and iterative depending search works? Use your own assumption for depth search. (A is start and K is goal.)[10]

--- - Has no additional information about states beyond the problem definition itself. - It explores the search space without any guidance toward the goal. - Only knows whether a state is a goal or not. - Examples: BFS, DFS, Depth Limited Search, Uniform Cost Search. - These strategies are system...

Open this answer on its own page →

2076 Ā· 5 marks

Illustrate with an example, how uniform cost search algorithm can be used for finding goal in a state space. [5]

Uniform Cost Search (UCS) is an uninformed search algorithm that always expands the node with the lowest path cost from the initial state. Unlike BFS which expands nodes level by level, UCS expands nodes in order of their cumulative path cost g(n), where: g(n) = total cost of the path from the in...

Open this answer on its own page →

Mini-max Search

2081 Ā· 5 marks

How is minmax algorithm used in game search? Consider state space is defined by a collection of pairs like (A, B) representing paths between states A and B. Construct state space for following and use a minmax algorithm. (A, B), (A, C), (B, D), (D, E), (C, F), (C, G), (D, H), (D, I), (E, J), (F, K), (F, L), (G, M), (G, N). The utilities for states H, I, J, K, L, M, N are 1, 3, 2, 6, 3, 4, 1 respectively. [5]

Edges (parent, child): (A,B), (A,C), (B,D), (D,E), (C,F), (C,G), (D,H), (D,I), (E,J), (F,K), (F,L), (G,M), (G,N) Terminal utilities: H=1, I=3, J=2, K=6, L=3, M=4, N=1 Minimax is used for two-player, zero-sum adversarial games. One player (MAX) tries to maximize the final utility; the opponent (MI...

Open this answer on its own page →

2080.1 Ā· 5 marks

What is game search? How minmax search used in game playing? Illustrate with an example. [5]

Game search is a search technique used in AI to find the optimal move for a player in a two-player competitive game (such as Chess, Tic-Tac-Toe, Checkers). It explores the possible moves and counter-moves in a game tree (state space), where: - Each node represents a game state - Each edge represe...

Open this answer on its own page →

Alpha-Beta Pruning

2080 Ā· 5 marks

Why alpha beta pruning is necessary? How alpha beta pruning is done in game search, illustrate with an example. [5]

In a standard Minimax game tree, every node must be evaluated, which leads to exponential time complexity of O(b^m) where b is the branching factor and m is the maximum depth. This becomes computationally infeasible for games like chess with large branching factors. Alpha-Beta pruning is necessar...

Open this answer on its own page →

2078 Ā· 5 marks

Given following search space, determine if these exists any alpha and beta cutoffs. [5]

Critical finding: The question refers to a "following search space" (a game tree diagram with node types and terminal/leaf values), but no tree diagram, no node values, no branching structure, and no ordering information were provided in the text supplied to me. The specific numeric inputs requir...

Open this answer on its own page →

Problem formulation

2079 Ā· 10 marks

How do you define problem? What are criteria for defining problem? Compare Constraint Satisfaction Problem and Real World Problem in detail with appropriate example.[10]

--- In Artificial Intelligence, a problem is a task or situation in which an agent needs to find a sequence of actions that transforms an initial state into a goal state. It involves deciding what actions and states to consider, given a goal. Formally, a problem can be defined by 4 components: Co...

Open this answer on its own page →

Problem as a state space search

2079 Ā· 5 marks

What is state space representation? Illustrate with one example. [5]

State space representation is a way of formally representing a problem in Artificial Intelligence as a directed graph, where: - Each node represents a state of the problem (a description of the world at a given point) - Each arc (edge) represents the application of an operator that transforms one...

Open this answer on its own page →

Constraint Satisfaction Problems

2080.1 Ā· 5 marks

What is constraint satisfaction problem? Illustrate graph coloring problem as constraint satisfaction problem. [5]

A Constraint Satisfaction Problem (CSP) consists of three components: Component Description ------------------------ Variables A set of variables X = {X₁, Xā‚‚, ..., Xā‚™} Domains A domain Dįµ¢ of possible values for each variable Xįµ¢ Constraints A set of constraints that specify allowable combinations ...

Open this answer on its own page →