wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Quiz 2 - Search

Total questions: 12

Worksheet time: 7mins

Name
Class
Date
1.

The N-Queen problem is solved using a state space where each state represents a partial arrangement of queens, and the goal is to place _ queens on an _*_ chessboard so that no two queens attack each other.

(a)  

2.

In a search tree, a_ is a data structure representing a state in the problem space, while the _ represents the path from the initial state to the goal state.

(a)  

3.

The time complexity of Breadth-First Search (BFS) in terms of branching factor b and depth d isO(_) , while its space complexity is _.

a)

bd, bd

b)

db , bd

c)

bd, bd

d)

bd , db

4.

In the Water-Jug problem, the state space consists of:

a)

All possible sequences of pouring water

b)

All possible configurations of water levels in the jugs

c)

Only the goal state and initial state

d)

Only the transitions between states

5.

The N-Queen problem is solved using which of the following techniques?

a)

a) Backtracking

b)

b) Hill Climbing

c)

c) Both a and b

d)

d) None of the above

6.

In a search tree, a node that has not yet been expanded is placed in the:

a)

Open List

b)

Closed List

c)

Goal List

d)

None of the above

7.

Breadth-First Search (BFS) is guaranteed to find:

a)

Any solution

b)

The shallowest solution

c)

The least-cost solution

d)

The fastest solution

8.

Which of the following search strategies is uninformed?

a)

A* Search

b)

Greedy Best-First Search

c)

Iterative Deepening Depth-First Search (IDDFS)

d)

Hill Climbing

9.

Uniform Cost Search selects the node with:

a)

The highest heuristic value

b)

The lowest cost from the initial state

c)

The deepest depth in the search tree

d)

The most promising heuristic estimate

10.

The Greedy Best-First Search algorithm uses which function for evaluation?

a)

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

b)

f(n)=h(n)

c)

f(n)=g(n)

d)

f(n)=h(n)−g(n)

11.

A* Algorithm is guaranteed to be optimal if the heuristic function is:

a)

a) Admissible

b)

b) Consistent

c)

c) Both a and b

d)

d) Neither a nor b

12.

A heuristic function is consistent if:

a)

a) It never overestimates the actual cost to reach the goal

b)

b) It satisfies the triangle inequality

c)

c) It always provides a unique path to the goal

d)

d) It ensures the search is complete