recitation12

# recitation12 - MIT OpenCourseWare http:/ocw.mit.edu 6.006...

This preview shows pages 1–8. Sign up to view the full content.

MIT OpenCourseWare http://ocw.mit.edu 6.006 Introduction to Algorithms Spring 2008 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms .

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
6.006 Recitation Build 2008.23
6.006 Proudly Presents Two-Way BFS Stable Sorting DRY

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Two-Way BFS Regular BFS Two-Way BFS Start: from source Start: from both the source and the goal End: reached a goal End: a node is reached both from source and from goal Works with multiple goals Requires single goal
Poking Aftermath: (gasp) Meeting Her S E

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
BFS 8 7 6 5 6 7 8 9 10 11 12 13 14 15 7 6 5 4 5 6 7 8 9 10 11 12 13 14 8 7 3 13 14 15 9 8 2 3 4 5 15 14 15 10 9 1 2 3 4 11 10 2 3 4 5 15 12 11 3 4 5 6 14 15 13 12 4 5 6 7 13 14 15 14 13 5 6 7 8 12 13 14 15 14 6 7 8 9 10 11 12 13 15 7 8 9 10 11 12 13 14 8 14 E 9 10 11 12 13 14 15 10 11 12 13 14 15
Two-Way BFS 8 7 6 5 6 7 8 7 6 5 4 5 6 7 8 8 7 3 8 2 3 4 5 1 2 3 4 2 3 4 5 7 3 4 5 6 7 6 4 5 6 7 7 6 5 5 6 7 8 6 5 4 6 7 8 7 6 5 4 3 7 7 8 7 6 5 4 3 2 6 7 8 2 1 5 6 7 6 5 4 3 2 3 4 5 7 6 5 4 3 4 5 6 6

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 09/24/2010 for the course CS 6.006 taught by Professor Erikdemaine during the Spring '08 term at MIT.

### Page1 / 13

recitation12 - MIT OpenCourseWare http:/ocw.mit.edu 6.006...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online