Download presentation
Presentation is loading. Please wait.
Published byJeanne Bonnet Modified over 6 years ago
1
Applications of Stacks and Queues for Constraint Satisfaction Problems
Jyh-Shing Roger Jang (張智星) CSIE Dept, National Taiwan University
2
Constraint Satisfactory Problems
Example: Search a feasible configuration in a game Nonograms 2048 8-queen problem Sudoku (數獨遊戲)
3
Graph Traversal Tree traversal Why DFS is preferred?
Use a stack for DFS (depth-first search) Use a queue for BFS (breadth-first search) Why DFS is preferred? Quiz!
4
A Walk-through Example of Search in Games
4-queen problem Use a stack for DFS Use a queue for BFS
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.