wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Search Algorithms

Total questions: 18

Worksheet time: 10mins

Name
Class
Date
1.

Searching is a Sequence of Steps that transforms the _______________ to the _______________.

a)

Initial State , Goal State

b)

Goal State , Initial State

c)

Start State, Initial State

d)

Goal State, Start State

2.

Un-informed Search Examples are

a)

Breadth First Search

b)

Depth First Search

c)

Bidirectional search

d)

All of these

3.

Which of the following search algorithm requires less memory?

a)

Depth First Search

b)

Optimal Search

c)

Breadth-First Search

d)

Linear Search

4.

A heuristic is a way

a)

To discover something or an idea embedded in a program

b)

To compare two nodes in a search tree to see if one is better than other

c)

To search and measure how far a node in a search tree seems to be from goal

d)

All Above

5.

Dijkstra’s algorithm / Uniform-cost search expands the node n with the ......

a)

Heuristic cost

b)

Lowest path cost

c)

Highest path cost

d)

Average path cost

6.

A* evaluates nodes by combining g(n), the cost to reach the node, and f(n), the cost to get from the node to the goal.

a)

TRUE

b)

FALSE

7.

Which of the followings have no additional information about the states

a)

Uninformed search

b)

Informed search

c)

All

d)

None

8.

Which one of the following searches is optimal

a)

DFS (Depth-first search)

b)

Depth Limited Search

c)

BFS (Breadth-first search)

d)

Uninformed search

9.

Which one has been provided with a predefined depth limit.

a)

BFS (Breadth-first search)

b)

DFS (Depth-first search)

c)

DLS (Depth-limited Search)

d)

IDS (Iterative Deepening Search)

10.

When is breadth-first search is optimal?

a)

When there is less number of nodes

b)

When all step costs are equal

c)

When all step costs are unequal

d)

None of the mentioned

11.

Which of the following is/are Uninformed Search technique/techniques?

a)

Breadth First Search (BFS)

b)

Depth First Search (DFS)

c)

Bidirectional Search

d)

All of the mentioned

12.

What is the other name of informed search strategy?

a)

Simple search

b)

Heuristic search

c)

Online search

d)

None of the mentioned

13.

Which search uses the problem specific knowledge beyond the definition of the problem?

a)

Informed search

b)

Depth-first search

c)

Breadth-first search

d)

Uninformed search

14.

A* algorithm is based on ___________

a)

Breadth-First-Search

b)

Depth-First –Search

c)

Best-First-Search

d)

Hill climbing

15.
Which of the following is a key characteristic of uninformed search algorithms?
a)
They use heuristics to guide the search
b)
They always find the optimal solution
c)
They explore all possible paths
d)
They only explore the most promising paths
16.
What is the difference between breadth-first search and depth-first search?
a)
Breadth-first search explores all possible paths, while depth-first search only explores the most promising paths
b)
Breadth-first search always finds the optimal solution, while depth-first search does not
c)
Breadth-first search uses a stack, while depth-first search uses a queue
d)
Breadth-first search explores nodes in order of their depth, while depth-first search explores nodes in order of their distance from the root
17.
Which of the following is a disadvantage of depth-first search?
a)
It can be very slow
b)
It may get stuck in an infinite loop
c)
It can only be used for small datasets
d)
It is not guaranteed to find the optimal solution
18.
What is the primary disadvantage of breadth-first search?
a)
It can be very slow
b)
It may get stuck in an infinite loop
c)
It can only be used for small datasets
d)
It is not guaranteed to find the optimal solution