This course has already ended.
You cannot submit this assignment

You need to sign in and enrol to submit exercises.

Breadth first search (BFS)

* 2 points
Suppose a BFS algorithm starts from node \(s\). Suppose \(x\) is some other node and a path from \(s\) to \(x\) exists. Why does the BFS algorithm assign different colors to \(x\)?
* 2 points
Suppose a directed graph has 4 nodes \(s\), \(a\), \(b\) and \(c\). Suppose in addition the graph has all possible edges except 2: the edge from \(s\) to \(a\) and the edge from \(a\) to \(b\). What are the distances from \(s\) to each of the other nodes?
Posting submission...

Earned points

0 / 4

Exercise info

Assignment category
_theory
Your submissions
0 / 3
Deadline
Sunday, 24 November 2024, 23:59
Total number of submitters
40