📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

Which search strategy uses a last-in, first-out stack for the frontier?

A. Breadth-first search
B. Depth-first search ✅
C. Uniform-cost search
D. A* search

Correct Answer: B. Depth-first search

Explanation

Depth-first search expands the deepest unexpanded node first, which a LIFO stack provides.