L-4.15: BFS & DFS | Breadth First Search | Depth First Search | Graph Traversing | DAA

  Рет қаралды 1,363,690

Gate Smashers

Gate Smashers

Күн бұрын

Пікірлер: 439
@knowledge_of_computer
@knowledge_of_computer Жыл бұрын
Mene apki video dekh bsc cs clear kiya abd now my msc cs ki exam ke liye apse hi pad rhi hu thanku so much sir ♥️😊 itte easy way me padane ke liye
@vempatikavya4181
@vempatikavya4181 Жыл бұрын
Why this type of teaching is not found in universities...u r fabolus sir..
@eiji11282
@eiji11282 Жыл бұрын
u were probably chit chatting when your teacher was teaching this stuff and now you probably have exams in some days'
@shahidjack373
@shahidjack373 Жыл бұрын
@@eiji11282 Not in some days. Exam is over today. 😁 of DSA
@eiji11282
@eiji11282 Жыл бұрын
@@shahidjack373 ahhh lucky.. i have mine last that is programming and that is on 14 😂😂first time giving offline exams
@sahirmohammad9027
@sahirmohammad9027 Жыл бұрын
@@eiji11282 tum LPU ke ho ryt😂😂😂
@eiji11282
@eiji11282 Жыл бұрын
@@sahirmohammad9027 thode se miss kr gaye 😂cu ka hoo
@adarshjhaxiif-1289
@adarshjhaxiif-1289 Жыл бұрын
The best part of every lecture is - "Subscribers boht jaroori hai😅❤❤" love you sir
@LordSarcasticVlogger
@LordSarcasticVlogger 9 ай бұрын
THANK YOU ADARSH ..LOVE U 2
@strawberryrafi4662
@strawberryrafi4662 8 ай бұрын
I'm used to it 😂❤ .Sir is the best toh subscribe toh jaroori hai eh❤
@CartoonTV257
@CartoonTV257 Жыл бұрын
Great explanation, but one mistake at 0:50, it should be "Every tree is a graph, but not every graph is a tree."
@vanshrajkudesia
@vanshrajkudesia Жыл бұрын
True
@Niteshmaurya1234
@Niteshmaurya1234 Жыл бұрын
yess
@CLGBOY
@CLGBOY Жыл бұрын
Fatrue
@monalishasahoo2941
@monalishasahoo2941 Жыл бұрын
Yes yes
@pritamkumari8547
@pritamkumari8547 Жыл бұрын
Yesss..he has made mistake at this point
@rakeshgaming1756
@rakeshgaming1756 2 жыл бұрын
0:51 Every tree is a graph, but not every graph is a tree.
@lagansardana
@lagansardana 2 жыл бұрын
areyy wah wah wah wah yahi bolne ko aya si mein
@GamAnimeLog
@GamAnimeLog 2 жыл бұрын
Sahi bole bhai
@GamAnimeLog
@GamAnimeLog 2 жыл бұрын
Ye galat bata ke confusion create kar raha tha
@deeps-n5y
@deeps-n5y Жыл бұрын
@@GamAnimeLog bro insaan hain.. galti ho sakta hain :) Itna achha quality content mil raha hain .. kaafi hain :)
@Bruce2207
@Bruce2207 4 ай бұрын
Correct
@Manojkumar-po7yu
@Manojkumar-po7yu Жыл бұрын
Thank u Sir ❤️ For such a great series of DAA.
@luckysharmaalways
@luckysharmaalways Жыл бұрын
Maturity is when you know your life was dfs (one direction one goal) became dfs (multiple directions no goals) 😅😂
@Sanjaysview
@Sanjaysview Жыл бұрын
So either learn one thing at time or learn many things at the same time
@ronokjahanmithila7487
@ronokjahanmithila7487 Жыл бұрын
😂😂😂....
@dangerousn
@dangerousn Жыл бұрын
😂😂 we are intelligent therefore we learn 100 of lessons from one topic 😂😂😂😂😂😂😂😂😂
@mrpatel4313
@mrpatel4313 Жыл бұрын
Thank you bhai muje pata chal gya ki m mature hu thank you
@shubhamshah1710
@shubhamshah1710 10 ай бұрын
But if there is any cycle in graph then dfs will be trapped in infinite loop so you won't be able to reach your So we should make sure we are not repeating any mistakes in our life which had made previously again 😅😅
@Steal_Gaming-ms5fm
@Steal_Gaming-ms5fm Жыл бұрын
A big salute to you sir....hats off sir....your way of teaching is incredible.
@PoojanDoshi-tn5ob
@PoojanDoshi-tn5ob Жыл бұрын
sort and sweet .. very best video for BFS & DFS... thx..
@GeetShah_22
@GeetShah_22 2 жыл бұрын
I just want to thank this channel which helped me a lot in my selection as TGT CS in DSSSB ... Thanku sir.. 🙏
@NakaruHikamuraOP
@NakaruHikamuraOP 2 жыл бұрын
Congrats
@anesp.a913
@anesp.a913 5 ай бұрын
After 19 yrs Sir make me clear the concept.. Thanks sir
@abhijeetardalkar4400
@abhijeetardalkar4400 7 ай бұрын
Main kahani ye hai ki devices multiple hai but email ek hi hai! 😄Thanks a lot!
@golpokotha4228
@golpokotha4228 6 ай бұрын
@falaksuryavanshi3108
@falaksuryavanshi3108 7 ай бұрын
Sir m pass hogyi data structure m..😇 thanku so so so much sir..ap sbse best ho...aapki wjh s kitne bcche success ho jate h .❤or m sbhi ko advice Dena chahti hu pdhna ho toh gate smesher sir s...i can't express my feelings in words..❤️✨god bless u sir..😇ap really hero h hum jse average students k liye😊
@GateSmashers
@GateSmashers 7 ай бұрын
Congratulations
@basulamichane8312
@basulamichane8312 Жыл бұрын
The teacher that we all wanted but don't deserved♥️♥️
@AmnaRizwanUnknown
@AmnaRizwanUnknown 11 ай бұрын
All your videos provide a wonderful content 😇
@utkarshsingh2638
@utkarshsingh2638 11 ай бұрын
🎯 Key Takeaways for quick navigation: 00:00 🌐 *Graph traversal involves visiting and exploring vertices in a graph or tree, with focus on visiting and exploring.* 01:54 🚶‍♂️ *Breadth-First Search (BFS) covers levels one by one, while Depth-First Search (DFS) goes towards depth, backtracking when needed.* 03:21 🍴 *BFS example: Visiting a food stall breadth-wise at Marys. DFS example: Choosing a career path and backtracking when faced with a dead end.* 05:17 🔄 *BFS uses a Queue, exploring vertices level by level. DFS uses a Stack, going in-depth and backtracking when necessary.* 10:40 ⏱️ *Both BFS and DFS have a time complexity of Order(V + E), making them crucial for applications like web crawlers, social media, and network analysis.* Made with HARPA AI
@AnkushChavan-n1k
@AnkushChavan-n1k Ай бұрын
Best explanation ever on this algo. Salute boss..❤
@shubhammohanty724
@shubhammohanty724 Жыл бұрын
Who is here before exam ?🙂
@payal7819
@payal7819 8 ай бұрын
Yes bro😂
@huriarauf189
@huriarauf189 7 ай бұрын
Am
@itssipun9086
@itssipun9086 6 ай бұрын
Tomorrow is my exam 🙂
@rupeshyadav3181
@rupeshyadav3181 6 ай бұрын
Me at 4am
@pranshulvijayvergia4213
@pranshulvijayvergia4213 6 ай бұрын
10 baje dekh rha hu, 2 baje exam hai 😂
@darshanwagh7578
@darshanwagh7578 Жыл бұрын
kalyug ko uski charamsima pe pohchane ka waqt aa gaya he sir..isliye ye sikh raha hoon...ASUR
@shreyabhattacharya74
@shreyabhattacharya74 9 ай бұрын
Wonderful content sir 😍😍, really helpful for quick remembrance
@gt9579
@gt9579 11 ай бұрын
Sir At 0:51 there is a correction. It must be every tree is a graph but graph may or may not be a tree.
@rohitsen7718
@rohitsen7718 11 ай бұрын
Yes you're correct, I was also wondering why I cant agree with him 😂
@gullusingh3959
@gullusingh3959 Жыл бұрын
I have been watching your videos since last week.
@sakoon_e_qalb7
@sakoon_e_qalb7 Жыл бұрын
Thank you Soo much sir ,ap bht acha smjaty ha ,concept clear ho jaty ha sary🌸🌸
@hackcodesfree9200
@hackcodesfree9200 2 жыл бұрын
i have exam in two days your videos are helping me a lot by saving my time love you brother
@mddilshadansari_0792
@mddilshadansari_0792 2 жыл бұрын
kaisa gya exam bhai
@hackcodesfree9200
@hackcodesfree9200 2 жыл бұрын
@@mddilshadansari_0792 50/60
@novagames5719
@novagames5719 Жыл бұрын
​@@hackcodesfree9200 which University give results in one month bro
@Google_cloud_learner
@Google_cloud_learner Ай бұрын
life saver video , just amazing
@vismayavr7241
@vismayavr7241 Жыл бұрын
Super explanation sir... Great teacher
@lakshayiiitm
@lakshayiiitm 11 ай бұрын
Hey, you are doing a great job.
@sciencist
@sciencist 4 ай бұрын
Amazing Explaination sir!!
@RenuT-g4p
@RenuT-g4p Ай бұрын
Thanks you so much for a great lecture.
@debasmithmohanty2538
@debasmithmohanty2538 2 жыл бұрын
Thanku sir Full course done
@susenakodumuri2667
@susenakodumuri2667 Жыл бұрын
Awesome lecture sir....🙏🙏
@krishnaradhey2814
@krishnaradhey2814 2 жыл бұрын
SIR please complete your DAA playlist with the topics like RED-BLACK TREE, B-TREE,TRIES,SKIP LIST, FIBONACCI HEAPS ,ET-CETERA
@sprite8344
@sprite8344 Жыл бұрын
Lmao stfu go listen while your teacher is explaining in class cringe 🤣🤣🤣
@sakshiattri6118
@sakshiattri6118 Жыл бұрын
your teaching style is mesmerizing sir😊
@sakshiattri6118
@sakshiattri6118 Жыл бұрын
Big fan of your teaching style
@parmaryash5237
@parmaryash5237 Ай бұрын
Best video sir❤❤
@varadacharya2802
@varadacharya2802 Жыл бұрын
sir can you please also include topics in your DAA playlist like segment tree,red black tree,skip list etc
@BhupinderKaur-vg2mc
@BhupinderKaur-vg2mc Жыл бұрын
Teachers like you deserves to be in colleges ....
@CK_Wiings
@CK_Wiings Жыл бұрын
You are teaching on White board is really nice , i thing this little bit .....
@muhammadshoaibms862
@muhammadshoaibms862 Жыл бұрын
Such A Great Teacher Hats off💯💯Sir❤❣
@SocialAnalytics-lc4fd
@SocialAnalytics-lc4fd 6 ай бұрын
kmall sir level great teaching method
@akashpandey4677
@akashpandey4677 Жыл бұрын
I ALWAYS SUBSCRIBE very good purpose youtube channel ... like you
@akashraghu1c113
@akashraghu1c113 Жыл бұрын
You are the great teacher my university teacher is nothing infront of u guruji🙏
@NadiaKanwal-mm6zp
@NadiaKanwal-mm6zp 6 ай бұрын
Thank you sir Allah ap ko ilm ata Kara mazeed
@S_eunbi
@S_eunbi 6 ай бұрын
Well explained Sir you are the best
@codewithadii
@codewithadii Жыл бұрын
tomorrow is my exam and you helped me alot ❤
@sumansy18
@sumansy18 Жыл бұрын
Exam is in afternoon, I'm watching this in morning 😁
@SabbirAhmed-si9yt
@SabbirAhmed-si9yt 7 ай бұрын
just wanted to let you know that ,youre videos are getting suggested by the faculty of our university for better understanding!
@shivampandyajani
@shivampandyajani 5 ай бұрын
honest reaction- "Dil khush kar ditta!"
@ShaikSameer-hn9ui
@ShaikSameer-hn9ui 10 ай бұрын
Totally loved it maan❤
@laibaharoon4636
@laibaharoon4636 Жыл бұрын
Sir you are great
@jaskamalkaur5343
@jaskamalkaur5343 Жыл бұрын
Thanku so much sir 😊
@royalsinghrajpoot4646
@royalsinghrajpoot4646 9 ай бұрын
Thanks crystal clear🎉🎉🎉❤
@avnishrai4041
@avnishrai4041 5 ай бұрын
Level sabke niklenge
@pandoraowl7379
@pandoraowl7379 5 ай бұрын
Par nikllenge usi ke jo khara rahega
@devanandkr4055
@devanandkr4055 3 ай бұрын
😅😅😅😅😅😅😅​@@pandoraowl7379
@InzaJoiya
@InzaJoiya Жыл бұрын
You are just superb
@arunimachakraborty1175
@arunimachakraborty1175 Жыл бұрын
Excellent explanation sir. Thank you
@WhoKnows-s4z
@WhoKnows-s4z 2 ай бұрын
i dont know you will saw this messege or not hope it will find you. tomorrow is my exam i covered my all topics from watching your video. thanks a lot brother how short how tricky and easy your teaching style i loved it. love from bangladesh. Long live enough. I think still thank you shuldnet be enough the help you did by uploading this video. again thanks a lot
@Ms.psychology
@Ms.psychology 11 күн бұрын
Marvelous 👍
@sigmaftw5042
@sigmaftw5042 3 ай бұрын
Bro is better than IITM teachers
@mdsabbiralshafi8152
@mdsabbiralshafi8152 Жыл бұрын
u r awesome guru. Love u
@DevHirani-b9v
@DevHirani-b9v Жыл бұрын
very nicely explained
@Ruby..R
@Ruby..R 2 жыл бұрын
Finally I finished the playlist sir. Thank you
@krishnabtech4766
@krishnabtech4766 6 күн бұрын
Exam in 10 hours 😅.. Bharthi Vidyapeeth students (mumbai)appear here ❤
@mchaudhary120
@mchaudhary120 11 ай бұрын
Thank you sir 🥰
@Hacker2004-l9y
@Hacker2004-l9y Жыл бұрын
Bloody sweet sirr🎉❤
@ashishtyagi6152
@ashishtyagi6152 Жыл бұрын
Wow amazing 😌😌
@shubhamdas6519
@shubhamdas6519 Жыл бұрын
thanks a lot sir......
@iamgirraj
@iamgirraj 9 ай бұрын
0:51 time - correct statement is every tree is a graph but not every graphs is tree.😢
@vlogfrommoon
@vlogfrommoon 9 ай бұрын
EVERY TREE IS A GRAPH BUT EVERY GRAPH MAY OR MAY NOT BE A TREE
@vedant6460
@vedant6460 Жыл бұрын
great
@AnupSingh92148
@AnupSingh92148 Жыл бұрын
Love you Sir
@MrzafiOfficial
@MrzafiOfficial Жыл бұрын
kamal ha sir ji lub u
@BrainGamesChallenge
@BrainGamesChallenge 4 ай бұрын
Sir you are great thank you soo muchhh❤
@ssndas5833
@ssndas5833 Жыл бұрын
Thanks sir respect from pakistan ❤❤❤❤❤❤
@vatsalspatel007
@vatsalspatel007 2 жыл бұрын
0:56 according to me there is statement like Every Tree is graph but not all graph is tree
@Natural.168
@Natural.168 Жыл бұрын
yes it’s correct
@achieversgyanfamily
@achieversgyanfamily 2 ай бұрын
Best of Luck for Tomorrow Exam...😎😂
@animesh06
@animesh06 Жыл бұрын
Nice
@indiankitchen5215
@indiankitchen5215 Жыл бұрын
Kl mera paper H. I hope ye vedio mere kaam aaye
@DevSingh-xs9ey
@DevSingh-xs9ey 2 жыл бұрын
Nice video sir !!
@Chhanendrasahu88
@Chhanendrasahu88 9 ай бұрын
thanks sir
@dimple-raj15
@dimple-raj15 Жыл бұрын
You are Great sir
@nextleveltech267
@nextleveltech267 Жыл бұрын
Thank you so much sir 🙏❤️
@bhatsabreena9141
@bhatsabreena9141 2 жыл бұрын
Sir I hope you are well, I like you very much you are one of the best teachers in the world who teaches very well and you make every point very clear, sir you helped me a lot from ist sem to now 4th sem i am doing BCA, For which I am very grateful to you I have watched your all videos till now... Now sir plz i have request please make the video on *Amortized Analysis* and also on *Medians and order statistics*...( bht se youtubers ki vedio dekhi the but zara b smj nahi aaya, kyun ki aph ki aadat hogyi hai na sune ki so plzzz Sir Accept my little request that will be your kindness..lots of love sir ❣️❣️❣️❣️
@sakibuzzamansakib274
@sakibuzzamansakib274 2 ай бұрын
BEST TEACHER
@duckworth_lewis
@duckworth_lewis 8 ай бұрын
Here before 1 hr exam
@AryanKumarBaghel-cp1jv
@AryanKumarBaghel-cp1jv 6 ай бұрын
How was your exam?
@creativecode5693
@creativecode5693 5 ай бұрын
Bca 😂
@duckworth_lewis
@duckworth_lewis 5 ай бұрын
@@AryanKumarBaghel-cp1jv got 70 for 100🤣
@gamerwhale295
@gamerwhale295 4 ай бұрын
same
@destinationsuccess3362
@destinationsuccess3362 4 ай бұрын
I Also
@rishitabiswas8533
@rishitabiswas8533 9 ай бұрын
Every tree is a graph, but not every graph is a tree.
@muhammaddaanyal1092
@muhammaddaanyal1092 Ай бұрын
please make a video on " Chain Matrix Multiplication-Dynamic Programming Formulation "
@PakWeekly
@PakWeekly Жыл бұрын
Love you Sir from abbottabad kpk Pakistan 😍❤️❤️❤️
@rdrahuldhiman19
@rdrahuldhiman19 10 ай бұрын
I think there's a small problem in dry run, from 4 how we can directly jump to 3? 4 has 2 children - 5 and 6. From 4 it's not possible to jump to 3, since 4 doesn't know 3. In my dry run, I had jump to 2, then to 1, then from 1 to 3 and finally 7. Hence, the final answer is same. I'm watching this while I'm learning BST, so maybe I'm wrong, but yeah this is what I had to say.
@divyam5935
@divyam5935 5 ай бұрын
no u r correct, i was about to comment the same 👍
@anujmore7701
@anujmore7701 2 жыл бұрын
Please complete daa syllabus before January
@JagdishGodara-cq4lr
@JagdishGodara-cq4lr 5 ай бұрын
really you are great sir
@mohitkaushik21
@mohitkaushik21 Жыл бұрын
Thanks sir 😊
@TueestyyFrog
@TueestyyFrog 10 ай бұрын
Love you hogya g
@directsupport1139
@directsupport1139 10 ай бұрын
sir every tree is a graph but not all graph are trees 0:52
@shubham3438
@shubham3438 Жыл бұрын
Life saviour
@Prathem1
@Prathem1 Жыл бұрын
Too good👍
@playtune9217
@playtune9217 Жыл бұрын
The correct statement is: "Every tree is a graph, but not every graph is a tree". you mentioned it wrong in this video
@sscode3809
@sscode3809 2 жыл бұрын
Your teaching technique is very imagine sir👍👍💯💯❣️
@ranajyoti99
@ranajyoti99 Жыл бұрын
Super sir
@puran1075
@puran1075 2 жыл бұрын
Kl paper hai.... Thanks for explaining
@devilyt214
@devilyt214 5 ай бұрын
00:02 Graph Traversal Methods 01:48 BFS follows all the levels one by one and DFS goes towards depth 03:22 BFS is a breadth-first search algorithm that explores nodes level by level. 04:39 BFS traversal explores nodes in a breadth-first manner. 05:56 BFS traversal works level by level. 07:18 Exploring the options and backtracking 08:36 Backtracking from 5 to 4 and then finding options 09:55 Depth-First Search (DFS) and Breadth-First Search (BFS) have the same time complexity
@NinjaCoders
@NinjaCoders Жыл бұрын
awesome Example
@sheikhraisulislam4483
@sheikhraisulislam4483 Жыл бұрын
awesome sir
Real Man relocate to Remote Controlled Car 👨🏻➡️🚙🕹️ #builderc
00:24
Disrespect or Respect 💔❤️
00:27
Thiago Productions
Рет қаралды 43 МЛН
小路飞还不知道他把路飞给擦没有了 #路飞#海贼王
00:32
路飞与唐舞桐
Рет қаралды 87 МЛН
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 8 МЛН
L-4.7: What is Spanning Tree with Examples in Hindi | Algorithm
7:12
Gate Smashers
Рет қаралды 997 М.
L-4.10: Dijkstra's Algorithm - Single Source Shortest Path - Greedy Method
15:49
L-4.8: Kruskal Algorithm for Minimum Spanning Tree in Hindi | Algorithm
11:17
Real Man relocate to Remote Controlled Car 👨🏻➡️🚙🕹️ #builderc
00:24