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

Поділитися
Вставка
  • Опубліковано 12 вер 2024

КОМЕНТАРІ • 227

  • @fatimaaurangzeb7892
    @fatimaaurangzeb7892 2 роки тому +139

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

    • @walikhan138
      @walikhan138 2 роки тому +5

      I'm also😘😘💝

    • @asurstark
      @asurstark Рік тому +10

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

    • @techflip9842
      @techflip9842 Рік тому +21

      Pakistan mai bhi b tech hoti h kya

    • @akaafighter
      @akaafighter Рік тому +2

      ​@@techflip9842 😂 sayad

    • @sejalritishalakra9419
      @sejalritishalakra9419 Рік тому

      ​@@techflip9842 aalllaall

  • @shradha5155
    @shradha5155 3 роки тому +18

    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.

  • @nitusah1985
    @nitusah1985 7 місяців тому +4

    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.

  • @allwell8570
    @allwell8570 2 роки тому +10

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

  • @sumedhvichare1388
    @sumedhvichare1388 3 роки тому +20

    You're a legend

  • @satyamjha-codeindwala6666
    @satyamjha-codeindwala6666 Рік тому +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

  • @irsaliaqat1650
    @irsaliaqat1650 2 роки тому +153

    Here one night before exam any one here😂😂

  • @shravyasaradhizuckerberg
    @shravyasaradhizuckerberg 5 місяців тому +2

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

  • @emaankhan20
    @emaankhan20 5 місяців тому +2

    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).

  • @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.

  • @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 ❤️

  • @0neAboveAll
    @0neAboveAll 2 роки тому +3

    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 9 місяців тому

      haha copied from "genius" song🗿W

    • @0neAboveAll
      @0neAboveAll 9 місяців тому

      @@HarshMehta-oi9hn 😅🤭🤫😉

  • @nidhirohani
    @nidhirohani 3 місяці тому +1

    It's really irritating whenever I open a education based video the top comments are like "I'm hear one night before exam" , "kon kon exam se adha ganta phle dekh rha h " bhai ek to tu log padhta nhi padhta v h to phle comment karne m 5 mint nikal deta 🙄

  • @kasamadhu3509
    @kasamadhu3509 Рік тому +4

    1(test cases)
    3 3(vertices , edges)
    0 1 10
    1 2 -8
    0 2 5
    0(source)
    0 10 2 (dijkstra's output);
    it is giving the output.

  • @aniketmasram6500
    @aniketmasram6500 3 роки тому +3

    Thanks for making the algo understand easily ❤️

  • @nikitapandey6953
    @nikitapandey6953 4 місяці тому +5

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

  • @rekhapatil304
    @rekhapatil304 2 роки тому +1

    With short examples explained such a tricky concept. Thank you

  • @jasminesamantray4740
    @jasminesamantray4740 5 місяців тому +10

    Here one hour before exam 😂😂

  • @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

  • @hannanbaig7888
    @hannanbaig7888 7 місяців тому +1

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

  • @GIT_Somya
    @GIT_Somya 3 роки тому +2

    Thanks for making a video on this topic

  • @SatishSinghgter
    @SatishSinghgter 2 роки тому +2

    Love the way you teach...❤

  • @GA13059
    @GA13059 4 місяці тому

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

  • @darshanpatel_1611
    @darshanpatel_1611 Рік тому

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

  • @asraarfiza701
    @asraarfiza701 3 роки тому +2

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

  • @sanskritipanjwani9072
    @sanskritipanjwani9072 3 місяці тому

    Understood so easily, Thank you sir!

  • @fundunya4698
    @fundunya4698 Рік тому

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

  • @xyz-pc3tl
    @xyz-pc3tl 2 роки тому +1

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

  • @bijeshkumar8977
    @bijeshkumar8977 2 роки тому +7

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

  • @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 2 роки тому

      Same exact 2 hr pehle 😂

  • @umangkumar2005
    @umangkumar2005 Рік тому +1

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

  • @neerajmahapatra5239
    @neerajmahapatra5239 2 роки тому +5

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

  • @anonymous........
    @anonymous........ Рік тому +1

    Thank you 👍

  • @barkhajain7003
    @barkhajain7003 2 роки тому +2

    very well explained

  • @pawanmishra1942
    @pawanmishra1942 2 роки тому +1

    thankyou kal paper he or aaj ye sikh liya

  • @muh_hassu
    @muh_hassu Рік тому

    he deserves more subscribers

  • @unknown-x3l
    @unknown-x3l 11 місяців тому +1

    what is relax ?

  • @sayyedshoaibahmed8373
    @sayyedshoaibahmed8373 Рік тому

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

  • @storiesshubham4145
    @storiesshubham4145 8 місяців тому

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

  • @misbaullaskar7059
    @misbaullaskar7059 10 місяців тому +1

    Love from HKD

  • @Be__you
    @Be__you Рік тому

    Great way to teach 💕🙏

  • @bushranazir7978
    @bushranazir7978 2 роки тому +1

    Very informative knowledge Sir.

  • @mafiaop822
    @mafiaop822 2 роки тому +1

    THANK YOU VERY MUCH SIR 🤗🤗

  • @LearnTech2685
    @LearnTech2685 2 роки тому +1

    Thanks sir, but what happen if bidirectional graph given?

  • @dhruvilsoni4900
    @dhruvilsoni4900 3 роки тому +2

    Thank you sir for the videos !!

  • @whee_inmyhoney2071
    @whee_inmyhoney2071 3 роки тому +1

    Ty so much sir ❤🙏

  • @theayeshatkhan
    @theayeshatkhan 2 роки тому +1

    Well explained ❤

  • @Manish-ku-mar
    @Manish-ku-mar 2 роки тому

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

  • @souritranandy6270
    @souritranandy6270 2 місяці тому

    excellent explanation sir❤

  • @uditnarayan7149
    @uditnarayan7149 3 роки тому +1

    Sir g, tussi great ho 🙏🙏🙏🙏

  • @aneeshsharma1759
    @aneeshsharma1759 Рік тому

    Thanks a lot Sir!!

  • @yum-yum8067
    @yum-yum8067 Рік тому

    Bro.. U r the best👍💯

  • @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

  • @mystery1168
    @mystery1168 Рік тому +1

    Sending love & support from Pakistan ❤️

  • @continnum_radhe-radhe
    @continnum_radhe-radhe 9 місяців тому +1

    ❤❤❤

  • @ikramullah1718
    @ikramullah1718 3 роки тому

    You are good teacher ...

  • @anushguggi
    @anushguggi 3 роки тому

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

  • @NaveenKumar-pp1qs
    @NaveenKumar-pp1qs 2 роки тому +2

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

    • @raja17
      @raja17 2 роки тому

      Mistake I guess

    • @lazyleader7568
      @lazyleader7568 2 роки тому +2

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

  • @bmdailyvlogs
    @bmdailyvlogs 9 місяців тому

    thank you sir its so helpful☺

  • @harshnegi5811
    @harshnegi5811 3 роки тому +3

    Still no dislike!!! LEGEND

  • @md.basimali9413
    @md.basimali9413 10 місяців тому

    Thank you sir❤❤

  • @goutampal5521
    @goutampal5521 Рік тому

    Thank you ❤

  • @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..

  • @aliyakhan8271
    @aliyakhan8271 Рік тому

    I love you sir teaching

  • @ashishsinghthakuri6734
    @ashishsinghthakuri6734 Рік тому

    You r the best❤❤

  • @ashgirl1023
    @ashgirl1023 3 роки тому +1

    Can u plz make a video on guess jorden method?

  • @sameerahmed832
    @sameerahmed832 Рік тому

    Amazing

  • @sohaibahmad7210
    @sohaibahmad7210 Рік тому

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

  • @muhammadusama3207
    @muhammadusama3207 2 роки тому +3

    Is Bellman is only for negative vertices graph? Or can we also implement it on positive values graph?

  • @smilichoudary2014
    @smilichoudary2014 3 роки тому

    Thanks so much sir 🥰

  • @AZCreation997
    @AZCreation997 3 роки тому

    Thank you so much Sir,

  • @piyushtripathi5566
    @piyushtripathi5566 2 роки тому

    Thank you sir ❣️

  • @anirudhgupta7809
    @anirudhgupta7809 Рік тому

    Sir humlog c ke side se kyunhi gaye wala se 5 and -3 ajata🤔

  • @deepshishodia5878
    @deepshishodia5878 9 місяців тому

    Thank you sir🙏

  • @divyas3890
    @divyas3890 2 місяці тому

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

  • @99bssffdd
    @99bssffdd Рік тому

    Sir why -ve value is possible in Bellman ford
    i mean distance kbi -ve kese ho skta h

  • @mohitkaushik21
    @mohitkaushik21 Рік тому

    Thanks sir 😊

  • @deepak_Yadav-hw1r
    @deepak_Yadav-hw1r 2 роки тому

    Thank u sir ❤️

  • @faisaljamil4932
    @faisaljamil4932 3 роки тому

    Sir Please make a video on S-RAM Circuit. Not a single video is present here on youtube. We shall be obliged.

  • @shrutibhadiar5172
    @shrutibhadiar5172 3 роки тому +1

    ❤️❤️

  • @prajwalm.s7976
    @prajwalm.s7976 2 роки тому +1

    j is silent in Dijkstra

  • @hasantariq1252
    @hasantariq1252 8 місяців тому

    I am pkaitan 🇵🇰 sending love and suport

  • @shivamojha1046
    @shivamojha1046 Рік тому

    salute sir

  • @avaneeshj.damaraju175
    @avaneeshj.damaraju175 2 роки тому +1

    good

  • @L.S.Yadav.
    @L.S.Yadav. 8 місяців тому

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

  • @tanvikaushik1627
    @tanvikaushik1627 3 роки тому +1

    Can anyone share the telegram link of Gate 2022 on which assignment will be given to us

  • @osamaakbar8780
    @osamaakbar8780 2 роки тому

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

  • @pratapkumarsahu3135
    @pratapkumarsahu3135 3 місяці тому

    🎉

  • @animeshhazra3727
    @animeshhazra3727 Рік тому

    Nice

  • @heenagupta8311
    @heenagupta8311 Рік тому

    Sir path kese find krege. Min path value to aagai

  • @suindude8149
    @suindude8149 8 місяців тому

    Bellman ford is the simplest form of Dkasyra algo.

  • @TECHclause001
    @TECHclause001 3 роки тому

    Sir paid course kha pr milega aapka

  • @shoppingstyles7307
    @shoppingstyles7307 3 роки тому

    Can anyone tell me what is the best strategy to solve travelling salesman problem?

  • @bushranazir7978
    @bushranazir7978 2 роки тому

    May Allah bless uhh Sir.

  • @to__the__point
    @to__the__point Місяць тому

    Watching after 3 years of college!😄

  • @SohamChowdhury0808
    @SohamChowdhury0808 2 роки тому +1

    ❤️😃

  • @SachinKumar-zo4hc
    @SachinKumar-zo4hc 3 місяці тому

    sir please do embedded c programing Playlist

  • @fasiulhaq2366
    @fasiulhaq2366 Рік тому

    Love from Pakistan❤

  • @tanvikaushik1627
    @tanvikaushik1627 3 роки тому

    Sir plz share the telegram link in which you give the assignment of gate

  • @divyagupta543
    @divyagupta543 Рік тому

    ❤❤❤