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

ความคิดเห็น • 357

  • @vempatikavya4181
    @vempatikavya4181 ปีที่แล้ว +465

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

    • @vjkdestinyyt4676
      @vjkdestinyyt4676 ปีที่แล้ว +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

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

    • @vjkdestinyyt4676
      @vjkdestinyyt4676 ปีที่แล้ว +3

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

    • @sahirmohammad9027
      @sahirmohammad9027 ปีที่แล้ว

      @@vjkdestinyyt4676 tum LPU ke ho ryt😂😂😂

    • @vjkdestinyyt4676
      @vjkdestinyyt4676 ปีที่แล้ว

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

  • @lakshaysharma4000
    @lakshaysharma4000 ปีที่แล้ว +459

    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 หลายเดือนก่อน +1

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

    • @houseoflofi8442
      @houseoflofi8442 7 หลายเดือนก่อน

      Padhle philosopher k najayaz aulad

  • @rakeshgaming1756
    @rakeshgaming1756 ปีที่แล้ว +171

    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

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

  • @shubhammohanty724
    @shubhammohanty724 7 หลายเดือนก่อน +77

    Who is here before exam ?🙂

    • @payal7819
      @payal7819 2 หลายเดือนก่อน +1

      Yes bro😂

    • @huriarauf189
      @huriarauf189 หลายเดือนก่อน

      Am

    • @itssipun9086
      @itssipun9086 29 วันที่ผ่านมา +1

      Tomorrow is my exam 🙂

    • @rupeshyadav3181
      @rupeshyadav3181 29 วันที่ผ่านมา +1

      Me at 4am

    • @pranshulvijayvergia4213
      @pranshulvijayvergia4213 28 วันที่ผ่านมา +1

      10 baje dekh rha hu, 2 baje exam hai 😂

  • @adarshjhaxiif-1289
    @adarshjhaxiif-1289 11 หลายเดือนก่อน +55

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

    • @LordSarcasticVlogger
      @LordSarcasticVlogger 3 หลายเดือนก่อน +2

      THANK YOU ADARSH ..LOVE U 2

    • @strawberryrafi4662
      @strawberryrafi4662 2 หลายเดือนก่อน +1

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

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

  • @Manojkumar-po7yu
    @Manojkumar-po7yu ปีที่แล้ว +45

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

  • @ANGRYBUDDIES-ms5fm
    @ANGRYBUDDIES-ms5fm 7 หลายเดือนก่อน +5

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

  • @utkarshsingh2638
    @utkarshsingh2638 5 หลายเดือนก่อน +25

    🎯 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

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

  • @PoojanDoshi-tn5ob
    @PoojanDoshi-tn5ob 7 หลายเดือนก่อน +7

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

  • @user-ly1je9gs1x
    @user-ly1je9gs1x 5 หลายเดือนก่อน +6

    All your videos provide a wonderful content 😇

  • @RajeshVerma-xh1th
    @RajeshVerma-xh1th หลายเดือนก่อน +7

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

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

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

  • @gullusingh3959
    @gullusingh3959 ปีที่แล้ว +1

    I have been watching your videos since last week.

  • @shreyabhattacharya74
    @shreyabhattacharya74 3 หลายเดือนก่อน +1

    Wonderful content sir 😍😍, really helpful for quick remembrance

  • @susenakodumuri2667
    @susenakodumuri2667 10 หลายเดือนก่อน +4

    Awesome lecture sir....🙏🙏

  • @arunimachakraborty1175
    @arunimachakraborty1175 6 หลายเดือนก่อน +1

    Excellent explanation sir. Thank you

  • @abhijeetardalkar4400
    @abhijeetardalkar4400 หลายเดือนก่อน +1

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

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

  • @debasmithmohanty2538
    @debasmithmohanty2538 ปีที่แล้ว +2

    Thanku sir
    Full course done

  • @lakshayiiitm
    @lakshayiiitm 5 หลายเดือนก่อน +6

    Hey, you are doing a great job.

  • @SocialAnalytics-lc4fd
    @SocialAnalytics-lc4fd 3 วันที่ผ่านมา

    kmall sir level great teaching method

  • @Ruby..R
    @Ruby..R ปีที่แล้ว +2

    Finally I finished the playlist sir. Thank you

  • @basulamichane8312
    @basulamichane8312 ปีที่แล้ว +5

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

  • @varadacharya2802
    @varadacharya2802 11 หลายเดือนก่อน +5

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

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

  • @lilshxv
    @lilshxv 20 ชั่วโมงที่ผ่านมา

    honest reaction- "Dil khush kar ditta!"

  • @zaributt9918
    @zaributt9918 ปีที่แล้ว +2

    i will pass my wxams bcz of u thanks

  • @ShaikSameer-hn9ui
    @ShaikSameer-hn9ui 4 หลายเดือนก่อน +2

    Totally loved it maan❤

  • @sakoon_e_qalb7
    @sakoon_e_qalb7 ปีที่แล้ว +1

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

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

  • @darshanwagh7578
    @darshanwagh7578 11 หลายเดือนก่อน +1

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

  • @Sara_eunbi
    @Sara_eunbi หลายเดือนก่อน

    Well explained Sir you are the best

  • @ub_prabh
    @ub_prabh ปีที่แล้ว +3

    Perfectly Explained..

  • @akashpandey4677
    @akashpandey4677 ปีที่แล้ว +1

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

  • @muhammadshoaibms862
    @muhammadshoaibms862 ปีที่แล้ว +3

    Such A Great Teacher Hats off💯💯Sir❤❣

  • @explore_with_me15
    @explore_with_me15 ปีที่แล้ว

    You are Great sir

  • @hackcodesfree9200
    @hackcodesfree9200 ปีที่แล้ว +5

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

  • @vismayavr7241
    @vismayavr7241 10 หลายเดือนก่อน +2

    Super explanation sir...
    Great teacher

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

  • @parthgurav7732
    @parthgurav7732 วันที่ผ่านมา

    Thanks sir ✨️

  • @binduranidas6733
    @binduranidas6733 ปีที่แล้ว +1

    Thank you so much

  • @user-fc2xt1cx7s
    @user-fc2xt1cx7s 11 หลายเดือนก่อน +1

    You are just superb

  • @akashpandey4677
    @akashpandey4677 ปีที่แล้ว +1

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

  • @mdsabbiralshafi8152
    @mdsabbiralshafi8152 ปีที่แล้ว +1

    u r awesome guru. Love u

  • @laibaharoon4636
    @laibaharoon4636 11 หลายเดือนก่อน +1

    Sir you are great

  • @DevSingh-xs9ey
    @DevSingh-xs9ey ปีที่แล้ว +2

    Nice video sir !!

  • @chetnakashu1776
    @chetnakashu1776 ปีที่แล้ว +2

    Thank you so much sir😊

  • @user-om7yn6xl3e
    @user-om7yn6xl3e 9 หลายเดือนก่อน +1

    very nicely explained

  • @bhargavkamble8407
    @bhargavkamble8407 ปีที่แล้ว

    Great🔥

  • @NadiaKanwal-mm6zp
    @NadiaKanwal-mm6zp 8 วันที่ผ่านมา

    Thank you sir Allah ap ko ilm ata Kara mazeed

  • @codewithadii
    @codewithadii 11 หลายเดือนก่อน +3

    tomorrow is my exam and you helped me alot ❤

    • @sumansy18
      @sumansy18 10 หลายเดือนก่อน

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

  • @null354
    @null354 ปีที่แล้ว +1

    Well explained within time... thanks sir

  • @NinjaCoders
    @NinjaCoders ปีที่แล้ว

    awesome Example

  • @sashikantasahoo378
    @sashikantasahoo378 4 หลายเดือนก่อน +2

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

  • @royalsinghrajpoot4646
    @royalsinghrajpoot4646 4 หลายเดือนก่อน +1

    Thanks crystal clear🎉🎉🎉❤

  • @playtune9217
    @playtune9217 6 หลายเดือนก่อน +3

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

  • @mchaudhary120
    @mchaudhary120 5 หลายเดือนก่อน +2

    Thank you sir 🥰

  • @AinasShab-mb2nm
    @AinasShab-mb2nm 7 หลายเดือนก่อน +2

    Amazing

  • @gauravsahu827
    @gauravsahu827 ปีที่แล้ว +1

    Thank you ❣️ sir

  • @nextleveltech267
    @nextleveltech267 7 หลายเดือนก่อน +1

    Thank you so much sir 🙏❤️

  • @jaskamalkaur5343
    @jaskamalkaur5343 ปีที่แล้ว +1

    Thanku so much sir 😊

  • @CK_Wiings
    @CK_Wiings 11 หลายเดือนก่อน +1

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

  • @akashraghu1c113
    @akashraghu1c113 10 หลายเดือนก่อน +1

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

  • @mohitkaushik21
    @mohitkaushik21 ปีที่แล้ว +1

    Thanks sir 😊

  • @Revathikuttum
    @Revathikuttum 16 วันที่ผ่านมา

    Thankyou sir ❤

  • @user-by8wo3cc3n
    @user-by8wo3cc3n 6 หลายเดือนก่อน +1

    Bloody sweet sirr🎉❤

  • @Shashank-lh8bq
    @Shashank-lh8bq 11 หลายเดือนก่อน +1

    Wow !! Wonderful explanation ♡

  • @shubhamdas6519
    @shubhamdas6519 11 หลายเดือนก่อน +1

    thanks a lot sir......

  • @mohitkaushik21
    @mohitkaushik21 ปีที่แล้ว +1

    Thanks sir

  • @sheikhraisulislam4483
    @sheikhraisulislam4483 ปีที่แล้ว

    awesome sir

  • @Chhanendrasahu88
    @Chhanendrasahu88 3 หลายเดือนก่อน +1

    thanks sir

  • @MuhammadUmairShaykh
    @MuhammadUmairShaykh 3 หลายเดือนก่อน

    Excellent ❤❤❤❤

  • @ashishtyagi6152
    @ashishtyagi6152 10 หลายเดือนก่อน +1

    Wow amazing 😌😌

  • @AnupSingh92148
    @AnupSingh92148 ปีที่แล้ว +2

    Love you Sir

  • @asiyaprincess6913
    @asiyaprincess6913 ปีที่แล้ว +1

    Very nice explained sir 👌👌👌

  • @ashishrai2315
    @ashishrai2315 ปีที่แล้ว +2

    Great explanation sir!!👏

  • @sscode3809
    @sscode3809 ปีที่แล้ว +1

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

  • @ssndas5833
    @ssndas5833 9 หลายเดือนก่อน +1

    Thanks sir respect from pakistan ❤❤❤❤❤❤

  • @monsterkaley5365
    @monsterkaley5365 ปีที่แล้ว +3

    at 0:50 "Every graph is tree???" "EVERY TREE IS A GRAPH".

    • @Ayush37262
      @Ayush37262 ปีที่แล้ว +1

      Ulta bol diya hai bhai sir ne

  • @fatimaiqra2169
    @fatimaiqra2169 ปีที่แล้ว +2

    thanks😇

  • @Prathem1
    @Prathem1 7 หลายเดือนก่อน +1

    Too good👍

  • @vatsalspatel007
    @vatsalspatel007 ปีที่แล้ว +6

    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

  • @user-nu4eb2ol1o
    @user-nu4eb2ol1o 9 หลายเดือนก่อน +1

    kamal ha sir ji lub u

  • @Pegasus_the390
    @Pegasus_the390 2 หลายเดือนก่อน

    Sirrr hatsss of to u sir❤❤

  • @rishansarma7413
    @rishansarma7413 8 หลายเดือนก่อน

    Love u man❤

  • @mohammeddanish3360
    @mohammeddanish3360 5 หลายเดือนก่อน

    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

  • @PakWeekly
    @PakWeekly 9 หลายเดือนก่อน

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

  • @themars69
    @themars69 3 หลายเดือนก่อน +1

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

  • @vedant6460
    @vedant6460 ปีที่แล้ว +1

    great

  • @JuzTalk
    @JuzTalk ปีที่แล้ว

    Thanks anna

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

    • @GateSmashers
      @GateSmashers  หลายเดือนก่อน +2

      Congratulations

  • @nandanhegde4667
    @nandanhegde4667 ปีที่แล้ว +1

    Became your fan🔥🔥❤️

  • @45_vrushalinikam19
    @45_vrushalinikam19 4 หลายเดือนก่อน +1

    ❤❤thank you

  • @animeshhazra6061
    @animeshhazra6061 ปีที่แล้ว +1

    Nice

  • @cfyghu
    @cfyghu 7 หลายเดือนก่อน +1

    Best teacher I have ever seen in my life❤

  • @ranajyoti99
    @ranajyoti99 ปีที่แล้ว +1

    Super sir

  • @minhadesigners4079
    @minhadesigners4079 ปีที่แล้ว +2

    Great teacher 👍