Bellman Ford Algorithm to Calculate Shortest Paths Example

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 พ.ย. 2024

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

  • @biswajeetsethi7689
    @biswajeetsethi7689 5 ปีที่แล้ว +20

    Sir I guess there is some confusion.. What I understood from Coreman.. negative weight cycle does not mean cycle having any edge of negative weight... Secondly dist(z) should be -2 as pointed by others.

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

    He is right..negative edge cycle should not consider.. But negative Weight can be considered

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

    very helpful lecture.............thanks

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

    """"""" Among the edges relaxed in the ith
    iteration, for i = 1, 2,..., k, is (vi-1, vi). By the path-relaxation property, therefore, d[v] = d[vk] =
    δ(s, vk) = δ(s, v)." """"""though the lecture has some mistakes .. but my biggest doubt got cleared from your example.. I understood the meaning of the line.

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

    Thank you Sir.
    In the 4 step (TZ) Will be -2.
    Wrong or Right??

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

      Yup. At last, Vertex 'z' should have weight (-2). Moreover, there is no negative edge cycle in this graph.

    • @SabirAnsari-nd8cv
      @SabirAnsari-nd8cv 6 ปีที่แล้ว

      You right brother...

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

    Sir, I think you are wrong at one point. At 10:40 sec of your video, you told that this graph has a negative edge-cycle. But I couldn't find any negative edge-cycle in this graph. Moreover, in the last iteration the vertex 'z' should have weight (-2), but you have written only 2 here!

  • @surbhijain5427
    @surbhijain5427 5 ปีที่แล้ว +4

    In last iteration, he considered t-z edge but did not update weight of z vertex . Z vertex distance should be -2 (2-4= -2) .

  • @SabirAnsari-nd8cv
    @SabirAnsari-nd8cv 6 ปีที่แล้ว +4

    Sorry ,sir third pass me z ki value -2 ayega ..I think..
    ..plz check after that ....

  • @sk.moniruzzaman7937
    @sk.moniruzzaman7937 6 ปีที่แล้ว

    Thank you. I enjoyed the playlist :)

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

    THANKS G AREGAMTSU MATASU

  • @Engineer_girl_desiger
    @Engineer_girl_desiger 4 ปีที่แล้ว

    Sir, I have a question.use bellman ford algorithm to find the shortest path between node u and z . Same figure on ur board. Plz explain me detail sir .plz sir bcz it's my assignment question.

  • @VivekKumar-on8vz
    @VivekKumar-on8vz 6 ปีที่แล้ว +1

    u are giving wrong info about negative weight cycle. negative weight cycle exists when the total weight of a cycle is a negative number. plz correct it

  • @ryt2prateek
    @ryt2prateek 6 ปีที่แล้ว

    That is not a negative weight cycle, sum total will be +3

  • @AmarKumar-vo2bv
    @AmarKumar-vo2bv 4 ปีที่แล้ว

    last iteration wil be 0 2 4 -2 7 please check4

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

    The instructor seems to be a Bengali, not sure though whether he is from Bangladesh or West Bengal. Anyway, there is NO NEGATIVE CYCLE in this graph, so what you're saying at 10:38 is wrong. Negative cycle means SUM of ALL the edges ON the cycle is NEGATIVE; just having a negative edge on a cycle does not make it negative cycle; the sum needs to be negative!

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

    Wrong solution at last iteration I think

  • @karanrandhir9865
    @karanrandhir9865 4 ปีที่แล้ว

    Explaination regarding negetive edge cycle is wrong.

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

    Drippppp

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

    Alguuu...rhythm. Lets tuuk about thisuu alguu...rhythm.
    Just kidding.

    • @AKHILDS-j3v
      @AKHILDS-j3v 5 ปีที่แล้ว +1

      Poda myre....nee vann padippikk....