✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Recall the algorithm for shortest paths in an unweighted graph. We provide it below, as given in the course notes.
|
|
Analyse this algorithm and provide:
Assume the graph G is stored as an adjacency matrix. Make no assumption on the edge density of the graph.
Select one worst-case time complexity and one auxiliary space complexity from the list below. Two correct answers and zero incorrect answers are required to pass this question.