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

  Рет қаралды 645,635

Gate Smashers

Gate Smashers

Күн бұрын

Пікірлер: 283
@grindxignite
@grindxignite Жыл бұрын
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 Жыл бұрын
This would be more easy, thank u
@dailydoseofmath
@dailydoseofmath Жыл бұрын
yes that's what you should do , suppose you had 6-7 edges then his method will take forever
@DineshKumar-nm2jh
@DineshKumar-nm2jh Жыл бұрын
true
@ayushiyadav1
@ayushiyadav1 4 ай бұрын
yosh good way to tackle this problem. thnx bro!!!
@mahhingaminggate5028
@mahhingaminggate5028 3 ай бұрын
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 Жыл бұрын
Your explaination technique and expression is very cool and fantastic. I am using your style to explain anything. Thank you.
@alphagam3r933
@alphagam3r933 Жыл бұрын
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 Жыл бұрын
same like mine thank you sir
@Bazriya-p1f
@Bazriya-p1f 8 ай бұрын
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 5 ай бұрын
Came with zero knowledge, leaving with confidence and proper explanation!! Thank you sir
@pranjalck
@pranjalck 2 жыл бұрын
Now by your teaching, i am gaining confidence in this subject 🙅🏻‍♂️🥋
@mujaffarbhati4750
@mujaffarbhati4750 2 жыл бұрын
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 жыл бұрын
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 2 жыл бұрын
@@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 Жыл бұрын
There is no god except Allah ❤️
@rameenzubair4787
@rameenzubair4787 Жыл бұрын
I testify that there is no God except ALLAH and Prophet Muhammad SAW is His last messenger.
@codexcelai.
@codexcelai. 2 жыл бұрын
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 2 жыл бұрын
DIVIDED BY BORDERS UNITED BY KZbin 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 Жыл бұрын
hardik or KL rahul?? lol
@anjanadevi8070
@anjanadevi8070 3 жыл бұрын
. 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 жыл бұрын
Yes you are right, always we have to see previous matrix instead of seeing graph everytime.
@chagantisubhash
@chagantisubhash 2 жыл бұрын
Very true. It actually defeats the purpose of algorithm.
@manthankurhekar3752
@manthankurhekar3752 Жыл бұрын
Indeed that's basically the essence of the algorithm. Avoiding re-visit to already calculated answer
@vikashdagar7225
@vikashdagar7225 4 ай бұрын
Today is my final exam DAA
@raiderpsk9690
@raiderpsk9690 4 ай бұрын
Which is you university can you give question paper
@niharikakalita6215
@niharikakalita6215 3 ай бұрын
Girl same
@saurojitdas4793
@saurojitdas4793 3 ай бұрын
Tomorrow is my exam
@subhadipgoswami6329
@subhadipgoswami6329 3 ай бұрын
​@@saurojitdas4793also me
@RAHUL-dg3rl
@RAHUL-dg3rl 3 ай бұрын
makaut 😅
@shanzyjasmine6358
@shanzyjasmine6358 2 жыл бұрын
U are the best teacher thank u so very much God bless u sir
@nirikshap.n9234
@nirikshap.n9234 22 күн бұрын
Why are you so good at clearing all the concepts easily😭😭❤literally you saved me😻
@Mahin067
@Mahin067 4 ай бұрын
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.
@xyz-pc3tl
@xyz-pc3tl 2 жыл бұрын
Thanks a lot sir for your all hardwork 🙏🙏🙏
@priyankabansode8702
@priyankabansode8702 3 жыл бұрын
Thank you sir , All concept clear 😊
@kushal800
@kushal800 2 жыл бұрын
For 2 years straight I didn't have courage to solve floyad warshall and TSP but coz this video I am confident
@Abdul_Rahman11
@Abdul_Rahman11 Жыл бұрын
Thanks you 🙏 sir your explanation is fantastic..
@jishnudeeproy8778
@jishnudeeproy8778 2 жыл бұрын
Thank you sir for explaining so nicely! Have my exam tomorrow 🙏🙏
@masteradvisor594
@masteradvisor594 Жыл бұрын
did u pass it?
@MrAditya-xm1pn
@MrAditya-xm1pn Жыл бұрын
Thanks sir for amazing study experince. Literally nailed it SIR.
@bobitadutta9954
@bobitadutta9954 2 жыл бұрын
Thnq so much... Itna atche se samjhane ke liye...
@mehnaz_anwar_
@mehnaz_anwar_ 2 жыл бұрын
Omg thanku so so much for explaining this now my concept iss Soo clear by watching this❤️
@CrickyFizzz
@CrickyFizzz Жыл бұрын
thank you so much SIR❤
@ommaithani4455
@ommaithani4455 2 жыл бұрын
Perfectly explained👌.
@omyele9315
@omyele9315 3 жыл бұрын
MySQL ka couse ❤️❤️❤️. I like your explanation along with example
@arslankiani1
@arslankiani1 2 жыл бұрын
ur all videos are excellent thank you sir love from Pakistan
@indrajeetprajapati720
@indrajeetprajapati720 2 жыл бұрын
This is teacher very very Good sir I am very very undersand sir Thank you so much sir
@Divya-bp8vy
@Divya-bp8vy Жыл бұрын
I have no words for thanking you sir ☺
@ayushpanwar3536
@ayushpanwar3536 Жыл бұрын
Maybe just say "THANK YOU". That ought to summarise it.
@amitmaity9374
@amitmaity9374 Жыл бұрын
Today is my cbsc exam and I can complete this unfinished chapter thanks to you. Thanks sir❤
@ammarabhatti8261
@ammarabhatti8261 2 жыл бұрын
Thank you so much I have exam today and this help me alot 💕
@funandtechby08
@funandtechby08 Жыл бұрын
Thank you sir ❤️ Very easy explanation
@dance_zealous
@dance_zealous 9 ай бұрын
Thankyou so much sir for such clearing concept videos that is also at free of cost🙏🙏
@cartoonlover6010
@cartoonlover6010 Жыл бұрын
Thank you so much sir ji what great lecture❤❤ you had served us thank you again for this kind of important knowledge .
@Neha-ul2jt
@Neha-ul2jt 2 жыл бұрын
Thanku sir ...... All concept clear💯🙂👍
@ksingh8831
@ksingh8831 Жыл бұрын
Tomorrow is my exam 😂 and iam coming for the study
@ayushmishra8084
@ayushmishra8084 5 ай бұрын
Study English first😂
@MadhuLohkna
@MadhuLohkna 4 ай бұрын
Mera bhi h Kal ka 😂😂😂😂😂
@Shivanisharma-mi7gy
@Shivanisharma-mi7gy 2 жыл бұрын
I am very happy by seeing your all videos i have literally feel you are god of cs❤️😁
@mufassirsayyed1882
@mufassirsayyed1882 9 ай бұрын
Thank you so much sir🫡
@BhagatBhutale..
@BhagatBhutale.. 7 ай бұрын
Video is useful 👍
@AadeshingaleOfficial-zl5fd
@AadeshingaleOfficial-zl5fd 4 ай бұрын
Nice Sir 😊
@XZYA4FHS59OP
@XZYA4FHS59OP 2 ай бұрын
Fantastic and easy to learn ❤
@I_am_Suraj2
@I_am_Suraj2 2 ай бұрын
This man saves many people's life more than doctors 😅😅
@BipashaPal-qr6yh
@BipashaPal-qr6yh 2 ай бұрын
Sir ur explanation is so clear
@pikachu3686
@pikachu3686 2 жыл бұрын
beautiful explanation
@Supercool7042
@Supercool7042 2 жыл бұрын
you are gold for our backbenchers
@nayandudhat4635
@nayandudhat4635 2 жыл бұрын
Thank you so much sir bahut aacha samjaya 🙏🙏
@sakshamsinghrajput22
@sakshamsinghrajput22 2 ай бұрын
Excellent #explaination by #gatesmashers 🇮🇳
@rockiggo
@rockiggo 2 жыл бұрын
Super,mindblowing,fantastic.
@bhoslegovind9644
@bhoslegovind9644 3 жыл бұрын
Great sir ...all concepts clear...
@amanafzal674
@amanafzal674 3 жыл бұрын
Thank you sir really good explanation
@buddyyyy
@buddyyyy 2 жыл бұрын
Thank you ❤️
@AVGLOKI1122
@AVGLOKI1122 Жыл бұрын
Path bangaya hai sir mere dimag tak ❤
@muhamadtalhach
@muhamadtalhach 3 жыл бұрын
JazakAllah (May Allah reward you)
@GateSmashers
@GateSmashers 3 жыл бұрын
Thank you
@anshikasrivastava1295
@anshikasrivastava1295 Жыл бұрын
Marvellous xplaination salute to sir
@searchengine6925
@searchengine6925 2 жыл бұрын
you are the great bro .life savior
@aradhanamurarka2949
@aradhanamurarka2949 Жыл бұрын
Best teacher in the history of computer science
@PanchamAgarwal
@PanchamAgarwal Жыл бұрын
very best teaching way
@mayankuniyal1829
@mayankuniyal1829 2 жыл бұрын
Sir very helpful vedio lecture 🙏
@vishugaming4024
@vishugaming4024 Жыл бұрын
Great way of explainning
@carnagegaming711
@carnagegaming711 Ай бұрын
Thank you ❤
@dhruvpatel5072
@dhruvpatel5072 2 жыл бұрын
Thanks 👍😊
@33_it_divyadeepbansal56
@33_it_divyadeepbansal56 Жыл бұрын
wonderfully taught
@Sonu-jx6jl
@Sonu-jx6jl 2 жыл бұрын
Thanks sir ❤
@hafizasairakanwal6705
@hafizasairakanwal6705 2 жыл бұрын
Awesome sir g bohat zaberdast ap smjaty hy😇
@jainendrasingh817
@jainendrasingh817 3 жыл бұрын
Thank you Sir ❤️
@manjurawat1826
@manjurawat1826 Жыл бұрын
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 Жыл бұрын
in D1 we have to use only the 1st vertex(1), we cant use 2
@WealthGenzZ
@WealthGenzZ 3 жыл бұрын
Great as always 🙂
@cricketwithpriyan
@cricketwithpriyan 11 ай бұрын
Great learning
@ritiksolanki3519
@ritiksolanki3519 7 ай бұрын
Very nice explanation ❤
@sangramsahu1931
@sangramsahu1931 2 жыл бұрын
Thank you again sir❤️
@MrKP-nm3qy
@MrKP-nm3qy Жыл бұрын
Genuine Guru ji 🌝🌝
@nu...123
@nu...123 3 ай бұрын
Thank you sir ❤
@narayanisharma4945
@narayanisharma4945 5 ай бұрын
too good Sir! 👏
@pratyushtripathi1728
@pratyushtripathi1728 8 ай бұрын
Maza aa gaya re baba 😂
@than0s869
@than0s869 2 жыл бұрын
best explanation.. :) Thank you sir
@milton2345
@milton2345 Жыл бұрын
Thank you so much sir
@Chhanendrasahu88
@Chhanendrasahu88 7 ай бұрын
thank you sir 🙏🙏🙏
@adityakushwah623
@adityakushwah623 Жыл бұрын
Semester saver....🔥
@Hetansi-d8s
@Hetansi-d8s 4 ай бұрын
Thank you sirr 😊
@allgoodcontents
@allgoodcontents 3 жыл бұрын
Thanks sir 😁💛
@akshatthakur57
@akshatthakur57 Жыл бұрын
Thank you
@shivugoyal7545
@shivugoyal7545 3 жыл бұрын
Sir your videos are very useful for us. Thank You Sir Sir jo hmne last mein A^4 bnaya uske baad ka conclusion btado plz ki usko bnane ke baad hmm Kya dekh skte hain
@shivambhanu2757
@shivambhanu2757 2 жыл бұрын
Very very helpful.
@oudarjatanmoy384
@oudarjatanmoy384 3 жыл бұрын
Great great sir from bangladesh. Sare doubt clear hogaye.
@bablufunnyvideos8945
@bablufunnyvideos8945 Жыл бұрын
Ur best sir🔥
@yashvijaybombale6896
@yashvijaybombale6896 Жыл бұрын
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)??
@avilambbhushan6580
@avilambbhushan6580 Ай бұрын
same doubt
@bikrammajumdar5454
@bikrammajumdar5454 5 ай бұрын
Thanks sir ❤
@tejsinhbhosale2568
@tejsinhbhosale2568 Жыл бұрын
Excellent 💯
@durgfestivalvibes
@durgfestivalvibes 2 жыл бұрын
Thankyou very much sir
@BishnuPasa
@BishnuPasa 2 жыл бұрын
best one sir thank you
@ngcreations4770
@ngcreations4770 2 жыл бұрын
Thank you sir
@pravardhan0308
@pravardhan0308 Жыл бұрын
[D1 ]In 1st row 1 to 3 we can travel with 9 < ♾️ infinity .... 1 to 2 is 8 2 to 3 is 1 But why did you considered it as infinity ♾️ My ans : via 1 there is option Is it correct?
@satyanarayandalei-rz2kw
@satyanarayandalei-rz2kw Жыл бұрын
Really I was looking for this comment. I also think so. We can go 1 to 3 via 2
@nithinrajjakkulagmailcom
@nithinrajjakkulagmailcom Жыл бұрын
@@satyanarayandalei-rz2kw no in D1 we can only travel through 1 , and in D2 through 1 and 2 , D3 1,2,3 , lastly in D4 we go any way like all can be visited like you dont need to travel whole graph , by comparing before matrix u need to find best and minimum cost
@saptarshichattopadhyay8234
@saptarshichattopadhyay8234 3 ай бұрын
Thanks ❤❤❤❤❤
@Viveksha133
@Viveksha133 6 ай бұрын
9:14 sir ham 4 se 2 or fir 2 se 3 jate tb to minimum path milta hame jo ki 9 se kam hota
@adityabhattacharyya5971
@adityabhattacharyya5971 Жыл бұрын
fu**ing awesome explanation !!! amazing teacher
@syedasadshah-go8ki
@syedasadshah-go8ki 3 ай бұрын
Thanks sir
@riazahmed8290
@riazahmed8290 Жыл бұрын
Why we use this Algo as we already have Dijkstra or bellman ALGO?
@Aditya-wy4ci
@Aditya-wy4ci 6 ай бұрын
Better time complexity.
@arsh9932
@arsh9932 2 жыл бұрын
Thank you sir..
@sadeghkhosravi
@sadeghkhosravi Жыл бұрын
Thanks.💕💕
@ayushiyadav1
@ayushiyadav1 4 ай бұрын
thnx sir ji
@architbatham3096
@architbatham3096 Жыл бұрын
thank you sir :-)
@Bittusingh1364bittu
@Bittusingh1364bittu 2 жыл бұрын
Thnq so much sir 🙏
4.2 All Pairs Shortest Path (Floyd-Warshall) - Dynamic Programming
14:13
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 3,4 МЛН
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 6 МЛН
0/1 Knapsack using Branch and Bound with example
11:20
Gate Smashers
Рет қаралды 257 М.
Warshall's Algorithm (Finding the Transitive Closure)
9:46
Neso Academy
Рет қаралды 266 М.
L-5.6: Multistage Graph | Dynamic Programming
17:32
Gate Smashers
Рет қаралды 252 М.
GREATEST CHESS MOVE EVER PLAYED!!!!!
24:01
GothamChess
Рет қаралды 236 М.
G-42. Floyd Warshall Algorithm
30:13
take U forward
Рет қаралды 212 М.
L-5.4: Traveling Salesman Problem | Dynamic Programming
14:12
Gate Smashers
Рет қаралды 893 М.