Lecture 9: Breadth-First Search - MIT OpenCourseWare
https://ocw.mit.edu/courses/6-006-introduction-to-algorithms-spring-2020/196a95604877d326c6586e60477b59d4_MIT6_006S20_lec9.pdf
WEB4 Lecture 9: Breadth-First Search. Breadth-First Search (BFS) • How to compute δ(s, v) and P (v) for all v ∈ V ? • Store δ(s, v) and P (v) in Set data structures mapping vertices v to distance and parent • (If no path from s to v, do not store v in P and set δ(s, v) to ∞) • Idea! Explore graph nodes in increasing order of distance
DA: 67 PA: 81 MOZ Rank: 64