I try to solve this question but I am not sure of my solution
This is my solution: I use Kruskal algorithm and I choose the edges that will make (a) leaf solution
thank you.
No. The answer will be 9. The algorithm takes edges:
a<->b with cost 1: ADDED a,b are now connected
a<->d with cost 1: ADDED a,b,d are now connected
b<->d with cost 4: SKIPPED
c<->d with cost 7: ADDED a,b,d,c are now connected, this is the final spanning tree.
a<->c with cost 8: SKIPPED
b<->c with cost 12: SKIPPED
So, the answer is 1+1+7=9.