L-4.13: Bellman Ford Algorithm | Dijkstra's Vs Bellman Ford | Single Source Shortest Path

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.พ. 2025

ความคิดเห็น • 258

  • @shravyasaradhipatel
    @shravyasaradhipatel 10 หลายเดือนก่อน +6

    Your explanation is crystal clear ... Thank you very much !!

  • @fatimaaurangzeb7892
    @fatimaaurangzeb7892 3 ปีที่แล้ว +162

    It is so easy to understand your lectures. Sending love and support from Pakistan!

    • @walikhan138
      @walikhan138 2 ปีที่แล้ว +5

      I'm also😘😘💝

    • @asurstark
      @asurstark 2 ปีที่แล้ว +11

      My answer is same nothing difference.... (Indian 🇮🇳 Version)

    • @techflip9842
      @techflip9842 ปีที่แล้ว +27

      Pakistan mai bhi b tech hoti h kya

    • @akaafighter
      @akaafighter ปีที่แล้ว +2

      ​@@techflip9842 😂 sayad

    • @mysterygupta610
      @mysterygupta610 ปีที่แล้ว +12

      Kewal love & support hi bhejna😂

  • @satyamjha-codeindwala6666
    @satyamjha-codeindwala6666 2 ปีที่แล้ว +14

    The Bellman-Ford algorithm is an algorithm that computes shortest paths from a single source vertex to all of the other vertices in a weighted graph. It is slower than Dijkstra's algorithm for the same problem, but more versatile, as it is capable of handling graphs in which some of the edge weights are negative numbers.
    0:00 - Working

  • @nitusah1985
    @nitusah1985 ปีที่แล้ว +6

    I have watched a lot of Videos related to Bellmanford. Just so you know, you don't have to relax all the vertices in 1st iteration and then you will start in 2nd iteration from the starting point, and again all the vertices relax till n-1 times. it really doesn't matter at the end in the results, but if you are coding it, it matters how our loop works. You explained in a good way, I not still not sure if both ways are right.

    • @reliefofcontentmusic7544
      @reliefofcontentmusic7544 2 หลายเดือนก่อน

      Jisne bi ye iteration word bnaya hai na. Usse jyada glt ajtk is duniya mai kise ne ni kiya 😂😂

  • @allwell8570
    @allwell8570 3 ปีที่แล้ว +12

    Sir your understanding clear.
    That's why your explanation also 🙏

  • @shradha5155
    @shradha5155 3 ปีที่แล้ว +22

    Thank u so much for all ur vidoes..specifically for DBMS. I request u do some videos on mobile computing..sir . U r a life savior.

  • @darshanpatel_1611
    @darshanpatel_1611 2 ปีที่แล้ว +1

    Arey sir kya fadu padhate ho aap 💪 dil ❤️ jeet liya apne to

  • @0neAboveAll
    @0neAboveAll 2 ปีที่แล้ว +4

    I have prepared all subjects by watching your videos u are genius. Sir you are my Einstein, my Newton, my Galileo and my Hawking. Thank you.

    • @HarshMehta-oi9hn
      @HarshMehta-oi9hn ปีที่แล้ว

      haha copied from "genius" song🗿W

    • @0neAboveAll
      @0neAboveAll ปีที่แล้ว

      @@HarshMehta-oi9hn 😅🤭🤫😉

  • @sumedhvichare1388
    @sumedhvichare1388 3 ปีที่แล้ว +20

    You're a legend

  • @rekhapatil304
    @rekhapatil304 2 ปีที่แล้ว +1

    With short examples explained such a tricky concept. Thank you

  • @aniketmasram6500
    @aniketmasram6500 3 ปีที่แล้ว +3

    Thanks for making the algo understand easily ❤️

  • @salmabano-mi4xb
    @salmabano-mi4xb 3 ปีที่แล้ว +17

    Hello varun.. u are extremely good teacher..can you pl explain about big O notations and how to calculate it for different programs.

  • @GA13059
    @GA13059 9 หลายเดือนก่อน

    Thank you so much sir for giving us this type of valuable content 🙏🏻

  • @SatishSinghSigma
    @SatishSinghSigma 3 ปีที่แล้ว +2

    Love the way you teach...❤

  • @anushkatripathi9376
    @anushkatripathi9376 หลายเดือนก่อน +1

    You are best teacher

  • @asraarfiza701
    @asraarfiza701 3 ปีที่แล้ว +2

    Thank you sir for this video😇😇🤩..... I was waiting for this one only

  • @GIT_Somya
    @GIT_Somya 3 ปีที่แล้ว +2

    Thanks for making a video on this topic

  • @fundunya4698
    @fundunya4698 2 ปีที่แล้ว

    Love you ppr h 10 bjy or mn bethi smjb rhi itna easy smjhtty hnn

  • @sanskritipanjwani9072
    @sanskritipanjwani9072 8 หลายเดือนก่อน

    Understood so easily, Thank you sir!

  • @emaankhan20
    @emaankhan20 10 หลายเดือนก่อน +4

    In 2nd example, in 1st iteration, c should have been updated to 30 instead of infinity. Not in the next step (because in Bellman Ford there are limitations on iteration, so we cannot skip steps).

  • @xyz-pc3tl
    @xyz-pc3tl 3 ปีที่แล้ว +1

    Thanks a lot sir for your all hardwork 🤟🤟🤟🤟

  • @pawanmishra1942
    @pawanmishra1942 2 ปีที่แล้ว +1

    thankyou kal paper he or aaj ye sikh liya

  • @bushranazir7978
    @bushranazir7978 2 ปีที่แล้ว +1

    Very informative knowledge Sir.

  • @divasensations2658
    @divasensations2658 3 ปีที่แล้ว +16

    You are life saviour sir, hats off to your teaching ❤️ . Lots of best wishes to you, keep emerging, keep making videos, and you'll get all love and support from us. Love and support from Kolkata ❤️

  • @barkhajain7003
    @barkhajain7003 2 ปีที่แล้ว +2

    very well explained

  • @anonymous........
    @anonymous........ 2 ปีที่แล้ว +1

    Thank you 👍

  • @souritranandy6270
    @souritranandy6270 7 หลายเดือนก่อน

    excellent explanation sir❤

  • @irsaliaqat1650
    @irsaliaqat1650 3 ปีที่แล้ว +284

    Here one night before exam any one here😂😂

    • @DeadPool-js8mj
      @DeadPool-js8mj 10 หลายเดือนก่อน +5

      Us bro us

    • @psbsff576
      @psbsff576 10 หลายเดือนก่อน

      How to you know

    • @appusadism4410
      @appusadism4410 10 หลายเดือนก่อน +6

      1 hr before exam 😅

    • @chaudhrysamtech7269
      @chaudhrysamtech7269 9 หลายเดือนก่อน +5

      3 hours before university exam

    • @s-rf7zc
      @s-rf7zc 9 หลายเดือนก่อน +1

      Everyone

  • @sayyedshoaibahmed8373
    @sayyedshoaibahmed8373 ปีที่แล้ว

    Thanks a lot for this video you really make it easy for me to understand bellman ford ❤

  • @uditnarayan7149
    @uditnarayan7149 3 ปีที่แล้ว +1

    Sir g, tussi great ho 🙏🙏🙏🙏

  • @mafiaop822
    @mafiaop822 3 ปีที่แล้ว +1

    THANK YOU VERY MUCH SIR 🤗🤗

  • @onmywaytopassion5382
    @onmywaytopassion5382 3 ปีที่แล้ว +6

    Thanku bro, exam se do ghante pehle dekh rhi hu, very helpful

    • @puc2792
      @puc2792 3 ปีที่แล้ว +1

      Mai bhi viva se ek din pehle Dekh rha hu 😂

    • @coders8180
      @coders8180 3 ปีที่แล้ว +2

      Sr bhi bol skti thi i think ki mtlb everytime bhaukal n ldkiyo wala showoff hr jgh jruri to ni hai

    • @rehanahmad6699
      @rehanahmad6699 3 ปีที่แล้ว

      Same exact 2 hr pehle 😂

  • @muh_hassu
    @muh_hassu ปีที่แล้ว

    he deserves more subscribers

  • @storiesshubham4145
    @storiesshubham4145 ปีที่แล้ว

    Every time I watch it, every time I wanna give it a like

  • @neerajmahapatra5239
    @neerajmahapatra5239 2 ปีที่แล้ว +5

    Even my college professor is studying from your videos. Same explanation same example😅😅

  • @ikramullah1718
    @ikramullah1718 3 ปีที่แล้ว

    You are good teacher ...

  • @aliyakhan8271
    @aliyakhan8271 2 ปีที่แล้ว

    I love you sir teaching

  • @whee_inmyhoney2071
    @whee_inmyhoney2071 3 ปีที่แล้ว +1

    Ty so much sir ❤🙏

  • @theayeshatkhan
    @theayeshatkhan 2 ปีที่แล้ว +1

    Well explained ❤

  • @anushguggi
    @anushguggi 3 ปีที่แล้ว

    You are the best !! Very noble !! Lot of love ❤
    Want to meet you once I clear my NET!!

  • @bmdailyvlogs
    @bmdailyvlogs ปีที่แล้ว

    thank you sir its so helpful☺

  • @mystery1168
    @mystery1168 2 ปีที่แล้ว +1

    Sending love & support from Pakistan ❤️

  • @ashishsinghthakuri6734
    @ashishsinghthakuri6734 2 ปีที่แล้ว

    You r the best❤❤

  • @jasminesamantray4740
    @jasminesamantray4740 10 หลายเดือนก่อน +10

    Here one hour before exam 😂😂

    • @rohitrathod8210
      @rohitrathod8210 10 หลายเดือนก่อน

      MU UNIVERSITY 😂😂😂

    • @VikasKumar-zu9ju
      @VikasKumar-zu9ju 8 หลายเดือนก่อน

      Raat main ho raha hai kya paper 😂

  • @Laskar_king
    @Laskar_king ปีที่แล้ว +1

    Love from HKD

  • @Be__you
    @Be__you ปีที่แล้ว

    Great way to teach 💕🙏

  • @sameerahmed832
    @sameerahmed832 ปีที่แล้ว

    Amazing

  • @yum-yum8067
    @yum-yum8067 2 ปีที่แล้ว

    Bro.. U r the best👍💯

  • @deepshishodia5878
    @deepshishodia5878 ปีที่แล้ว

    Thank you sir🙏

  • @md.basimali9413
    @md.basimali9413 ปีที่แล้ว

    Thank you sir❤❤

  • @dhruvilsoni4900
    @dhruvilsoni4900 3 ปีที่แล้ว +2

    Thank you sir for the videos !!

  • @goutampal5521
    @goutampal5521 ปีที่แล้ว

    Thank you ❤

  • @aneeshsharma1759
    @aneeshsharma1759 ปีที่แล้ว

    Thanks a lot Sir!!

  • @mohitkaushik21
    @mohitkaushik21 ปีที่แล้ว

    Thanks sir 😊

  • @Manish-ku-mar
    @Manish-ku-mar 3 ปีที่แล้ว

    please make a video on ford fulkerson algorithm for max flow , all your videos are great help...

  • @R.bhatti-2125
    @R.bhatti-2125 2 หลายเดือนก่อน +8

    Legends on exam day 😂

  • @bijeshkumar8977
    @bijeshkumar8977 3 ปีที่แล้ว +8

    Sir kitne simple hain T-shirt ka bhi batam lga kr rkhte hain 🙂🙏

  • @piyushtripathi5566
    @piyushtripathi5566 3 ปีที่แล้ว

    Thank you sir ❣️

  • @L.S.Yadav.
    @L.S.Yadav. ปีที่แล้ว

    Thank you sir
    Pta nhi aap nhi padhate to hamara kya hota 🙏🙏

  • @hannanbaig7888
    @hannanbaig7888 ปีที่แล้ว +1

    At 8:56, how do you do 0+2? Shouldnt it be 0+5?

  • @AZCreation997
    @AZCreation997 3 ปีที่แล้ว

    Thank you so much Sir,

  • @dipesh1401
    @dipesh1401 2 ปีที่แล้ว +2

    I think first example is wrong.Dijkstras algo may or may not be able to find shortest path in -ve edge graphs.And in your example Dijkstras algo will work perfectly. here is the output ::---
    (null refers to source)
    Min distance:-->0
    A-null
    Min distance:-->10
    B-A-null
    Min distance:-->2
    C-B-A-null

  • @deepak_Yadav-hw1r
    @deepak_Yadav-hw1r 2 ปีที่แล้ว

    Thank u sir ❤️

  • @umangkumar2005
    @umangkumar2005 2 ปีที่แล้ว +1

    in your question there is negative weight cycle so we can't using bellman ford cycle

  • @harshnegi5811
    @harshnegi5811 3 ปีที่แล้ว +3

    Still no dislike!!! LEGEND

  • @MrAdilTalk
    @MrAdilTalk 3 ปีที่แล้ว

    Thanks sir for this

  • @shivamojha1046
    @shivamojha1046 2 ปีที่แล้ว

    salute sir

  • @avaneeshj.damaraju175
    @avaneeshj.damaraju175 2 ปีที่แล้ว +1

    good

  • @continnum_radhe-radhe
    @continnum_radhe-radhe ปีที่แล้ว +1

    ❤❤❤

  • @sohaibahmad7210
    @sohaibahmad7210 ปีที่แล้ว

    12:11 why are we taking value of b distance as infinity when it has been updated to 10

  • @supratim009
    @supratim009 7 หลายเดือนก่อน +1

    It's 8:43 exam on 10

  • @prajwalsingh3702
    @prajwalsingh3702 22 วันที่ผ่านมา +2

    Bbd attendance... kal ke liye

  • @animeshhazra3727
    @animeshhazra3727 ปีที่แล้ว

    Nice

  • @hasantariq1252
    @hasantariq1252 ปีที่แล้ว

    I am pkaitan 🇵🇰 sending love and suport

  • @mugheesismail264
    @mugheesismail264 2 ปีที่แล้ว

    Start wathing at 1:30, save time

  • @NaveenKumar-pp1qs
    @NaveenKumar-pp1qs 3 ปีที่แล้ว +2

    2:14 why can't we relax B, because A->C->B=5-8=-3?

    • @raja17
      @raja17 3 ปีที่แล้ว

      Mistake I guess

    • @lazyleader7568
      @lazyleader7568 3 ปีที่แล้ว +2

      Directed graph.... there is no path from c to b

  • @adityakumarchahal2852
    @adityakumarchahal2852 ปีที่แล้ว

    0:43
    Bilkul Sir subscribers bohot jruri hain😂😂

  • @shrutibhadiar5172
    @shrutibhadiar5172 3 ปีที่แล้ว +1

    ❤️❤️

  • @to__the__point
    @to__the__point 6 หลายเดือนก่อน

    Watching after 3 years of college!😄

  • @bushranazir7978
    @bushranazir7978 2 ปีที่แล้ว

    May Allah bless uhh Sir.

  • @divyagupta543
    @divyagupta543 2 ปีที่แล้ว

    ❤❤❤

  • @ashgirl1023
    @ashgirl1023 3 ปีที่แล้ว +1

    Can u plz make a video on guess jorden method?

  • @owaiskhan2977
    @owaiskhan2977 2 ปีที่แล้ว

    nice

  • @fasiulhaq2366
    @fasiulhaq2366 2 ปีที่แล้ว

    Love from Pakistan❤

  • @ipshitachakraborty4157
    @ipshitachakraborty4157 2 ปีที่แล้ว +1

    Sir u r excellent. But i am want to know how i can prepare for gate. Like how much time to be given on these topics

  • @SohamChowdhury0808
    @SohamChowdhury0808 2 ปีที่แล้ว +1

    ❤️😃

  • @alishbamumtaz2310
    @alishbamumtaz2310 7 หลายเดือนก่อน

    Why did my sir taught the exact two questions in class?😂 Ig he even revised his concepts though yr lecture 🤭

  • @LearnTech2685
    @LearnTech2685 2 ปีที่แล้ว +1

    Thanks sir, but what happen if bidirectional graph given?

  • @pratapkumarsahu3135
    @pratapkumarsahu3135 8 หลายเดือนก่อน

    🎉

  • @lazyweirdo4419
    @lazyweirdo4419 2 หลายเดือนก่อน +1

    Here on the morning of the exam 😅

  • @unknown-x3l
    @unknown-x3l ปีที่แล้ว +1

    what is relax ?

  • @manishpailwar3886
    @manishpailwar3886 8 หลายเดือนก่อน

    Watching this video 2 hours before the exam.

  • @nikitapandey6953
    @nikitapandey6953 9 หลายเดือนก่อน +6

    why we get exams, here at 12 at night, and tomorrow is my exam😢

    • @indfaith6004
      @indfaith6004 8 หลายเดือนก่อน +1

      I am at 2 30 am broo

    • @anshulanand02
      @anshulanand02 2 หลายเดือนก่อน

      00:35 A.M. 😢

  • @SachinKumar-zo4hc
    @SachinKumar-zo4hc 8 หลายเดือนก่อน

    sir please do embedded c programing Playlist

  • @Dhananjay_katre
    @Dhananjay_katre 9 หลายเดือนก่อน

    Today my exam at 1:00 pm
    I'm here at 12:18 pm 😅

  • @divyas3890
    @divyas3890 7 หลายเดือนก่อน

    What if their is no direction with negative weight it is solvable or not

  • @harshulk05
    @harshulk05 หลายเดือนก่อน

    done

  • @simplecreation5108
    @simplecreation5108 2 ปีที่แล้ว

    Sir..when we let the distance of B to C ....how we know that it's gonna be nagetive value....actually my doubt is distance should be positive .so I can't understand sir..

  • @osamaakbar8780
    @osamaakbar8780 2 ปีที่แล้ว

    How to relax in 3rd step from 0+2.... because edge value is 5. You are said .......

  • @lord_yzal
    @lord_yzal 2 ปีที่แล้ว