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

Sdílet
Vložit
  • čas přidán 13. 09. 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 CZcams: / 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

Komentáře • 371

  • @lakshaysharma4000
    @lakshaysharma4000 Před rokem +488

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

    • @Sanjaysview
      @Sanjaysview Před 10 měsíci +24

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

    • @ronokjahanmithila7487
      @ronokjahanmithila7487 Před 10 měsíci +1

      😂😂😂....

    • @dangerousn
      @dangerousn Před 8 měsíci +10

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

    • @mrpatel4313
      @mrpatel4313 Před 7 měsíci +2

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

    • @houseoflofi8442
      @houseoflofi8442 Před 7 měsíci

      Padhle philosopher k najayaz aulad

  • @shubhammohanty724
    @shubhammohanty724 Před 8 měsíci +125

    Who is here before exam ?🙂

  • @vempatikavya4181
    @vempatikavya4181 Před rokem +472

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

    • @eiji11282
      @eiji11282 Před rokem +49

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

    • @shahidjack373
      @shahidjack373 Před rokem +11

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

    • @eiji11282
      @eiji11282 Před rokem +3

      @@shahidjack373 ahhh lucky.. i have mine last that is programming and that is on 14 😂😂first time giving offline exams

    • @sahirmohammad9027
      @sahirmohammad9027 Před rokem

      @@eiji11282 tum LPU ke ho ryt😂😂😂

    • @eiji11282
      @eiji11282 Před rokem

      @@sahirmohammad9027 thode se miss kr gaye 😂cu ka hoo

  • @adarshjhaxiif-1289
    @adarshjhaxiif-1289 Před rokem +60

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

  • @Manojkumar-po7yu
    @Manojkumar-po7yu Před rokem +45

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

  • @ANGRYBUDDIES-ms5fm
    @ANGRYBUDDIES-ms5fm Před 8 měsíci +5

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

  • @rakeshgaming1756
    @rakeshgaming1756 Před rokem +180

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

    • @lagansardana
      @lagansardana Před rokem +1

      areyy wah wah wah wah yahi bolne ko aya si mein

    • @IronheartGamingYoutube
      @IronheartGamingYoutube Před rokem

      Sahi bole bhai

    • @IronheartGamingYoutube
      @IronheartGamingYoutube Před rokem +2

      Ye galat bata ke confusion create kar raha tha

    • @100deep1001
      @100deep1001 Před rokem +9

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

  • @CartoonTV257
    @CartoonTV257 Před rokem +106

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

  • @PoojanDoshi-tn5ob
    @PoojanDoshi-tn5ob Před 7 měsíci +7

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

  • @user-ly1je9gs1x
    @user-ly1je9gs1x Před 6 měsíci +6

    All your videos provide a wonderful content 😇

  • @gullusingh3959
    @gullusingh3959 Před rokem +1

    I have been watching your videos since last week.

  • @knowledge_of_computer
    @knowledge_of_computer Před rokem +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

  • @shreyabhattacharya74
    @shreyabhattacharya74 Před 4 měsíci +1

    Wonderful content sir 😍😍, really helpful for quick remembrance

  • @utkarshsingh2638
    @utkarshsingh2638 Před 6 měsíci +27

    🎯 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

  • @Ruby..R
    @Ruby..R Před rokem +2

    Finally I finished the playlist sir. Thank you

  • @debasmithmohanty2538
    @debasmithmohanty2538 Před rokem +2

    Thanku sir
    Full course done

  • @susenakodumuri2667
    @susenakodumuri2667 Před 10 měsíci +4

    Awesome lecture sir....🙏🙏

  • @arunimachakraborty1175
    @arunimachakraborty1175 Před 7 měsíci +1

    Excellent explanation sir. Thank you

  • @GeetShah_22
    @GeetShah_22 Před rokem +24

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

  • @sakoon_e_qalb7
    @sakoon_e_qalb7 Před rokem +1

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

  • @lakshayiiitm
    @lakshayiiitm Před 6 měsíci +6

    Hey, you are doing a great job.

  • @binduranidas6733
    @binduranidas6733 Před rokem +1

    Thank you so much

  • @gt9579
    @gt9579 Před 6 měsíci +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 Před 6 měsíci +1

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

  • @varadacharya2802
    @varadacharya2802 Před rokem +5

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

  • @ShaikSameer-hn9ui
    @ShaikSameer-hn9ui Před 5 měsíci +2

    Totally loved it maan❤

  • @chetnakashu1776
    @chetnakashu1776 Před rokem +2

    Thank you so much sir😊

  • @akashpandey4677
    @akashpandey4677 Před rokem +1

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

  • @zaributt9918
    @zaributt9918 Před rokem +2

    i will pass my wxams bcz of u thanks

  • @ub_prabh
    @ub_prabh Před rokem +3

    Perfectly Explained..

  • @user-fc2xt1cx7s
    @user-fc2xt1cx7s Před rokem +1

    You are just superb

  • @gauravsahu827
    @gauravsahu827 Před rokem +1

    Thank you ❣️ sir

  • @krishnaradhey2814
    @krishnaradhey2814 Před rokem +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 Před 8 měsíci

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

  • @explore_with_me15
    @explore_with_me15 Před rokem

    You are Great sir

  • @laibaharoon4636
    @laibaharoon4636 Před rokem +1

    Sir you are great

  • @mdsabbiralshafi8152
    @mdsabbiralshafi8152 Před rokem +1

    u r awesome guru. Love u

  • @mohitkaushik21
    @mohitkaushik21 Před rokem +1

    Thanks sir 😊

  • @jaskamalkaur5343
    @jaskamalkaur5343 Před rokem +1

    Thanku so much sir 😊

  • @fatimaiqra2169
    @fatimaiqra2169 Před rokem +2

    thanks😇

  • @abhijeetardalkar4400
    @abhijeetardalkar4400 Před 2 měsíci +1

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

  • @bhargavkamble8407
    @bhargavkamble8407 Před rokem

    Great🔥

  • @mohitkaushik21
    @mohitkaushik21 Před rokem +1

    Thanks sir

  • @akashraghu1c113
    @akashraghu1c113 Před 11 měsíci +1

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

  • @shubhamdas6519
    @shubhamdas6519 Před rokem +1

    thanks a lot sir......

  • @bhatsabreena9141
    @bhatsabreena9141 Před rokem +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 ❣️❣️❣️❣️

  • @nextleveltech267
    @nextleveltech267 Před 8 měsíci +1

    Thank you so much sir 🙏❤️

  • @akashpandey4677
    @akashpandey4677 Před rokem +1

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

  • @SocialAnalytics-lc4fd
    @SocialAnalytics-lc4fd Před 23 dny

    kmall sir level great teaching method

  • @Sara_eunbi
    @Sara_eunbi Před měsícem

    Well explained Sir you are the best

  • @NinjaCoders
    @NinjaCoders Před rokem

    awesome Example

  • @darshanwagh7578
    @darshanwagh7578 Před rokem +1

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

  • @royalsinghrajpoot4646
    @royalsinghrajpoot4646 Před 4 měsíci +1

    Thanks crystal clear🎉🎉🎉❤

  • @DevSingh-xs9ey
    @DevSingh-xs9ey Před rokem +2

    Nice video sir !!

  • @SabbirAhmed-si9yt
    @SabbirAhmed-si9yt Před 2 měsíci

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

  • @RajeshVerma-xh1th
    @RajeshVerma-xh1th Před 2 měsíci +7

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

  • @user-om7yn6xl3e
    @user-om7yn6xl3e Před 10 měsíci +1

    very nicely explained

  • @JuzTalk
    @JuzTalk Před rokem

    Thanks anna

  • @JagdishGodara-cq4lr
    @JagdishGodara-cq4lr Před 18 dny

    really you are great sir

  • @shubham3438
    @shubham3438 Před rokem +1

    Life saviour

  • @null354
    @null354 Před rokem +1

    Well explained within time... thanks sir

  • @sheikhraisulislam4483

    awesome sir

  • @vedant6460
    @vedant6460 Před rokem +1

    great

  • @basulamichane8312
    @basulamichane8312 Před rokem +5

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

  • @Mallaa62627
    @Mallaa62627 Před rokem

    Thank u

  • @vedant6460
    @vedant6460 Před rokem +1

    thanks

  • @ashishtyagi6152
    @ashishtyagi6152 Před 11 měsíci +1

    Wow amazing 😌😌

  • @AnupSingh92148
    @AnupSingh92148 Před rokem +2

    Love you Sir

  • @45_vrushalinikam19
    @45_vrushalinikam19 Před 5 měsíci +1

    ❤❤thank you

  • @lilshxv
    @lilshxv Před 21 dnem

    honest reaction- "Dil khush kar ditta!"

  • @parthgurav7732
    @parthgurav7732 Před 22 dny

    Thanks sir ✨️

  • @Revathikuttum
    @Revathikuttum Před měsícem

    Thankyou sir ❤

  • @Prathem1
    @Prathem1 Před 8 měsíci +1

    Too good👍

  • @CK_Wiings
    @CK_Wiings Před rokem +1

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

  • @user-by8wo3cc3n
    @user-by8wo3cc3n Před 7 měsíci +1

    Bloody sweet sirr🎉❤

  • @MuhammadUmairShaykh
    @MuhammadUmairShaykh Před 4 měsíci

    Excellent ❤❤❤❤

  • @NadiaKanwal-mm6zp
    @NadiaKanwal-mm6zp Před 29 dny

    Thank you sir Allah ap ko ilm ata Kara mazeed

  • @hackcodesfree9200
    @hackcodesfree9200 Před rokem +5

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

  • @sakshiattri6118
    @sakshiattri6118 Před rokem +3

    your teaching style is mesmerizing sir😊

  • @vedant6460
    @vedant6460 Před rokem +1

    helpful

  • @mchaudhary120
    @mchaudhary120 Před 6 měsíci +2

    Thank you sir 🥰

  • @cfyghu
    @cfyghu Před 8 měsíci +1

    Best teacher I have ever seen in my life❤

  • @Chhanendrasahu88
    @Chhanendrasahu88 Před 4 měsíci +1

    thanks sir

  • @sakshipriya6064
    @sakshipriya6064 Před 3 měsíci

    thank youu sir

  • @falaksuryavanshi3108
    @falaksuryavanshi3108 Před 2 měsíci +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😊

  • @Shashank-lh8bq
    @Shashank-lh8bq Před rokem +1

    Wow !! Wonderful explanation ♡

  • @rishansarma7413
    @rishansarma7413 Před 9 měsíci

    Love u man❤

  • @ranajyoti99
    @ranajyoti99 Před rokem +1

    Super sir

  • @PakWeekly
    @PakWeekly Před 10 měsíci

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

  • @AinasShab-mb2nm
    @AinasShab-mb2nm Před 7 měsíci +2

    Amazing

  • @minhadesigners4079
    @minhadesigners4079 Před rokem +2

    Great teacher 👍

  • @NajafAbbas-hb7pw
    @NajafAbbas-hb7pw Před měsícem

    thanku sir

  • @claricestarling9668
    @claricestarling9668 Před rokem

    best videoooo

  • @bhimashajamadar3961
    @bhimashajamadar3961 Před 6 měsíci

    thanks so much

  • @animeshhazra6061
    @animeshhazra6061 Před rokem +1

    Nice

  • @muhammadshoaibms862
    @muhammadshoaibms862 Před rokem +3

    Such A Great Teacher Hats off💯💯Sir❤❣

  • @user-nu4eb2ol1o
    @user-nu4eb2ol1o Před 10 měsíci +1

    kamal ha sir ji lub u

  • @mahnoorbaig5
    @mahnoorbaig5 Před 3 měsíci

    good effort

  • @asiyaprincess6913
    @asiyaprincess6913 Před rokem +1

    Very nice explained sir 👌👌👌

  • @SnehalPatil-ek7lz
    @SnehalPatil-ek7lz Před 6 měsíci

    Thank you so much sir

  • @ssndas5833
    @ssndas5833 Před 10 měsíci +1

    Thanks sir respect from pakistan ❤❤❤❤❤❤

  • @vismayavr7241
    @vismayavr7241 Před 11 měsíci +2

    Super explanation sir...
    Great teacher