UCS411 - Quiz1 Set B - Solutions
UCS411 - Quiz1 Set B - Solutions
A B C D E
G H
I J K
A. GAHJIBCEKD C
B. GAHJIBCDEK
C. GAHIJBDEKC
D. GAHIJBCEKD
Q3. Following are two statements about Best first search.
1. A "best-first search" utilises a heuristic to assess how close the end of a path is to a solution by
maintaining a priority queue.
2. Best first search is always able to find the optimal solution for a problem.
Which of the above given statements are true?
A. both 1 and 2 C
B. only 2
C. only 1
D. none of the above
Q4. Consider the water jug problem: if [maximum capacity of x, y-(maximum capacity of x-x)] is not in
current state and y>0 and (x+y)>0 and (x+y)>= maximum capacity of x then choose the appropriate value of
x&y
A. y=x - (maximum capacity of y -y), x= maximum capacity of y B
B. y=y - (maximum capacity of x -x), x= maximum capacity of x
C. x=y - (maximum capacity of x -x), y= maximum capacity of x
D. x=x - (maximum capacity of y -y), y=maximum capacity of y
Q5. The time and space complexity of DFS (consider b as branching factor and d as depth of search tree)?
A. O (bd) and O (bd) B
B. O (bd) and O (bd)
C. O (bd +1) and O (bd+1)
D. O (bd) and O (bd)
Q6. How many steps are required to reach from initial to goal state from the implementation of DFS algorithm?
2 3 1 2 3
1 8 4 8 4
7 6 5 7 6 5
Initial State Goal State
A. 0 D
B. 3
C. 1
D. 2
Q7. Let G be an undirected graph. Consider a depth-first traversal of G, and let T be the resulting depth-
first search tree. Let u be a vertex in G and let v be the first new (unvisited) vertex visited after visiting u in
the traversal. Which of the following statements is always true?
A. {u,v} must be an edge in G, and u is a descendant of v in T D
B. {u,v} must be an edge in G, and v is a descendant of v in T
C. If {u,v} is not an edge in G then u and v must have the same parent in T
D. If {u,v} is not an edge in G then u is a leaf in T
Q8. Which agent deals with the happy and unhappy state?
A. Learning Agent C
B. Model-based agent
C. Utility-based agent
D. Goal-based Agent
Q9. Which of the following statement is false?
A. DFS is not guaranteed to find an optimal path; iterative deepening is. D
B. For infinite search spaces also, DFS-ID will never stuck into blind alley.
C. In DFS-ID all nodes at a given depth are checked for the goal node before
moving to the next iteration with increased depth.
D. The space complexity of DFS-ID is same as that of BFS
Q10. What is the full form of PEAS?
A. Performance Measure, Environment, Actuators, and Sensors A
B. Perceptual Measure, Environment, Actuators, and Sensors
C. Performance Measure, Entity, Actuators, and Sensors
D. Performance Measure, Environment, Agent Function, and Sensors