371 views
0 0 votes

hey i am trying to solve this question GATE CSE 2015 Set 1 | Question: 43 so what is my doubt is if i take the dijkstras algo for mcst then this is right but when i am trying to solve it with prims algos logic ans is different how i am thinking about prims logic is when i am trying to go from node to different node then i will take the smallest path so the other path need to be only one greater then the current path so according ab=10, cd=3,de=7, so ans will be different but the right ans is 69 tell me if there is anything wrong in my approach

Please log in or register to answer this question.

Position:
Show:

Related questions

89 89 votes
7 answers 7 answers
30.0k
30.0k views
Misbah Ghaya asked Feb 13, 2015
30,031 views
The graph shown below has $8$ edges with distinct integer edge weights. The minimum spanning tree (MST) is of weight $36$ and contains the edges: $\{(A, C), (B, C), (B, E...
79 79 votes
5 answers 5 answers
17.2k
17.2k views
Misbah Ghaya asked Feb 13, 2015
17,194 views
Let a$_{n}$ represent the number of bit strings of length n containing two consecutive $1$s. What is the recurrence relation for $a_{n}$?$a_{n - 2} + a_{n - 1} + 2^{n - 2...
94 94 votes
16 answers 16 answers
33.4k
33.4k views
Misbah Ghaya asked Feb 13, 2015
33,382 views
Let $G = (V, E)$ be a simple undirected graph, and $s$ be a particular vertex in it called the source. For $x \in V$, let $d(x)$ denote the shortest distance in $G$ from ...
132 132 votes
7 answers 7 answers
42.1k
42.1k views
Misbah Ghaya asked Feb 13, 2015
42,127 views
An algorithm performs $(\log N)^{\frac{1}{2}}$ find operations , $N$ insert operations, $(\log N)^{\frac{1}{2}}$ delete operations, and $(\log N)^{\frac{1}{2}}$ decrease-...