Prim's Algorithm for MST(with Code Walkthrough) | GeeksforGeeks

Prim's Algorithm for MST(with Code Walkthrough) | GeeksforGeeks

GeeksforGeeks

7 лет назад

346,332 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@stylistar05
@stylistar05 - 31.07.2023 12:55

Not clear...

Ответить
@user-ru9sq3dl9u
@user-ru9sq3dl9u - 01.05.2023 15:31

I didn't know that there is a video that explains the algorithm of the site. Now I finally understand why the fucking key array is needed in the code. Thanks a lot

Ответить
@JarOfHeat100
@JarOfHeat100 - 21.02.2023 23:52

i'm not sure you still read comments after 5 years since you uploaded but you kinda saved my life. i have to submit a project before midnight tomorrow and i had to implement a priority queue as well and i was getting crazy because i couldn't understand what i was doing wrong (it was the update of the queue of course) <3

Ответить
@hiteshkumar-lz7tu
@hiteshkumar-lz7tu - 14.08.2022 11:07

thanks
Was a great help!

Ответить
@patrickmihalcea6480
@patrickmihalcea6480 - 31.03.2022 23:50

How can you be in computer science and not figure out the sound

Ответить
@vishmapdas7898
@vishmapdas7898 - 22.01.2022 08:13

why is the first for loop iterating from 0 to V-1?

Ответить
@priyatuts3115
@priyatuts3115 - 16.12.2021 18:56

why for(count 0 to V-1)..

Ответить
@rahulbaruri9381
@rahulbaruri9381 - 02.11.2021 16:51

Struggled a lot to understand what he was trying to explain. I think you need to work on the explanation with an understandable pronounciation and voice to get rid of 20% of dislikes.

Ответить
@vinaygurjar9771
@vinaygurjar9771 - 08.09.2021 21:08

Best Explanation... 🌟🌟🌟Just speak a little slow 😅🙏

Ответить
@sakshamp4488
@sakshamp4488 - 05.09.2021 15:45

not a good video as per gfg standard.

Ответить
@bwouy9525
@bwouy9525 - 22.07.2021 13:00

I checked my earphone twice before checking comment section lol😆

Ответить
@poorgang
@poorgang - 28.06.2021 09:48

It's like he is reading a paragraph, bad representation.

Ответить
@gobindapaul6727
@gobindapaul6727 - 01.06.2021 15:09

Method to teaching was really complex.

Ответить
@shivangshah9690
@shivangshah9690 - 08.05.2021 14:18

I watched the video twice, once with right earplug in right ear and next with right plug in left ear.

Ответить
@AkshayKumar-gp6rs
@AkshayKumar-gp6rs - 26.04.2021 08:22

Kitna bakwas samjhaya. Not good

Ответить
@oscarlee8999
@oscarlee8999 - 05.02.2021 09:18

One of the worst videos they have released, terrible production, bad explanation, overcomplicated code. Expected more from GfG. Would recommend you to learn elsewhere for this topic.

Ответить
@abhishekdasgupta1679
@abhishekdasgupta1679 - 20.10.2020 21:03

what does "min_index= -1" mean at the beginning of the code?

Ответить
@FitCoder
@FitCoder - 20.10.2020 14:45

Really like your way of teaching. I have also made video on this topic. Please go through it too.

Ответить
@bhanushah9849
@bhanushah9849 - 03.09.2020 08:53

expected gig to have better production

Ответить
@high-oncode7576
@high-oncode7576 - 31.08.2020 09:15

same as Dijkstra's right?

Ответить
@moose43h
@moose43h - 18.08.2020 13:39

thank god for the one who made the subs

Ответить
@anirudhdevpura2798
@anirudhdevpura2798 - 24.07.2020 11:16

very nice explanation.. thank you

Ответить
@vijayjha7949
@vijayjha7949 - 13.07.2020 12:59

Why the loop was running V-1 times?
In primsMst function!!

Ответить
@bobplan7922
@bobplan7922 - 24.04.2020 04:41

I think the code is not correct. The the vertice 3 will never get a parent. It should renew parent list just after it has refreshed mstSet, rather than in the second for loop.

