Add notes for BFS as well
This commit is contained in:
@@ -40,13 +40,7 @@ What about this one?
|
||||
|
||||
Based on these examples, can we create a formal algorithm that takes a starting node, producing a valid traversal path for all three graphs?
|
||||
|
||||
An example for this graph:
|
||||
Some starter questions:
|
||||
|
||||
```
|
||||
0 --- 1
|
||||
| |
|
||||
3 --- 2
|
||||
```
|
||||
|
||||
- Arguments: starting node `0`
|
||||
- Expected output:
|
||||
- Could recursion help us here?
|
||||
- What are some ways we can track already-visited nodes? What's the most *time-efficient* way to do so?
|
||||
|
||||
Reference in New Issue
Block a user