🎯 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
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 😅😅
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
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😊
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
🎯 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
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
Why this type of teaching is not found in universities...u r fabolus sir..
u were probably chit chatting when your teacher was teaching this stuff and now you probably have exams in some days'
@@eiji11282 Not in some days. Exam is over today. 😁 of DSA
@@shahidjack373 ahhh lucky.. i have mine last that is programming and that is on 14 😂😂first time giving offline exams
@@eiji11282 tum LPU ke ho ryt😂😂😂
@@sahirmohammad9027 thode se miss kr gaye 😂cu ka hoo
Thank u Sir ❤️ For such a great series of DAA.
The best part of every lecture is - "Subscribers boht jaroori hai😅❤❤" love you sir
THANK YOU ADARSH ..LOVE U 2
I'm used to it 😂❤ .Sir is the best toh subscribe toh jaroori hai eh❤
without this sentence the lecture is almost incomplete...☺
sort and sweet .. very best video for BFS & DFS... thx..
0:51 Every tree is a graph, but not every graph is a tree.
areyy wah wah wah wah yahi bolne ko aya si mein
Sahi bole bhai
Ye galat bata ke confusion create kar raha tha
@@GamAnimeLog bro insaan hain.. galti ho sakta hain :) Itna achha quality content mil raha hain .. kaafi hain :)
Correct
A big salute to you sir....hats off sir....your way of teaching is incredible.
Maturity is when you know your life was dfs (one direction one goal) became dfs (multiple directions no goals) 😅😂
So either learn one thing at time or learn many things at the same time
😂😂😂....
😂😂 we are intelligent therefore we learn 100 of lessons from one topic 😂😂😂😂😂😂😂😂😂
Thank you bhai muje pata chal gya ki m mature hu thank you
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 😅😅
Great explanation, but one mistake at 0:50, it should be "Every tree is a graph, but not every graph is a tree."
True
yess
Fatrue
Yes yes
Yesss..he has made mistake at this point
Best of Luck for Tomorrow Exam...😎😂
Aaj h
Kl hai @@abhayrajput2022
1 gante baad hai
Thanks
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
Buhat Shukria Sir, buhat achay say samjhaya hai aapne.
Love and Respect from Pakistan 🇵🇰.
I have been watching your videos since last week.
After 19 yrs Sir make me clear the concept.. Thanks sir
All your videos provide a wonderful content 😇
I just want to thank this channel which helped me a lot in my selection as TGT CS in DSSSB ...
Thanku sir.. 🙏
Congrats
Best explanation ever on this algo. Salute boss..❤
Who is here before exam ?🙂
Yes bro😂
Am
Tomorrow is my exam 🙂
Me at 4am
10 baje dekh rha hu, 2 baje exam hai 😂
Thank you Soo much sir ,ap bht acha smjaty ha ,concept clear ho jaty ha sary🌸🌸
The teacher that we all wanted but don't deserved♥️♥️
Main kahani ye hai ki devices multiple hai but email ek hi hai! 😄Thanks a lot!
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😊
Congratulations
Hey, you are doing a great job.
life saver video , just amazing
kalyug ko uski charamsima pe pohchane ka waqt aa gaya he sir..isliye ye sikh raha hoon...ASUR
Wonderful content sir 😍😍, really helpful for quick remembrance
Awesome lecture sir....🙏🙏
I ALWAYS SUBSCRIBE very good purpose youtube channel ... like you
Amazing Explaination sir!!
Exam in 10 hours 😅.. Bharthi Vidyapeeth students (mumbai)appear here ❤
Super explanation sir...
Great teacher
Who is watching this video on 2024 June 😂 from tamilnadu who can't understand the language but understood the concept 😊🎉
Which course did you study?
Thanks crystal clear🎉🎉🎉❤
your teaching style is mesmerizing sir😊
Big fan of your teaching style
Totally loved it maan❤
Such A Great Teacher Hats off💯💯Sir❤❣
Finally I finished the playlist sir. Thank you
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.
Yes you're correct, I was also wondering why I cant agree with him 😂
Best video sir❤❤
Teachers like you deserves to be in colleges ....
Marvelous 👍
i have exam in two days your videos are helping me a lot by saving my time
love you brother
kaisa gya exam bhai
@@mddilshadansari_0792 50/60
@@hackcodesfree9200 which University give results in one month bro
Thanks you so much for a great lecture.
Thank you sir it's very help full 😇
Ossum explanation sir👍🏻
kmall sir level great teaching method
honest reaction- "Dil khush kar ditta!"
just wanted to let you know that ,youre videos are getting suggested by the faculty of our university for better understanding!
u r awesome guru. Love u
You are the great teacher my university teacher is nothing infront of u guruji🙏
Thanku so much sir 😊
You are just superb
Thank you sir 🥰
Thanku sir
Full course done
Well explained Sir you are the best
Sir you are great
Bloody sweet sirr🎉❤
Level sabke niklenge
Par nikllenge usi ke jo khara rahega
😅😅😅😅😅😅😅@@pandoraowl7379
SIR please complete your DAA playlist with the topics like RED-BLACK TREE, B-TREE,TRIES,SKIP LIST, FIBONACCI HEAPS ,ET-CETERA
Lmao stfu go listen while your teacher is explaining in class cringe 🤣🤣🤣
0:51 time - correct statement is every tree is a graph but not every graphs is tree.😢
Wow amazing 😌😌
Excellent explanation sir. Thank you
Thanks sir respect from pakistan ❤❤❤❤❤❤
tomorrow is my exam and you helped me alot ❤
Exam is in afternoon, I'm watching this in morning 😁
Thank you so much sir 🙏❤️
Thank you sir Allah ap ko ilm ata Kara mazeed
Sir you are great thank you soo muchhh❤
very nicely explained
thanks sir
Love you Sir from abbottabad kpk Pakistan 😍❤️❤️❤️
You are teaching on White board is really nice , i thing this little bit .....
0:53 : Yes, every tree is a graph, but not every graph is a tree.✅
7:32
kamal ha sir ji lub u
Who is here before exam
Nice video sir !!
Love you Sir
really you are great sir
thanks a lot sir......
Became your fan🔥🔥❤️
You are Great sir
Too good👍
Love you hogya g
Thanks sir 😊
0:56 according to me there is statement like
Every Tree is graph but not all graph is tree
yes it’s correct
I subscibed .... your way of teaching is such that no professor can explain
Well explained within time... thanks sir
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
Excellent explanation ❤️❤️❤️❤️
Here before 1 hr exam
How was your exam?
Bca 😂
@@AryanKumarBaghel-cp1jv got 70 for 100🤣
same
I Also
sir can you please also include topics in your DAA playlist like segment tree,red black tree,skip list etc
Your teaching technique is very imagine sir👍👍💯💯❣️
0:40 *correction :
Every tree is a graph but every graph may not be a tree
❤❤thank you
Bro is better than IITM teachers
great
BEST TEACHER
Thankyou sir ❤
Excellent ❤❤❤❤
5:53