840 likes | 972 Views
Maze Running in C Minor. A Series of Slides in 5 Parts Movement 3. IDFS. MAX DEPTH: 1 AT: AA. STACK: AB. KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration. Nodes are taken in the order: UP, LEFT, DOWN, RIGHT. MAX DEPTH: 1 AT: AB. STACK: .
E N D
Maze Running in C Minor A Series of Slides in 5 Parts Movement 3. IDFS
MAX DEPTH: 1 AT: AA STACK: AB KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 1 AT: AB STACK: Note that since we are at depth 1, we do not push any neighbors of AB onto the stack. KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 2 AT: AA STACK: AB KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 2 AT: AB STACK: BB AC Note that we push all neighbors except for the node we just came from. KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 2 AT: BB STACK: AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 2 AT: AC STACK: KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 3 AT: AA STACK: AB KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 3 AT: AB STACK: BB AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 3 AT: BB STACK: CB BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 3 AT: CB STACK: BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 3 AT: BA STACK: AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 3 AT: AC STACK: KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 4 AT: AA STACK: AB KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 4 AT: AB STACK: BB AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 4 AT: BB STACK: CB BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 4 AT: CB STACK: DB BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 4 AT: DB STACK: BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 4 AT: BA STACK: CA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 4 AT: CA STACK: AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 4 AT: AC STACK: KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 5 AT: AA STACK: AB KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 5 AT: AB STACK: BB AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 5 AT: BB STACK: CB BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 5 AT: CB STACK: DB BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 5 AT: DB STACK: DE DC DA BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 5 AT: DE STACK: DC DA BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 5 AT: DC STACK: DA BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 5 AT: DA STACK: BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 5 AT: BA STACK: CA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 5 AT: CA STACK: DA AC Note that we push DA onto the stack even though we’ve already been there. This is an implementation of IDFS where no visit information is kept. KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 5 AT: DA STACK: AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 5 AT: AC STACK: KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 6 AT: AA STACK: AB KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 6 AT: AB STACK: BB AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 6 AT: BB STACK: CB BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 6 AT: CB STACK: DB BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 6 AT: DB STACK: DE DC DA BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 6 AT: DE STACK: EC EA DC DA BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 6 AT: EC STACK: EA DC DA BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 6 AT: EA STACK: DC DA BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 6 AT: DC STACK: CC DA BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 6 AT: CC STACK: DA BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 6 AT: DA STACK: CC BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 6 AT: CC STACK: BA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 6 AT: BA STACK: CA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 6 AT: CA STACK: DA AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 6 AT: DA STACK: DB AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 6 AT: DB STACK: AC KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT
MAX DEPTH: 6 AT: AC STACK: KEY: GREEN – Start RED – Exit YELLOW – Visited on this iteration Nodes are taken in the order: UP, LEFT, DOWN, RIGHT