Presentation is loading. Please wait.

Presentation is loading. Please wait.

Applications of Stacks and Queues for Constraint Satisfaction Problems

Similar presentations


Presentation on theme: "Applications of Stacks and Queues for Constraint Satisfaction Problems"— Presentation transcript:

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


Download ppt "Applications of Stacks and Queues for Constraint Satisfaction Problems"

Similar presentations


Ads by Google