L-5.8: Floyd Warshall Working with example | All Pair Shortest Path Algorithm

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 มิ.ย. 2024
  • 👉Subscribe to our new channel: / @varunainashots
    0:00 - Floyd Warshall Working
    1:07 - Distance Metrix (D0)
    3:07 - Distance Metrix (D1)
    9:40 - Distance Metrix (D2)
    14:25 - Distance Metrix (D3)
    21:20 - Distance Metrix (D4)
    ►Design and Analysis of algorithms (DAA) (Complete Playlist):
    • Design and Analysis of...
    Other subject-wise playlist Links:
    --------------------------------------------------------------------------------------------------------------------------------------
    ► Operating System :
    • Operating System (Comp...
    ►Database Management System:
    • DBMS (Database Managem...
    ► Theory of Computation
    • TOC(Theory of Computat...
    ►Artificial Intelligence:
    • Artificial Intelligenc...
    ►Computer Networks (Complete Playlist):
    • Computer Networks (Com...
    ►Computer Architecture (Complete Playlist):
    • Computer Organization ...
    ►Structured Query Language (SQL):
    • Structured Query Langu...
    ►Discrete Mathematics:
    • Discrete Mathematics
    ►Compiler Design:
    • Compiler Design (Compl...
    ►Number System:
    • Number system
    ►Cloud Computing & BIG Data:
    • Cloud Computing & BIG ...
    ►Software Engineering:
    • Software Engineering
    ►Data Structure:
    • Data Structure
    ►Graph Theory:
    • Graph Theory
    ►Programming in C:
    • C Programming
    ►Digital Logic:
    • Digital Logic (Complet...
    ---------------------------------------------------------------------------------------------------------------------------------------
    Our social media Links:
    ► Subscribe to us on TH-cam: / gatesmashers
    ►Subscribe to our new channel: / @varunainashots
    ► Like our page on Facebook: / gatesmashers
    ► Follow us on Instagram: / gate.smashers
    ► Follow us on Instagram: / varunainashots
    ► Follow us on Telegram: t.me/gatesmashersofficial
    ► Follow us on Threads: www.threads.net/@gate.smashers
    --------------------------------------------------------------------------------------------------------------------------------------
    ►For Any Query, Suggestion or notes contribution:
    Email us at: gatesmashers2018@gmail.com

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

  • @grindxignite
    @grindxignite ปีที่แล้ว +60

    You can also use the previous table for the minimum weight here. for example in D4 if we want [3:2] we can search for values of [3:4]+[4:2] from previous table(i.e D3)

    • @pramantomar822
      @pramantomar822 ปีที่แล้ว +9

      This would be more easy, thank u

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

      yes that's what you should do , suppose you had 6-7 edges then his method will take forever

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

      true

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

      yosh good way to tackle this problem. thnx bro!!!

    • @mahhingaminggate5028
      @mahhingaminggate5028 8 ชั่วโมงที่ผ่านมา

      Indeed a Very fast way , but Might not always give the minimum result in everycase
      e.g in the same D4 matrix , if we want to go from 1:3 via 4
      Then 3:4 + 4:3 of d3 gives 5+3=8 which is not the shortest path , but 3 is the shortest path

  • @rafsanmaruf2066
    @rafsanmaruf2066 ปีที่แล้ว +17

    Your explaination technique and expression is very cool and fantastic. I am using your style to explain anything. Thank you.

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

    Now by your teaching, i am gaining confidence in this subject 🙅🏻‍♂️🥋

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

    sir like literally you are the greatest, Tomorrow is my discrete math exam and i've already done all the topics except this one, so sir once again thank you thank you so much, Teachers like you should be in every single college in india, 😭❣❤

    • @manoz.881
      @manoz.881 10 หลายเดือนก่อน +1

      same like mine thank you sir

    • @user-kg4dj7yy8x
      @user-kg4dj7yy8x 5 หลายเดือนก่อน

      Mujhe samjh ni aaya ya samjhya sahi ni h .....🙄 Y topic clear ni hoga iska matlab mera bcz m to aap pr hi depend hu

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

    Came with zero knowledge, leaving with confidence and proper explanation!! Thank you sir

  • @xyz-pc3tl
    @xyz-pc3tl 2 ปีที่แล้ว +6

    Thanks a lot sir for your all hardwork 🙏🙏🙏

  • @Mahin067
    @Mahin067 27 วันที่ผ่านมา +1

    If you didn't exist, I wouldn't have passed my BSc i Engineering. You're making this world a better place, sir. Love from Bangladesh.

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

    U are the best teacher thank u so very much God bless u sir

  • @codexcelai.
    @codexcelai. 2 ปีที่แล้ว +12

    All my doubts are cleared by your video you are best teach thank you so much☺❤

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

      use doubt nahi bolte aapko topic hi nahi aata tha na

  • @fxaawan1640
    @fxaawan1640 ปีที่แล้ว +14

    DIVIDED BY BORDERS
    UNITED BY TH-cam
    Lots of respect and
    LOVE FROM PAKISTAN❤❤ I saw many videos of u n you explained each n everything very well specially that analysis of algorithm's topic. keep doing this always n God bless u always😊😊
    FUN FACT: YOU RESEMBLE CRICKETER HARDIK PANDYA😉 😀

    • @RB-rocks
      @RB-rocks 11 หลายเดือนก่อน +2

      hardik or KL rahul?? lol

  • @MrAditya-xm1pn
    @MrAditya-xm1pn ปีที่แล้ว +1

    Thanks sir for amazing study experince.
    Literally nailed it SIR.

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

    Great sir ...all concepts clear...

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

    Person is God Literally watch his videos as last minute and I bet your topics will be covered as quick as a wink.

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

      God
      یعنی خدا
      مسلمان اللہ تعالیٰ کے سوا کسی کو بھی خدا نہیں کہتے میرے بھائی
      پلیز یہ کمنٹ delete کردیں پلیز
      Just for correcting you dear brother۔۔۔I'm not criticizing you۔۔۔pleasedon't mind
      And if you want to see explainatiion then
      یہ کتاب دیکھ لیں ایک بار پلیز بھائی 🙏🏻👇🏻
      "کفریہ کلمات کے بارے میں سوال جواب"
      شکریہ بھائی

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

      @@Sayyed_Sana you are right.

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

      ​@@Sayyed_Sana tum bewkoof hi rahoge uska matlab tha ki sir ne itna accha padaya ki esa laga iswar ne padaya h. Tumari buddhi sahi me ghutne me h

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

      There is no god except Allah ❤️

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

      I testify that there is no God except ALLAH and Prophet Muhammad SAW is His last messenger.

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

    Thankyou so much sir for such clearing concept videos that is also at free of cost🙏🙏

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

    Perfectly explained👌.

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

    . Excellent class...One suggestion for improving speed. while manual calculation.It will be easy to observe the just previous matrix corresponding cell values instead of scanning the graph each time for better path. Already the min possible values between 2 nodes are updated and entered in the previous matrix. Therefor no need to again get the values through complete possible options from the graph.

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

      Yes mam u r right

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

      I was thinking about it before seeing the comment. But I was not sure whether will that work every time or not! Thank you ma'am for clearing my doubt.

    • @MANISHKUMAR-fr8eh
      @MANISHKUMAR-fr8eh 2 ปีที่แล้ว +3

      Yes you are right, always we have to see previous matrix instead of seeing graph everytime.

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

      Very true. It actually defeats the purpose of algorithm.

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

      Indeed that's basically the essence of the algorithm. Avoiding re-visit to already calculated answer

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

    Super,mindblowing,fantastic.

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

    Omg thanku so so much for explaining this now my concept iss Soo clear by watching this❤️

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

    Thank you so much sir ji what great lecture❤❤ you had served us thank you again for this kind of important knowledge .

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

    Thanks you 🙏 sir your explanation is fantastic..

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

    Great as always 🙂

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

    Thank you sir ❤️
    Very easy explanation

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

    Today is my cbsc exam and I can complete this unfinished chapter thanks to you. Thanks sir❤

  • @Neha-ul2jt
    @Neha-ul2jt 2 ปีที่แล้ว +3

    Thanku sir ......
    All concept clear💯🙂👍

  • @ksingh8831
    @ksingh8831 11 หลายเดือนก่อน +11

    Tomorrow is my exam 😂 and iam coming for the study

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

      Study English first😂

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

      Mera bhi h Kal ka 😂😂😂😂😂

  • @vikashdagar7225
    @vikashdagar7225 หลายเดือนก่อน +26

    Today is my final exam DAA

    • @raiderpsk9690
      @raiderpsk9690 19 วันที่ผ่านมา +1

      Which is you university can you give question paper

    • @niharikakalita6215
      @niharikakalita6215 13 วันที่ผ่านมา

      Girl same

    • @saurojitdas4793
      @saurojitdas4793 6 วันที่ผ่านมา

      Tomorrow is my exam

    • @subhadipgoswami6329
      @subhadipgoswami6329 6 วันที่ผ่านมา

      ​@@saurojitdas4793also me

    • @RAHUL-dg3rl
      @RAHUL-dg3rl 6 วันที่ผ่านมา +1

      makaut 😅

  • @Divya-bp8vy
    @Divya-bp8vy ปีที่แล้ว +1

    I have no words for thanking you sir

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

      Maybe just say "THANK YOU". That ought to summarise it.

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

    Thank you sir really good explanation

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

    best explanation.. :) Thank you sir

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

    Thank you Sir ❤️

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

    Path bangaya hai sir mere dimag tak ❤

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

    TYSM FOR THIS !

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

    Thank you so much I have exam today and this help me alot 💕

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

    you are gold for our backbenchers

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

    Thank you ❤️

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

    beautiful explanation

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

    you are the great bro .life savior

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

    Marvellous xplaination salute to sir

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

    For 2 years straight I didn't have courage to solve floyad warshall and TSP but coz this video I am confident

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

    Thank you sir , All concept clear 😊

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

    Thank you sir for explaining so nicely!
    Have my exam tomorrow 🙏🙏

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

    Thank you again sir❤️

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

    Excellent 💯

  • @33_it_divyadeepbansal56
    @33_it_divyadeepbansal56 ปีที่แล้ว

    wonderfully taught

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

    thank you so much SIR❤

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

    Awesome sir g bohat zaberdast ap smjaty hy😇

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

    ur all videos are excellent thank you sir love from Pakistan

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

    Thnq so much... Itna atche se samjhane ke liye...

  • @BhagatBhutale..
    @BhagatBhutale.. 3 หลายเดือนก่อน +1

    Video is useful 👍

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

    best one sir thank you

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

    Great learning

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

    Thanks sir 😁💛

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

    too good Sir!
    👏

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

    Sir very helpful vedio lecture 🙏

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

    Thankyou very much sir

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

    Thank you sir..

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

    Thank you sir😊

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

    Thanks 👍😊

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

    Great way of explainning

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

    This is teacher very very Good sir
    I am very very undersand sir
    Thank you so much sir

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

    sir in D1 matrix , the 4-3 = 9 || but shortest path is 4-2 & 2-3 = 2+1 = 3... which one is correct?

    • @deepak.k9415
      @deepak.k9415 ปีที่แล้ว +3

      in D1 we have to use only the 1st vertex(1), we cant use 2

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

    Thank you so much sir

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

    Best teacher in the history of computer science

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

    Very very helpful.

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

    Thank you sir

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

    Thank you so much sir bahut aacha samjaya 🙏🙏

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

    Thank you

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

    Great ❤️🔥🙏👍

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

    Maza aa gaya re baba 😂

  • @Sonu-jx6jl
    @Sonu-jx6jl 2 ปีที่แล้ว +1

    Thanks sir ❤

  • @nu...123
    @nu...123 วันที่ผ่านมา

    Thank you sir ❤

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

    thank you sir :-)

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

    Thank you so much sir🫡

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

    Ur best sir🔥

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

    MySQL ka couse ❤️❤️❤️. I like your explanation along with example

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

    You are star sir 💯

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

    Thanks.💕💕

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

    very best teaching way

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

    Great great sir from bangladesh. Sare doubt clear hogaye.

  • @AadeshingaleOfficial-zl5fd
    @AadeshingaleOfficial-zl5fd หลายเดือนก่อน +1

    Nice Sir 😊

  • @user-ol3gs7nf2v
    @user-ol3gs7nf2v 24 วันที่ผ่านมา

    Thank you sirr 😊

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

    Thanks.

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

    thanks 👍

  • @saptarshichattopadhyay8234
    @saptarshichattopadhyay8234 11 วันที่ผ่านมา

    Thanks ❤❤❤❤❤

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

    thank u sir

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

    Semester saver....🔥

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

    Thnq so much sir 🙏

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

    Sir,can you please explain why you removed or delete previous video and in which topic it is based on and is it important or not?

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

    Nice explaination

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

    thanku sir

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

    thank you sir 🙏🙏🙏

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

    You are besttt 🤩

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

    gzb yrrr best of best

  • @MrKP-nm3qy
    @MrKP-nm3qy ปีที่แล้ว +1

    Genuine Guru ji 🌝🌝

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

    JazakAllah (May Allah reward you)

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

    thnx sir ji

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

    13:28 for(4-1)we can also go through (4-3)and (3-1)that is 9+4 which is less than infinity so why u go through ?(4-2)and (2-1)??

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

    Very nice explanation ❤

  • @Shivanisharma-mi7gy
    @Shivanisharma-mi7gy 2 ปีที่แล้ว +3

    I am very happy by seeing your all videos i have literally feel you are god of cs❤️😁

  • @NaveedAli-jh3ix
    @NaveedAli-jh3ix 8 หลายเดือนก่อน

    Nice