Minimum Spanning tree(MST) : Prim's algorithm clear explanation with example
Пікірлер: 157
@hemanthprabhu81349 ай бұрын
I have tomorrow exam and I searched for prims algorithm in many videos and still was confusing, this video opened accidentally but its the best pakka 7 marks 😅 thanks ma'am 😊
@003kazimehrabrashid44 жыл бұрын
thank you madam, you explanation was very easy to understand. but i am afraid that at 12:05 'f' should be connected with 'e', you said that exactly though.
@bharathmadival8055 Жыл бұрын
🙌
@mr.incredible17153 ай бұрын
Exactly 😊
@yogeshdharya38574 жыл бұрын
For what reasons exactly will anyone dislike a crystal clear(in terms of explanation) video like this?
@taleemmurtaza50413 жыл бұрын
Amazing ma'am thoughts cleared thank you very much
@brownfeminine2 жыл бұрын
At starting of the video l didn't get anything but by the end I was happy that ''Oh thank god this is very simple''😅 THANKS A LOT mam❤
@prathyusha2524 жыл бұрын
Guys - Prim's algorithm yields the minimum spanning tree only when there are unique edge weights. The way she explained is correct. However, for this graph (where there are 2 pairs of edges with the same weights bd, ac and bc,df), Kruskal's algorithm is the efficient one. She could have chosen to use unique edge weights. Kruskal's would give you 22 as many of you mentioned
@sarthakchandrayan55426 ай бұрын
we will get 22 in this method as well .In the last step the edges should be {f,e) and not {g,e}, because {f,e} has weight 5 which is less than 6 of {g,e}
@DivakarGowdaMN6 ай бұрын
@@sarthakchandrayan5542f is already visited na how can we revisit it
@sarthakchandrayan55426 ай бұрын
@@DivakarGowdaMN if it has a lower value you can
@minakshirawat32903 ай бұрын
@@sarthakchandrayan5542 same problem my answer is 23 and my friends answer 22 ,not understand how's right same question asked in today's exam
@afnainshariff31634 ай бұрын
Thanks mam u r the best teacher of youtube
@kondurivarun6 ай бұрын
nice explanation keep rocking and inspire many more
@n.syamala10904 жыл бұрын
Ur explanation is too good mam do many more videos on data structures
@pubalidas69032 жыл бұрын
F should be connected to e. As it has minimum weight
@BhagatBhutale..4 ай бұрын
Video is Useful 👍
@devratnasawaitul88442 жыл бұрын
ans is wrong but got an idea how it actually work thnk u 😇
@manpreetbrar-km7qg4 жыл бұрын
Mam jo weight hotta hai vertices ka vo kaise v likh sakte hai jaise a to b 4 diya apne ex. Me
@aangyamishra10083 жыл бұрын
Tq mam... For ur simply explanation... It made easy to understand this concept
@indrareddy5436 Жыл бұрын
thats fine its ok
@kavyasharma90183 жыл бұрын
The most easy explanation
@ishowertudu74054 жыл бұрын
Mam.....the last connection would be between (f,e),not between (g,e). Then the answer will be 22
@Abhishekyadav-kb5ni2 жыл бұрын
yeah i have the same doubt...
@pushkarroy97406 ай бұрын
1 NOTE : In last step the edges should be {f,e) and not {g,e}, because {f,e} has weight 5 which is less than 6 of {g,e}
@jayab47463 жыл бұрын
Super explanied mam tq u so much
@tulasichanga Жыл бұрын
Mam I have one doubt. How to calculate the weight
@sstelematicssstelematics22106 жыл бұрын
Ty Mam....u explained really good
@vinaykumar-pt1br2 жыл бұрын
what if we have a parallel edge in the graph should we remove it
@Abdulsamad-12 жыл бұрын
Ma'am you can choose F to E also na?
@anjalidevi64835 жыл бұрын
Tnquuu mam
@srikantbaliarsingh77643 жыл бұрын
Thank you so much,,help me for the next 1hour exam
@VishalAnandTM5 жыл бұрын
Minimum spanning tree has a weight of 22 whereas your tree is 23 ... i suppose you made a mistake . f should be connected to both e and g
@ImtiazAhmad-yw8do5 жыл бұрын
Yes , you are right
@Odim655 жыл бұрын
yaa you are right
@sandipsarkar52615 жыл бұрын
There should be the edge between f to e...not g to e...this is the mistake
@ridhammodh26014 жыл бұрын
yes you are right
@prathyusha2524 жыл бұрын
Prim's algorithm yields the minimum spanning tree only when there are unique edge weights. The way she explained is correct. However, for this graph (where there are 2 edges with the same weight bd and ac), Kruskal's algorithm is the efficient one. She could have chosen to use unique edge weights. Kruskal's would give you 22 as you mentioned 👍
@itzabhishek.3 ай бұрын
Yes but you have to see from visited vertice and after visiting f to g only one path remains to e , thatwhy we have to visit g to e .. because in prims we can't go back after visiting any vertice...I hope so ...
@daniyalhaidary33914 жыл бұрын
Ma'am aap jo last m (ge )edge ko milaye h. Wo kya Sahi h
@gowrijanarthanan9393 Жыл бұрын
good explanation thank you
@muhammadaamir5663 жыл бұрын
Mam.....the last connection would be between (f,e),not between (g,e). Then the answer will be 22 not 23
@GAGANDEEPGOWDAMLAIML-- Жыл бұрын
correct bro
@offline5756 Жыл бұрын
Thank you ❤️
@AbhishekThakur-fk7px Жыл бұрын
Thank you so much mam.
@amitsingh-qn7nv5 жыл бұрын
good video..
@sattivideos8136 Жыл бұрын
The correct answer here is f to g and f to e not from g to e so that minimum spanning tree has weight of 22
@user-zf8ii5qs3r11 ай бұрын
Yes you are correct
@infamous_SUSIL11 ай бұрын
No she done correctly
@adijaiswal80097 ай бұрын
U r ryt
@kishorraj47516 ай бұрын
22 is correct answer
@RajdeepDas-oo5gz5 ай бұрын
Yep
@yuvasriravi69877 ай бұрын
Thank you mam 😊
@AdeshkumarAdeshraj-dy9fhАй бұрын
mam , in step 6 where you choose light weight is wrong because weight of (f,e) is less then weight of (g,e).
@pushkarkumar71735 жыл бұрын
At last e-f will be connected instead of g-e
@VardanSharma4 жыл бұрын
Yes you're correct I wonder how can she post it without even checking.
@sabarinathem41464 жыл бұрын
correct answer
@mdmuzakkir69125 жыл бұрын
madam plzz make vedio regarding branch and bound knapsack problem
@aikarsharay67072 жыл бұрын
Thank you
@StrangerDon5 жыл бұрын
Thanks
@RahulRaj-vv9fs Жыл бұрын
aapki aawaz kitna aache hai :) >. .< 😍😍😍😍
@sumitkumarmishra64836 жыл бұрын
I think your's example ans is wrong because at final step (e-f) will be connected not (e-g)
@buddhiniwalakuluarachchi82815 жыл бұрын
i agree
@RaviKumar-cz5ci5 жыл бұрын
@@buddhiniwalakuluarachchi8281 then it will be closed circuit...and we should take minimum value
@ShivaKumar-ud8pt5 жыл бұрын
Thanks
@pradhumnsirothiya5 жыл бұрын
last visited edges se min distance dekha jata hai bro.....
@nilotpalsingh90965 жыл бұрын
You are correct
@kavyaganesh8333 жыл бұрын
Mam thank you
@unboxinghonestreview6195 жыл бұрын
What is the difference in prims algorith and krushkal algorithm
@csengineer88197 ай бұрын
prims algo work on vertices and krushkal algo work on edges
@arunkumararun74074 жыл бұрын
Mam is confused.but actualy answer is MST=22
@sunnyKumar-jy6ui3 ай бұрын
connection of e and g is 6 and e and f is 5 so i think it should be e to f which is of 5
@khadizaaktereme6184 Жыл бұрын
why {f,e} can't be taken at the last step??? I think that is incorrect step to choose {g,e}.
@anmol86302 жыл бұрын
Can we do like this in university exams
@iasanuradhagupta54634 жыл бұрын
Why we don't start from c having least weight
@cst51ritishadebnath6225 күн бұрын
Last step is not currect. e connect with f not g , so minimum spanning tree has weight=22
@sunithaparimi7865 жыл бұрын
Mam ur videos are really good understanding easily ur explanation step by step pls put a video for kmaps
@akshatkumar10625 жыл бұрын
I can help u with k maps in the easiest way of solving them
@Ashimiim5 жыл бұрын
If we have loops or parallel paths?
@tarequlislam95434 жыл бұрын
just ignor loop and parallel paths(heighest weight)
@taleemmurtaza50413 жыл бұрын
First remove self loop and parallel edges then you find your mst with the given graph
@Pastozafaire5 жыл бұрын
Thanks for posting this video, please check your answer as I also got 22 here are my chosen edges - ab(4), ac(8),cd(2),cf(1),ef(5) , fg(2); why choose eg instead of ef? ef has the lesser weight by 1.
@Janakiram_9995 жыл бұрын
G is a visited vertex so connect e
@bandiisreekanth13303 жыл бұрын
How u take weights as 9 8 4 like this
@bidetwacadet65255 жыл бұрын
thx
@hyn50702 жыл бұрын
Mam please do videos on java and python it's humble request
@shreysingh44634 жыл бұрын
By krushals method it's answer is 22 but yours is 23 ?
@umarbilal61505 жыл бұрын
very helpful lecture
@vishnumb5262 жыл бұрын
Sooper
@shivarajh21675 жыл бұрын
U made it easy.. Thanks mam
@rohanprak5 жыл бұрын
its wron bro , dont follow , MST cost is 22 whereas she calculated as 23
@hindupriya87633 жыл бұрын
How to write weights madam
@jahanahmed83083 жыл бұрын
Mam u forgot the weight 5 edge....cost is 22
@worldexcitingthings93095 жыл бұрын
I think you teach us kruskal algorithms not prim's algorithms plz refer book
@techniquerequest50503 жыл бұрын
It's prims bro✌plz refer book
@Levis405 жыл бұрын
I want kruskal's algorithms for finding minimum spanning tree process please upload that video
@reddygayathri0315 жыл бұрын
No it is correct what she said in this there should be least no if u have said Thai it for should be connected to e and g but first we have to check least value i.e f to e it has 5 and f to g it has 2 minimum so we have to take f to g so what she said is right
@abinayap38584 жыл бұрын
I think prim's algorithm using edges...
@SluciferKm4 ай бұрын
The minimum spanning tree has weight of 22 not 23
@saitejavbss32003 жыл бұрын
u said wroung total wroung
@ranganathmannem70115 жыл бұрын
tq for the explanation
@saurabhbisht26685 жыл бұрын
Ans is wrong it should be 22 and ur ans in 23
@ashishpandey73445 жыл бұрын
something went wrong mam
@user-ix2ij4em9l5 ай бұрын
What is the crt ans. mam...,? 22 or 23
@s_h_reee7041Ай бұрын
Sircute .
@sauravkumar39623 жыл бұрын
This is wrong MSP will be 22 in this case....you have to join *f* and *e*....not g and e...🙄
@azizulhakim28824 жыл бұрын
something mistake mam
@TaufiqShaikhkivines4 жыл бұрын
Mst is 22
@KTMKING1703 Жыл бұрын
Mam 2 edges 9 , 9
@ashish3saxena5 жыл бұрын
Very helpful
@dheerajgupta61283 жыл бұрын
There is a mistake
@Abcdef-hq3vf Жыл бұрын
Mam this was not the minimum spaning tree
@bhaveshnikam5954 Жыл бұрын
WRONG ANSWER HE LASGT ME F-E SELECT KARANA THA
@el_ilimitado2 жыл бұрын
## Attention guys: sorry ma'am but what u have demonstrated is not totally right. u said edges with minimum weight can be taken only from the latest visited vertex. but it can be taken from any visited vertex. I request u to recheck it. thank u
@Aakash-mi8xq4 жыл бұрын
this method is wrong guys.Please do not refer it
@tusharahmmed89523 жыл бұрын
Why we don't go with b to c ? coz b to c = 4.
@harrymanoharan5 жыл бұрын
This is wrong!
@Explorewithrishabh83184 жыл бұрын
Mam bahut complicated krdiya aapne...
@manpreetbrar-km7qg4 жыл бұрын
Plzz reply
@shankuntalaverma1413 Жыл бұрын
minimum spanning tree has 22 your answer is wrong
@poorprogrammingcm6634 жыл бұрын
wrong answer
@lifechange4464 Жыл бұрын
Ma'am apne f se e lena tha apka galat h
@sahilkulshreshtha4465 Жыл бұрын
Your solution is wrong, min span can be 22 and in your case it is 23
@rohanprak5 жыл бұрын
remove this video please , its not correct 1. teaching the wrong code 2. uploading the lecture video 3. not removing the video coz of views 4. result : dislike the video and unsubscribe
@kerwal8105 жыл бұрын
Mam ye pabg to band kr lo
@dheerajgupta61283 жыл бұрын
Not explained well
@halfengineer3236 Жыл бұрын
Wt =22 is correct and your ans is incorrect
@Christ_Love_402 жыл бұрын
Not crealry We are all learners not a lecturers
@ayushjaiswal7298 Жыл бұрын
wrong answer...please rewatch the video before uploading
@chachannel0014 жыл бұрын
MST is (4+8+2+1+2+6) = 23
@jazeerabbas28892 жыл бұрын
Malayali undooo
@Srikrishna9999 Жыл бұрын
Learn English
@lakshaysethi79272 ай бұрын
who else listened that mam mistakenly said sex 2:03