Ответить
@omprakashsharma9767
@omprakashsharma9767 - 05.04.2020 13:30

this is dijkstra !!

Ответить
@hiranmoychowdhury5843
@hiranmoychowdhury5843 - 27.03.2020 00:30

what if, we got an directed graph??
like,

0 is the source and edge are,

0 1 10
1 2 2
2 3 3
3 1 4

Ответить
@makealemonade
@makealemonade - 02.12.2019 21:52

Now my right half of brain is smarter than the left half. Thank you.

Ответить
@uesugikenshin386
@uesugikenshin386 - 25.08.2019 19:59

first time didn't get any geekforgeeks explanation. T.T my head is hurting now.

Ответить
@toyeakingbola5616
@toyeakingbola5616 - 11.07.2019 16:33

Great work GeekforGeeks.. I want to suggest that in your subsequent video try to create a small space where you can type your words as you teach.. Though you try to make it transparent, it was still a distraction.. Well done bro and keep the good job going

Ответить
@rugvedbongale7651
@rugvedbongale7651 - 21.06.2019 05:35

awesome explanation ...thanks for the code

Ответить
@burhansancakl351
@burhansancakl351 - 20.06.2019 15:55

good thing the right part of my headphones wasnt totally dead

Ответить
@abhinavgupta6438
@abhinavgupta6438 - 05.06.2019 09:06

dude u even dont know ELOGV > V^2(becz E=V^2)

Ответить
@anuprakashsharma5518
@anuprakashsharma5518 - 18.05.2019 03:40

How do you blow into the microphone, when using a robot voice

Ответить
@riyarameshk6134
@riyarameshk6134 - 12.05.2019 21:53

The best!

Ответить
@raghavgupta1998
@raghavgupta1998 - 18.02.2019 22:11

Excellent ..
Marvellous ... Clears concept...

Ответить
@reassume4826
@reassume4826 - 08.02.2019 08:24

Thanks for making this vedio. The people who are complaining about your audio are the one who actually came here to focus on an unimportant thing.

Ответить
@alieser7770
@alieser7770 - 16.01.2019 23:45

i had to watch the video a second time because my left ear got mad at me saying that I let the right one learn but not him

Ответить
@sanjaysingh5007
@sanjaysingh5007 - 25.12.2018 16:06

Great video sir...

Ответить
@raghavbansal3871
@raghavbansal3871 - 12.12.2018 13:21

v2 and v7 mai se agar v1 loge toh answer 39 aayega.

Ответить
@rishikaushik8307
@rishikaushik8307 - 05.12.2018 02:26

Win+U > audio > Turn on mono audio
Edit: turn it off afterward or you won't have directional audio

Ответить
@amarjit296
@amarjit296 - 04.12.2018 18:00

I don't understand the video

Ответить
@apoorvgupta9680
@apoorvgupta9680 - 18.11.2018 15:47

Worst explaination didnt expected this from geeks for geeks

Ответить
@gurindermaan7862
@gurindermaan7862 - 28.09.2018 04:53

How do we apply the prims algorithm if the vertex are not digits but are alphabets??

Ответить
@shehrozeaslam702
@shehrozeaslam702 - 19.05.2018 21:17

Plz tell me the calculating time of prims algorithm which is implemented using SPQ (it is a special kind of priority queue)

Ответить
@debashishmishra9309
@debashishmishra9309 - 09.04.2018 20:48

My right ear gained a lot of knowledge today. The left is still a dumb piece of cartilage.

Ответить
@vedrankarajlic2052
@vedrankarajlic2052 - 31.03.2018 22:51

How can we choose vertex to start from?

Ответить
@abhishekkoranga1378
@abhishekkoranga1378 - 27.03.2018 18:41

bro work on the audio part of video...

Ответить
@INT_MAX
@INT_MAX - 12.03.2018 06:54

P O O I N L O O

Ответить
@elliotliu5648
@elliotliu5648 - 26.02.2018 15:49

What is the time complexity of implementing this algorithm with an adjacency list and priority_queue?

Ответить