1 1 vote Let, $G=(V,E)$ be a connected undirected graph. Edge weights may be negative.We want to choose, $E'\subseteq E$ such that $G'=(V,E')$ is connected and: $\sum_{e\in E'}w(e)$ is as small as possible.Is the optimal solution $E'$ guaranteed to form a tree?Yes No Algorithms goclasses goclasses-da-dpp goclasses-da-dpp-day-260 goclasses-cs-dpp goclasses-cs-dpp-day-358 algorithms python-&-dsa goclasses-python-&-dsa-practice-questions goclasses-algo-practice-questions minimum-spanning-tree + – GO Classes 90 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
0 0 votes With ordinary MST reasoning, cycles are unnecessary because removing an appropriate cycle edge does not hurt connectivity and can reduce or preserve total cost.But this changes when edges can have negative weights.Consider a triangle:$A-B$$B-C$$C-A$where every edge has weight $-1$Any spanning tree contains two edges, so its total weight is $-2$But choosing all three edges gives $-3$The resulting graph is connected and has lower total weight.However, it contains a cycle.Therefore the optimal connected edge subset need not be a tree.In fact, negative edges can be beneficial even when they create cycles, because adding them decreases the objective value.Answer : B GO Classes answered Aug 26 GO Classes comment Share Follow 0 reply Please log in or register to add a comment.