Machine-translated by Google. Questions are authored in English.
Top

Discussion

Match each strategy with the frontier discipline it uses.

List I

A. Breadth first

B. Depth first

C. Uniform cost

D. Iterative deepening

List II

P. first in first out queue

Q. last in first out stack

R. priority queue on path cost

S. repeated depth limited stack

Select the correct match.

  • A.A-P, B-R, C-Q, D-S
  • B.A-P, B-Q, C-R, D-S
  • C.A-Q, B-P, C-S, D-R
  • D.A-R, B-S, C-P, D-Q

Answer: B

The entire family differs only in how the frontier is ordered, and every property follows from that one choice. An implementation can switch between them by changing the container, which makes the comparison concrete rather than abstract. Iterative deepening is the exception in being a wrapper around repeated depth limited searches rather than a single discipline, which is why it appears as a strategy rather than a data structure.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.