✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Given a connected undirected graph with the following weighted edges: A–B(3), A–C(1), B–C(2), B–D(4), C–D(5). For the graph above, if Prim’s algorithm starts at vertex B, which edge is added first?