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

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 440

  • @knowledge_of_computer
    @knowledge_of_computer Год назад +14

    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

  • @adarshjhaxiif-1289
    @adarshjhaxiif-1289 Год назад +118

    The best part of every lecture is - "Subscribers boht jaroori hai😅❤❤" love you sir

    • @LordSarcasticVlogger
      @LordSarcasticVlogger 9 месяцев назад +3

      THANK YOU ADARSH ..LOVE U 2

    • @strawberryrafi4662
      @strawberryrafi4662 8 месяцев назад +2

      I'm used to it 😂❤ .Sir is the best toh subscribe toh jaroori hai eh❤

  • @utkarshsingh2638
    @utkarshsingh2638 11 месяцев назад +39

    🎯 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

  • @vempatikavya4181
    @vempatikavya4181 Год назад +589

    Why this type of teaching is not found in universities...u r fabolus sir..

    • @eiji11282
      @eiji11282 Год назад +58

      u were probably chit chatting when your teacher was teaching this stuff and now you probably have exams in some days'

    • @shahidjack373
      @shahidjack373 Год назад +13

      @@eiji11282 Not in some days. Exam is over today. 😁 of DSA

    • @eiji11282
      @eiji11282 Год назад +3

      @@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

  • @CartoonTV257
    @CartoonTV257 Год назад +151

    Great explanation, but one mistake at 0:50, it should be "Every tree is a graph, but not every graph is a tree."

  • @Manojkumar-po7yu
    @Manojkumar-po7yu Год назад +49

    Thank u Sir ❤️ For such a great series of DAA.

  • @Steal_Gaming-ms5fm
    @Steal_Gaming-ms5fm Год назад +7

    A big salute to you sir....hats off sir....your way of teaching is incredible.

  • @shubhammohanty724
    @shubhammohanty724 Год назад +242

    Who is here before exam ?🙂

  • @rakeshgaming1756
    @rakeshgaming1756 2 года назад +215

    0:51 Every tree is a graph, but not every graph is a tree.

    • @lagansardana
      @lagansardana 2 года назад +3

      areyy wah wah wah wah yahi bolne ko aya si mein

    • @GamAnimeLog
      @GamAnimeLog 2 года назад +1

      Sahi bole bhai

    • @GamAnimeLog
      @GamAnimeLog 2 года назад +6

      Ye galat bata ke confusion create kar raha tha

    • @deeps-n5y
      @deeps-n5y Год назад +12

      @@GamAnimeLog bro insaan hain.. galti ho sakta hain :) Itna achha quality content mil raha hain .. kaafi hain :)

    • @Bruce2207
      @Bruce2207 4 месяца назад +2

      Correct

  • @PoojanDoshi-tn5ob
    @PoojanDoshi-tn5ob Год назад +8

    sort and sweet .. very best video for BFS & DFS... thx..

  • @GeetShah_22
    @GeetShah_22 2 года назад +25

    I just want to thank this channel which helped me a lot in my selection as TGT CS in DSSSB ...
    Thanku sir.. 🙏

  • @luckysharmaalways
    @luckysharmaalways Год назад +660

    Maturity is when you know your life was dfs (one direction one goal) became dfs (multiple directions no goals) 😅😂

    • @Sanjaysview
      @Sanjaysview Год назад +31

      So either learn one thing at time or learn many things at the same time

    • @ronokjahanmithila7487
      @ronokjahanmithila7487 Год назад +3

      😂😂😂....

    • @dangerousn
      @dangerousn Год назад +13

      😂😂 we are intelligent therefore we learn 100 of lessons from one topic 😂😂😂😂😂😂😂😂😂

    • @mrpatel4313
      @mrpatel4313 Год назад +4

      Thank you bhai muje pata chal gya ki m mature hu thank you

    • @shubhamshah1710
      @shubhamshah1710 11 месяцев назад +3

      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 😅😅

  • @abhijeetardalkar4400
    @abhijeetardalkar4400 7 месяцев назад +3

    Main kahani ye hai ki devices multiple hai but email ek hi hai! 😄Thanks a lot!

  • @basulamichane8312
    @basulamichane8312 Год назад +9

    The teacher that we all wanted but don't deserved♥️♥️

  • @anesp.a913
    @anesp.a913 5 месяцев назад +1

    After 19 yrs Sir make me clear the concept.. Thanks sir

  • @falaksuryavanshi3108
    @falaksuryavanshi3108 7 месяцев назад +6

    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😊

  • @gullusingh3959
    @gullusingh3959 Год назад +1

    I have been watching your videos since last week.

  • @AnkushChavan-n1k
    @AnkushChavan-n1k 2 месяца назад

    Best explanation ever on this algo. Salute boss..❤

  • @darshanwagh7578
    @darshanwagh7578 Год назад +1

    kalyug ko uski charamsima pe pohchane ka waqt aa gaya he sir..isliye ye sikh raha hoon...ASUR

  • @AmnaRizwanUnknown
    @AmnaRizwanUnknown 11 месяцев назад +6

    All your videos provide a wonderful content 😇

  • @sakoon_e_qalb7
    @sakoon_e_qalb7 Год назад +1

    Thank you Soo much sir ,ap bht acha smjaty ha ,concept clear ho jaty ha sary🌸🌸

  • @Google_cloud_learner
    @Google_cloud_learner Месяц назад +1

    life saver video , just amazing

  • @lakshayiiitm
    @lakshayiiitm 11 месяцев назад +6

    Hey, you are doing a great job.

  • @achieversgyanfamily
    @achieversgyanfamily 2 месяца назад +7

    Best of Luck for Tomorrow Exam...😎😂

  • @vismayavr7241
    @vismayavr7241 Год назад +3

    Super explanation sir...
    Great teacher

  • @shreyabhattacharya74
    @shreyabhattacharya74 9 месяцев назад +1

    Wonderful content sir 😍😍, really helpful for quick remembrance

  • @sakshiattri6118
    @sakshiattri6118 Год назад +3

    your teaching style is mesmerizing sir😊

  • @muhammadshoaibms862
    @muhammadshoaibms862 Год назад +3

    Such A Great Teacher Hats off💯💯Sir❤❣

  • @susenakodumuri2667
    @susenakodumuri2667 Год назад +4

    Awesome lecture sir....🙏🙏

  • @hackcodesfree9200
    @hackcodesfree9200 2 года назад +6

    i have exam in two days your videos are helping me a lot by saving my time
    love you brother

  • @sciencist
    @sciencist 4 месяца назад +1

    Amazing Explaination sir!!

  • @debasmithmohanty2538
    @debasmithmohanty2538 2 года назад +2

    Thanku sir
    Full course done

  • @avnishrai4041
    @avnishrai4041 5 месяцев назад +13

    Level sabke niklenge

    • @pandoraowl7379
      @pandoraowl7379 5 месяцев назад +3

      Par nikllenge usi ke jo khara rahega

    • @devanandkr4055
      @devanandkr4055 3 месяца назад

      😅😅😅😅😅😅😅​@@pandoraowl7379

  • @gt9579
    @gt9579 11 месяцев назад +16

    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 месяцев назад +1

      Yes you're correct, I was also wondering why I cant agree with him 😂

  • @akashpandey4677
    @akashpandey4677 Год назад +1

    I ALWAYS SUBSCRIBE very good purpose youtube channel ... like you

  • @RenuT-g4p
    @RenuT-g4p 2 месяца назад +1

    Thanks you so much for a great lecture.

  • @ShaikSameer-hn9ui
    @ShaikSameer-hn9ui 10 месяцев назад +2

    Totally loved it maan❤

  • @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

  • @shivampandyajani
    @shivampandyajani 6 месяцев назад

    honest reaction- "Dil khush kar ditta!"

  • @parmaryash5237
    @parmaryash5237 Месяц назад +1

    Best video sir❤❤

  • @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!

  • @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

  • @akashraghu1c113
    @akashraghu1c113 Год назад +1

    You are the great teacher my university teacher is nothing infront of u guruji🙏

  • @jaskamalkaur5343
    @jaskamalkaur5343 Год назад +2

    Thanku so much sir 😊

  • @S_eunbi
    @S_eunbi 7 месяцев назад

    Well explained Sir you are the best

  • @CK_Wiings
    @CK_Wiings Год назад +1

    You are teaching on White board is really nice , i thing this little bit .....

  • @SocialAnalytics-lc4fd
    @SocialAnalytics-lc4fd 6 месяцев назад

    kmall sir level great teaching method

  • @Ruby..R
    @Ruby..R 2 года назад +2

    Finally I finished the playlist sir. Thank you

  • @NadiaKanwal-mm6zp
    @NadiaKanwal-mm6zp 6 месяцев назад

    Thank you sir Allah ap ko ilm ata Kara mazeed

  • @krishnaradhey2814
    @krishnaradhey2814 2 года назад +30

    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 🤣🤣🤣

  • @ssndas5833
    @ssndas5833 Год назад +1

    Thanks sir respect from pakistan ❤❤❤❤❤❤

  • @InzaJoiya
    @InzaJoiya Год назад +1

    You are just superb

  • @mchaudhary120
    @mchaudhary120 11 месяцев назад +2

    Thank you sir 🥰

  • @mdsabbiralshafi8152
    @mdsabbiralshafi8152 Год назад +1

    u r awesome guru. Love u

  • @codewithadii
    @codewithadii Год назад +3

    tomorrow is my exam and you helped me alot ❤

    • @sumansy18
      @sumansy18 Год назад

      Exam is in afternoon, I'm watching this in morning 😁

  • @sigmaftw5042
    @sigmaftw5042 3 месяца назад

    Bro is better than IITM teachers

  • @royalsinghrajpoot4646
    @royalsinghrajpoot4646 10 месяцев назад +1

    Thanks crystal clear🎉🎉🎉❤

  • @duckworth_lewis
    @duckworth_lewis 8 месяцев назад +17

    Here before 1 hr exam

  • @Hacker2004-l9y
    @Hacker2004-l9y Год назад +1

    Bloody sweet sirr🎉❤

  • @laibaharoon4636
    @laibaharoon4636 Год назад +1

    Sir you are great

  • @BhupinderKaur-vg2mc
    @BhupinderKaur-vg2mc Год назад +1

    Teachers like you deserves to be in colleges ....

  • @PakWeekly
    @PakWeekly Год назад

    Love you Sir from abbottabad kpk Pakistan 😍❤️❤️❤️

  • @arunimachakraborty1175
    @arunimachakraborty1175 Год назад +1

    Excellent explanation sir. Thank you

  • @Ms.psychology
    @Ms.psychology 14 дней назад

    Marvelous 👍

  • @Kuil..
    @Kuil.. 5 месяцев назад +2

    Who is watching this video on 2024 June 😂 from tamilnadu who can't understand the language but understood the concept 😊🎉

    • @favio325
      @favio325 5 месяцев назад

      Which course did you study?

  • @ashishtyagi6152
    @ashishtyagi6152 Год назад +1

    Wow amazing 😌😌

  • @God_5
    @God_5 3 месяца назад +6

    Who is here before exam

  • @DevHirani-b9v
    @DevHirani-b9v Год назад +1

    very nicely explained

  • @nextleveltech267
    @nextleveltech267 Год назад +1

    Thank you so much sir 🙏❤️

  • @bhatsabreena9141
    @bhatsabreena9141 2 года назад +21

    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 ❣️❣️❣️❣️

  • @MrzafiOfficial
    @MrzafiOfficial Год назад +1

    kamal ha sir ji lub u

  • @AnupSingh92148
    @AnupSingh92148 Год назад +2

    Love you Sir

  • @sakibuzzamansakib274
    @sakibuzzamansakib274 2 месяца назад

    BEST TEACHER

  • @varadacharya2802
    @varadacharya2802 Год назад +5

    sir can you please also include topics in your DAA playlist like segment tree,red black tree,skip list etc

  • @playtune9217
    @playtune9217 Год назад +3

    The correct statement is: "Every tree is a graph, but not every graph is a tree". you mentioned it wrong in this video

  • @DevSingh-xs9ey
    @DevSingh-xs9ey 2 года назад +2

    Nice video sir !!

  • @shubhamdas6519
    @shubhamdas6519 Год назад +1

    thanks a lot sir......

  • @Chhanendrasahu88
    @Chhanendrasahu88 9 месяцев назад +1

    thanks sir

  • @JagdishGodara-cq4lr
    @JagdishGodara-cq4lr 5 месяцев назад

    really you are great sir

  • @BrainGamesChallenge
    @BrainGamesChallenge 4 месяца назад

    Sir you are great thank you soo muchhh❤

  • @indiankitchen5215
    @indiankitchen5215 Год назад +1

    Kl mera paper H. I hope ye vedio mere kaam aaye

  • @Prathem1
    @Prathem1 Год назад +1

    Too good👍

  • @dimple-raj15
    @dimple-raj15 Год назад

    You are Great sir

  • @krishnabtech4766
    @krishnabtech4766 9 дней назад +2

    Exam in 10 hours 😅.. Bharthi Vidyapeeth students (mumbai)appear here ❤

  • @shubham3438
    @shubham3438 Год назад +1

    Life saviour

  • @mohitkaushik21
    @mohitkaushik21 Год назад +1

    Thanks sir 😊

  • @45_vrushalinikam19
    @45_vrushalinikam19 10 месяцев назад +1

    ❤❤thank you

  • @rishitabiswas8533
    @rishitabiswas8533 9 месяцев назад +1

    Every tree is a graph, but not every graph is a tree.

  • @nandanhegde4667
    @nandanhegde4667 Год назад +1

    Became your fan🔥🔥❤️

  • @puran1075
    @puran1075 2 года назад

    Kl paper hai.... Thanks for explaining

  • @Revathikuttum
    @Revathikuttum 6 месяцев назад

    Thankyou sir ❤

  • @SnehalPatil-ek7lz
    @SnehalPatil-ek7lz 11 месяцев назад

    Thank you so much sir

  • @TueestyyFrog
    @TueestyyFrog 10 месяцев назад +1

    Love you hogya g

  • @Besuge_edits.
    @Besuge_edits. 5 месяцев назад

    Thank you so much

  • @vlogfrommoon
    @vlogfrommoon 9 месяцев назад +1

    EVERY TREE IS A GRAPH BUT EVERY GRAPH MAY OR MAY NOT BE A TREE

  • @vedant6460
    @vedant6460 Год назад +1

    great

  • @fatimaiqra2169
    @fatimaiqra2169 2 года назад +2

    thanks😇

  • @sscode3809
    @sscode3809 2 года назад +1

    Your teaching technique is very imagine sir👍👍💯💯❣️

  • @vedant6460
    @vedant6460 Год назад +1

    thanks

  • @HimAnshuGaurKK1120
    @HimAnshuGaurKK1120 8 месяцев назад

    Thanku sir❤