✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Given a graph-G that has |V| vertices and |E| edges, that is:
What is the worst case time complexity to determine if there is an edge between vertex-u and vertex-v (incoming or outgoing), if G is implemented using adjacency matrix?