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

Поділитися
Вставка
  • Опубліковано 13 вер 2022
  • 👉Subscribe to our new channel: / @varunainashots
    ►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 UA-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
    #breadthfirstsearch #depthfirstsearch #algorithm

КОМЕНТАРІ • 361

  • @vempatikavya4181
    @vempatikavya4181 Рік тому +466

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

    • @eiji11282
      @eiji11282 Рік тому +49

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

    • @shahidjack373
      @shahidjack373 Рік тому +11

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

  • @adarshjhaxiif-1289
    @adarshjhaxiif-1289 Рік тому +56

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

  • @Manojkumar-po7yu
    @Manojkumar-po7yu Рік тому +45

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

  • @lakshaysharma4000
    @lakshaysharma4000 Рік тому +466

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

    • @Sanjaysview
      @Sanjaysview 9 місяців тому +23

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

    • @ronokjahanmithila7487
      @ronokjahanmithila7487 9 місяців тому +1

      😂😂😂....

    • @dangerousn
      @dangerousn 8 місяців тому +10

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

    • @mrpatel4313
      @mrpatel4313 7 місяців тому +2

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

    • @houseoflofi8442
      @houseoflofi8442 7 місяців тому

      Padhle philosopher k najayaz aulad

  • @ANGRYBUDDIES-ms5fm
    @ANGRYBUDDIES-ms5fm 7 місяців тому +5

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

  • @CartoonTV257
    @CartoonTV257 Рік тому +105

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

  • @rakeshgaming1756
    @rakeshgaming1756 Рік тому +173

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

    • @lagansardana
      @lagansardana Рік тому +1

      areyy wah wah wah wah yahi bolne ko aya si mein

    • @IronheartGamingYoutube
      @IronheartGamingYoutube Рік тому

      Sahi bole bhai

    • @IronheartGamingYoutube
      @IronheartGamingYoutube Рік тому +2

      Ye galat bata ke confusion create kar raha tha

    • @100deep1001
      @100deep1001 Рік тому +6

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

  • @knowledge_of_computer
    @knowledge_of_computer Рік тому +5

    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

  • @shubhammohanty724
    @shubhammohanty724 7 місяців тому +92

    Who is here before exam ?🙂

  • @utkarshsingh2638
    @utkarshsingh2638 5 місяців тому +26

    🎯 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

  • @user-ly1je9gs1x
    @user-ly1je9gs1x 5 місяців тому +6

    All your videos provide a wonderful content 😇

  • @gullusingh3959
    @gullusingh3959 Рік тому +1

    I have been watching your videos since last week.

  • @GeetShah_22
    @GeetShah_22 Рік тому +24

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

  • @PoojanDoshi-tn5ob
    @PoojanDoshi-tn5ob 7 місяців тому +7

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

  • @sakoon_e_qalb7
    @sakoon_e_qalb7 Рік тому +1

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

  • @Ruby..R
    @Ruby..R Рік тому +2

    Finally I finished the playlist sir. Thank you

  • @abhijeetardalkar4400
    @abhijeetardalkar4400 Місяць тому +1

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

  • @shreyabhattacharya74
    @shreyabhattacharya74 4 місяці тому +1

    Wonderful content sir 😍😍, really helpful for quick remembrance

  • @debasmithmohanty2538
    @debasmithmohanty2538 Рік тому +2

    Thanku sir
    Full course done

  • @susenakodumuri2667
    @susenakodumuri2667 10 місяців тому +4

    Awesome lecture sir....🙏🙏

  • @falaksuryavanshi3108
    @falaksuryavanshi3108 Місяць тому +3

    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😊

  • @darshanwagh7578
    @darshanwagh7578 11 місяців тому +1

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

  • @krishnaradhey2814
    @krishnaradhey2814 Рік тому +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 8 місяців тому

      Lmao stfu go listen while your teacher is explaining in class cringe 🤣🤣🤣

  • @RajeshVerma-xh1th
    @RajeshVerma-xh1th Місяць тому +7

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

  • @lakshayiiitm
    @lakshayiiitm 5 місяців тому +6

    Hey, you are doing a great job.

  • @gt9579
    @gt9579 5 місяців тому +14

    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 5 місяців тому +1

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

  • @akashpandey4677
    @akashpandey4677 Рік тому +1

    I subscibed .... your way of teaching is such that no professor can explain

  • @varadacharya2802
    @varadacharya2802 11 місяців тому +5

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

  • @lilshxv
    @lilshxv 7 днів тому

    honest reaction- "Dil khush kar ditta!"

  • @arunimachakraborty1175
    @arunimachakraborty1175 6 місяців тому +1

    Excellent explanation sir. Thank you

  • @ShaikSameer-hn9ui
    @ShaikSameer-hn9ui 4 місяці тому +2

    Totally loved it maan❤

  • @hackcodesfree9200
    @hackcodesfree9200 Рік тому +5

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

  • @basulamichane8312
    @basulamichane8312 Рік тому +5

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

  • @akashpandey4677
    @akashpandey4677 Рік тому +1

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

  • @bhatsabreena9141
    @bhatsabreena9141 Рік тому +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 ❣️❣️❣️❣️

  • @zaributt9918
    @zaributt9918 Рік тому +2

    i will pass my wxams bcz of u thanks

  • @ub_prabh
    @ub_prabh Рік тому +3

    Perfectly Explained..

  • @DevSingh-xs9ey
    @DevSingh-xs9ey Рік тому +2

    Nice video sir !!

  • @bhargavkamble8407
    @bhargavkamble8407 Рік тому

    Great🔥

  • @sakshiattri6118
    @sakshiattri6118 11 місяців тому +3

    your teaching style is mesmerizing sir😊

  • @explore_with_me15
    @explore_with_me15 Рік тому

    You are Great sir

  • @mohammeddanish3360
    @mohammeddanish3360 6 місяців тому

    PERFECT easy way me samjhaa diyaa
    or mere clg me professor ne itnaa complicated way me samjhayaa thaa ke kuch nahi samajh aayaa
    par ye viedow dekh ke aagyaa samajh

  • @jaskamalkaur5343
    @jaskamalkaur5343 Рік тому +1

    Thanku so much sir 😊

  • @mdsabbiralshafi8152
    @mdsabbiralshafi8152 Рік тому +1

    u r awesome guru. Love u

  • @user-fc2xt1cx7s
    @user-fc2xt1cx7s 11 місяців тому +1

    You are just superb

  • @binduranidas6733
    @binduranidas6733 Рік тому +1

    Thank you so much

  • @Shashank-lh8bq
    @Shashank-lh8bq Рік тому +1

    Wow !! Wonderful explanation ♡

  • @SabbirAhmed-si9yt
    @SabbirAhmed-si9yt Місяць тому

    just wanted to let you know that ,youre videos are getting suggested by the faculty of our university for better understanding!

  • @nandanhegde4667
    @nandanhegde4667 Рік тому +1

    Became your fan🔥🔥❤️

  • @null354
    @null354 Рік тому +1

    Well explained within time... thanks sir

  • @muhammadshoaibms862
    @muhammadshoaibms862 Рік тому +3

    Such A Great Teacher Hats off💯💯Sir❤❣

  • @laibaharoon4636
    @laibaharoon4636 11 місяців тому +1

    Sir you are great

  • @NinjaCoders
    @NinjaCoders Рік тому

    awesome Example

  • @chetnakashu1776
    @chetnakashu1776 Рік тому +2

    Thank you so much sir😊

  • @sheikhraisulislam4483
    @sheikhraisulislam4483 Рік тому

    awesome sir

  • @user-nu4eb2ol1o
    @user-nu4eb2ol1o 10 місяців тому +1

    kamal ha sir ji lub u

  • @codewithadii
    @codewithadii Рік тому +3

    tomorrow is my exam and you helped me alot ❤

    • @sumansy18
      @sumansy18 10 місяців тому

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

  • @user-om7yn6xl3e
    @user-om7yn6xl3e 9 місяців тому +1

    very nicely explained

  • @akashraghu1c113
    @akashraghu1c113 10 місяців тому +1

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

  • @cfyghu
    @cfyghu 7 місяців тому +1

    Best teacher I have ever seen in my life❤

  • @NadiaKanwal-mm6zp
    @NadiaKanwal-mm6zp 15 днів тому

    Thank you sir Allah ap ko ilm ata Kara mazeed

  • @vismayavr7241
    @vismayavr7241 10 місяців тому +2

    Super explanation sir...
    Great teacher

  • @gauravsahu827
    @gauravsahu827 Рік тому +1

    Thank you ❣️ sir

  • @ashishtyagi6152
    @ashishtyagi6152 11 місяців тому +1

    Wow amazing 😌😌

  • @Sara_eunbi
    @Sara_eunbi Місяць тому

    Well explained Sir you are the best

  • @mohitkaushik21
    @mohitkaushik21 Рік тому +1

    Thanks sir 😊

  • @SocialAnalytics-lc4fd
    @SocialAnalytics-lc4fd 10 днів тому

    kmall sir level great teaching method

  • @asiyaprincess6913
    @asiyaprincess6913 Рік тому +1

    Very nice explained sir 👌👌👌

  • @fatimaiqra2169
    @fatimaiqra2169 Рік тому +2

    thanks😇

  • @mohitkaushik21
    @mohitkaushik21 Рік тому +1

    Thanks sir

  • @shubhamdas6519
    @shubhamdas6519 Рік тому +1

    thanks a lot sir......

  • @rishansarma7413
    @rishansarma7413 8 місяців тому

    Love u man❤

  • @rdrahuldhiman19
    @rdrahuldhiman19 4 місяці тому +2

    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.

  • @nextleveltech267
    @nextleveltech267 8 місяців тому +1

    Thank you so much sir 🙏❤️

  • @sashikantasahoo378
    @sashikantasahoo378 4 місяці тому +2

    Sir Every tree is a graph but every graph may or may not be tree.

  • @minhadesigners4079
    @minhadesigners4079 Рік тому +2

    Great teacher 👍

  • @Prathem1
    @Prathem1 7 місяців тому +1

    Too good👍

  • @user-by8wo3cc3n
    @user-by8wo3cc3n 7 місяців тому +1

    Bloody sweet sirr🎉❤

  • @CK_Wiings
    @CK_Wiings 11 місяців тому +1

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

  • @royalsinghrajpoot4646
    @royalsinghrajpoot4646 4 місяці тому +1

    Thanks crystal clear🎉🎉🎉❤

  • @ashishrai2315
    @ashishrai2315 Рік тому +2

    Great explanation sir!!👏

  • @benjosejoseph1213
    @benjosejoseph1213 Рік тому +4

    Sir നമ്മുടെ മുത്താണ് ❤😁

  • @vedant6460
    @vedant6460 Рік тому +1

    great

  • @mchaudhary120
    @mchaudhary120 5 місяців тому +2

    Thank you sir 🥰

  • @MuhammadUmairShaykh
    @MuhammadUmairShaykh 3 місяці тому

    Excellent ❤❤❤❤

  • @ranajyoti99
    @ranajyoti99 Рік тому +1

    Super sir

  • @indiankitchen5215
    @indiankitchen5215 10 місяців тому +1

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

  • @AnupSingh92148
    @AnupSingh92148 Рік тому +2

    Love you Sir

  • @JagdishGodara-cq4lr
    @JagdishGodara-cq4lr 4 дні тому

    really you are great sir

  • @BhupinderKaur-vg2mc
    @BhupinderKaur-vg2mc Рік тому +1

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

  • @JuzTalk
    @JuzTalk Рік тому

    Thanks anna

  • @HASSANMUSHTAQ-yr2xv
    @HASSANMUSHTAQ-yr2xv Місяць тому

    Sir g ap ny tu bohat taraki kar li he😂😅

  • @shubham3438
    @shubham3438 Рік тому +1

    Life saviour

  • @claricestarling9668
    @claricestarling9668 Рік тому

    best videoooo

  • @PakWeekly
    @PakWeekly 9 місяців тому

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

  • @ssndas5833
    @ssndas5833 9 місяців тому +1

    Thanks sir respect from pakistan ❤❤❤❤❤❤

  • @AinasShab-mb2nm
    @AinasShab-mb2nm 7 місяців тому +2

    Amazing

  • @mr.jaiminkumarmevada8082
    @mr.jaiminkumarmevada8082 Рік тому

    Really... your videos very helpful for us........ 🙏

  • @devendrasingh9891
    @devendrasingh9891 Рік тому +1

    Amazing define ☺️

  • @vedant6460
    @vedant6460 Рік тому +1

    helpful