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.
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
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]
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): Node h(n) Neighbors ----------------------- A 10 B, ...
Full solved answer →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 (...
Full solved answer →Define admissible heuristic with an example. Explain the working mechanism and limitations of hill climbing search.[10]
--- 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 heur...
Full solved answer →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 ...
Full solved answer →Define state space graph. Differentiate between A* search and greedy best first search.[10]
--- 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 A state space is formally defined by the 4-tup...
Full solved answer →Uninformed Search
How uniform cost search is used to search goal in the state apace? Illustrate with example. [5]
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"). --- Uniform Cost Search (UCS) is an un...
Full solved answer →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 r...
Full solved answer →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 mod...
Full solved answer →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 Co...
Full solved answer →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...
Full solved answer →Mini-max Search
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 maxi...
Full solved answer →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 rep...
Full solved answer →Alpha-Beta Pruning
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...
Full solved answer →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 t...
Full solved answer →Problem formulation
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 pr...
Full solved answer →Problem as a state space search
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 applic...
Full solved answer →Constraint Satisfaction Problems
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 constrai...
Full solved answer →Make Unit 3 stick
Practice CSC266 with flashcards & quizzes