Depth-First Search (DFS) typically uses which data structure?
- Queue
- Hash table
- Stack
- Heap
Explanation
DFS uses a
stack (or recursion) to explore as deep as possible before backtracking.
Related MCQs
- Unsupervised Learning
- Deep Learning
- Supervised Learning
- Reinforcement Learning
اس سوال کو وضاحت کے ساتھ پڑھیں
- Adaptive Interface
- Augmented Information
- Artificial Intelligence
- Automated Intelligence
اس سوال کو وضاحت کے ساتھ پڑھیں
- John McCarthy
- Marvin Minsky
- Geoffrey Hinton
- Alan Turing
اس سوال کو وضاحت کے ساتھ پڑھیں
- Translate languages
- Compute fast
- Exhibit human-like intelligence
- Store data
اس سوال کو وضاحت کے ساتھ پڑھیں
- Artificial General Intelligence
- A spam email filter
- A self-aware robot
- A conscious machine