Graphs for CP: No Pre-requisites! Simplified Explanation

Sdílet
Vložit
  • čas přidán 13. 09. 2024
  • In this lecture, the aim is to develop an intuitive understanding about graphs and learn about how to represent graphs in computer programs, and two of the main graph algorithms - BFS and DFS or Breadth First Search and Depth First Search.
    This lecture is very important for you if you are into competitive programming or you want to learn about DSA in general.
    Subscribe for more content!
    Link to slides: docs.google.co...
    Timestamps will be added upon premeire.

Komentáře • 148

  • @utkarshgupta9858
    @utkarshgupta9858  Před 2 lety +103

    Likes and Subscribes are the only motivation for me behind these videos and serieses.
    So you know which buttons you have to hit :)

    • @aniketash4738
      @aniketash4738 Před 2 lety

      Aye sir !!!!

    • @rajithramakurthi7732
      @rajithramakurthi7732 Před 2 lety +1

      @Shilash Roy ++

    • @mistake10449
      @mistake10449 Před 2 lety

      amazing video saar

    • @swagnikdhar6010
      @swagnikdhar6010 Před 2 lety

      Just too Good !!!!

    • @gautamgoel2024
      @gautamgoel2024 Před 2 lety +2

      Bhaiya aap ki videos great hain .
      But a small tip to increase your channel growth.
      1. Have a podcast with some you Tuber who have lakh of subscribers .
      Like striver bhaiya, babbar bhaiya, code with Harry , Anuj bhaiya
      2. Have a thumbnail like grandmaster teaching DSA nad CP.
      Its not showing off but because people not know who you are.
      Even my friends don't know who is Utkarsh .
      3. Video a day
      :) Best to publicize your achievements 😎

  • @junhyuklee2364
    @junhyuklee2364 Před 2 lety +111

    I’m not from India, but the videos on your channel has been immensely helpful in improving my algorithmic skills. Plus the fact that you’re a grandmaster alone gives your videos a lot of merit and motivation for me to learn from them. Keep up the good work.

    • @RyanKOnk
      @RyanKOnk Před 2 lety +2

      Yeah UG orz

    • @swagnikdhar6010
      @swagnikdhar6010 Před 2 lety +1

      exactly Its really really such an Honour to learn directly From A GrandMaster @Utkarsh Bhaiya !!!! Thanks a Lot Bhaiya !!!!

    • @sach_760
      @sach_760 Před 2 lety +2

      @@killerboy-mz9bd Look at the timestamp 1:22.

    • @hindustaniyodha9023
      @hindustaniyodha9023 Před 2 lety

      Korean eh

    • @prateekvarshney2280
      @prateekvarshney2280 Před 2 lety

      @@killerboy-mz9bd Bhai tu toh CDS Ke taiyare Kar raha ha

  • @LuthraUtkarsh
    @LuthraUtkarsh Před 2 lety +26

    I have already studied graphs. Just wanted to see your amazing explanation. I would've loved it if this kind of amazing xontent was available 2 years ago. 🎉🎉

  • @alangeorge1090
    @alangeorge1090 Před 2 lety +4

    The 'Goal of the lecture' made me smile :)
    Amazing content as always 💯♥️

  • @rajendraprajapat6113
    @rajendraprajapat6113 Před 2 lety +1

    The best thing about your videos is that you provide the notes as well.
    Thanks bro

  • @dungeon_master-pw2hr
    @dungeon_master-pw2hr Před 9 měsíci

    Please continue the series, you have a very intuitive approach. It helped me build logic for stl and recursion as well. Thanks a lot.

  • @Entertainment15683
    @Entertainment15683 Před 2 lety +19

    Hey bhaiya, can you please teach us Number theory too (basic to advanced) so
    i can solve 1600+ CF on Number theory please bhaiya !! Thank you so much for your efforts . I just love your creative content

  • @hasanmustafa4887
    @hasanmustafa4887 Před 2 lety

    these vids are like a throwback to my jr years when I did same kinda thing with math and physics. being a cse noob great to see vids I can relate to.

  • @Phobos221B
    @Phobos221B Před 2 lety +3

    The increase in the quality of presentation slides is really prominent, orz !!

  • @megakreez
    @megakreez Před 2 lety +1

    Thanks man for these videos, they are really helpful. I really like that you teach why we need something then you explains about it.

  • @Aaryuman
    @Aaryuman Před 2 lety

    Bro it is true that when the teacher has deep knowledge about a concept then in small video he can make our concept crystal clear. Amazing video bro

  • @anmolswarnkar7707
    @anmolswarnkar7707 Před 2 lety +2

    I have practiced graph problems before and this was a nice revision for the basic concepts. Looking forward to more DSA videos. :)

  • @sarthakmaheshwari8818
    @sarthakmaheshwari8818 Před 2 lety +9

    Very excited🔥🔥
    Sir can you please make a CP Sheet to follow to cover up all important types of questions, just like Striver sir did??🙌🙌
    Thanks😁😁

  • @SumitKeshariMCS
    @SumitKeshariMCS Před 2 lety +2

    You content is priceless. CZcamsr like you should get more success.

  • @DeepanshChawla_
    @DeepanshChawla_ Před 2 lety +3

    Utkarsh bhaiyaa ...m so excited to learn from youhh..I know graphs...but most of time I forget the code and also I dont know how to use them as ds...hope your graph videos help me....and aapka recursion vala video acha tha....maine full share kia hai frnd ke saath💯💥👍🏻

  • @unibrow9384
    @unibrow9384 Před 2 lety +11

    Very excited for this. Few practice CF problems that uses the application of bfs/DFS are also included in this right?

    • @utkarshgupta9858
      @utkarshgupta9858  Před 2 lety +10

      Yes practice problems are included.

    • @Code_Solver
      @Code_Solver Před 2 lety +3

      @@utkarshgupta9858 Thank you bayya
      Please include all the practice problems from Codeforces in all coming videos

    • @niraj81
      @niraj81 Před 2 lety +2

      @@killerboy-mz9bd he mentioned that in the video, STL and recursion.

    • @shaniyadav33
      @shaniyadav33 Před 2 lety

      @@killerboy-mz9bd bhai tum to lieutenant colonel banne wala tha

    • @prateekvarshney2280
      @prateekvarshney2280 Před 2 lety

      @@shaniyadav33 Bhai tum phala lieutenant ke spelling sekho warana phir tumsa wahi bolega 😂😂.

  • @o_ToT_oT
    @o_ToT_oT Před 2 lety

    Wow, these contents are so great. Probably the most diligent video introducing graph I have ever watched.😍😍

  • @chiragsachdeva4685
    @chiragsachdeva4685 Před 2 lety

    sir you didnt need to clarify that you were not bragging at the begining...even if you do it you have earned every right to do so!!

  • @arsilvyfish11
    @arsilvyfish11 Před 2 lety +8

    1:02 -> Initial discussion and prerequisites
    2:00 -> What are Graphs? (Basics and components)
    4:33 -> Types of Graphs
    4:50 -> Directed and Undirected Graphs
    6:00 -> Weighted and Unweighted Graphs
    7:40 -> Implementing the Graph in Code
    8:05 -> Adjacency Matrix Representation
    9:30 -> Adjacency List Representation
    12:20 -> Application of Graphs
    13:10 -> Connectivity in Graphs
    15:40 -> Finding a connected component (Searching in Graph)
    18:04 -> Depth First Search (DFS)
    21:25 -> Cycles in a Graph
    22:50 -> Examples for Practice
    23:15 -> Example (Connected components in a graph)
    26:30 -> Example(Find Path in a Grid)
    29:15 -> Minimum number of roads from house to school (Shortest Path Problem in Unweighted Graph)
    Will edit later when I have finished the problems and the video. ✌

  • @ssfdf7751
    @ssfdf7751 Před 2 lety +1

    Very excited to this, thanks for making my life easier

  • @totallyrandom4348
    @totallyrandom4348 Před 2 lety +6

    Hey Utkarsh thanks a lot for the beginner oriented topics! I appreciate the work you're putting in for us but if possible I'd like to request you to churn out as much content before the work at your job gets you busy haha. I know you may try to upload content even then but thats uncertain. I love the stuff you've put out so far and totally understand if you dont want to overburden yourself tho! Thanks!

  • @anexocelisia9377
    @anexocelisia9377 Před 2 lety +1

    Why now the frequency of the videos is reduced? Please continue it ASAP.
    Is the series dead?

  • @Drappyyy
    @Drappyyy Před 2 lety +3

    Thank you so much bhaiya for this great explanation💯🥳🔥
    But I would suggest one thing to add the timestamps if possible so that It will be more useful viewers who already knew something.
    💥🔥💯

  • @pathikritsyam3687
    @pathikritsyam3687 Před 2 lety

    Brother you're like a god to me , pls cover DP,trees and advanced topics for competitive programming too like fenwick tree, advanced graphs etc ,you'll soon reach 100k subs ..thanks again

  • @suvodeeepbiswas6360
    @suvodeeepbiswas6360 Před 2 lety

    Introduction of graph was super cool

  • @SaurabhSingh-ch6nc
    @SaurabhSingh-ch6nc Před 2 lety +1

    Great contribution mere bhai 🔥❤️

  • @aspirant4922
    @aspirant4922 Před 2 lety

    Your videos are too good ... Utkarsh Bhai 💯🔥

  • @balajijangde8470
    @balajijangde8470 Před 2 lety

    Great explaination

  • @satyaprakashsingh952
    @satyaprakashsingh952 Před 2 lety +1

    You should teach us all ds algo as soon as possible.
    Brother

  • @sahilanand30
    @sahilanand30 Před 2 lety

    Best explanation on graph

  • @Shubham-hd3mp
    @Shubham-hd3mp Před 2 lety +1

    Also, cover topics which are not available on youtube.

  • @vtechrepo1927
    @vtechrepo1927 Před 2 lety

    very nice explanation in just 30mins

  • @arunyadav9415
    @arunyadav9415 Před 2 lety +1

    make a video about the problem constraints that should be kept in mind while thinking of a solution

  • @itz_me_imraan02
    @itz_me_imraan02 Před 2 lety

    Expecting 1-2 videos per week... 🙏

  • @aryashjain7893
    @aryashjain7893 Před 2 lety

    Bruhh !!!!! Want more of this content

  • @kaleemahmed3300
    @kaleemahmed3300 Před 2 lety

    That's called quality content

  • @gouravchouhan1790
    @gouravchouhan1790 Před 2 lety

    We want more like that

  • @haroonansari5936
    @haroonansari5936 Před 2 lety

    Thankyou so much for providing this content .

  • @kongzilla2897
    @kongzilla2897 Před 2 lety +2

    Can you please consider making similar tutorial for Game Theory Problems!
    Thanks in advance :)

  • @joshikroshan5584
    @joshikroshan5584 Před 2 lety

    Been waiting for this!!!

  • @amitshukla7827
    @amitshukla7827 Před 2 lety +1

    When will you bring DP series ? Excellent material

  • @ghostmbhoot
    @ghostmbhoot Před 2 lety

    Loved it utkarsh!❤

  • @rajjasoliya9147
    @rajjasoliya9147 Před 2 lety

    Please make similar videos for linked list , stack and queue please bhaiya it's a request, you teach really really well i mean we can understand you language easily coz you don't use complex words for teach thank you bhaiyaa

  • @randomHelper
    @randomHelper Před 2 lety

    Best graph explanation 🤩

  • @darksidekiller5300
    @darksidekiller5300 Před 2 lety

    The only video needed 😍

  • @ddnsdeepak8148
    @ddnsdeepak8148 Před 2 lety +1

    Bro Could you please make a Video on sublime Text Setup in C++

  • @sasageyo9571
    @sasageyo9571 Před 2 lety +1

    Please make a video on your sublime code setup.

  • @AkhilBandamidapallimeb

    At 10:29, the list for the 4th vertex must have 1 also as a connection right. Not included in the list

  • @satyaprakashsingh952
    @satyaprakashsingh952 Před 2 lety +1

    Good explanation......

  • @itz_me_imraan02
    @itz_me_imraan02 Před 2 lety

    Want recursion part 2 with advanced problem set... You 🙌🙌🙏

  • @designpathy
    @designpathy Před 2 lety

    Nice informative video, "So Yeah !"

  • @SKgaming-qy6gn
    @SKgaming-qy6gn Před 2 lety +2

    Wo hooooo!!!!!!!!

  • @083_tusharsachdeva6
    @083_tusharsachdeva6 Před 2 lety +1

    Hey can we be getting a video on time complexity, soon?
    It'll mean alot :)

  • @AnkitYadav-do4vk
    @AnkitYadav-do4vk Před 2 lety +1

    Bhaiyya, I'm struggling with the implementation part of the problems given in this video, please help with the implementation part of graph algorithms in some way, maybe code some sample problems while explaining the thought process involved during the teaching itself.

  • @KobeandNash2413
    @KobeandNash2413 Před 2 lety

    Hi! Thank you very much for the content. Could you consider having a playlist or an alternative way to identify which of your videos are in English and which in Hindi? This would help a lot of us who follow you but only speak one of the 2 languages.

  • @swagnikdhar6010
    @swagnikdhar6010 Před 2 lety

    such an incredible content !!!

  • @anantyadav5382
    @anantyadav5382 Před 2 lety

    It would be great if you organise these lectures in a playlist ...

  • @Vishal-rfx
    @Vishal-rfx Před 2 lety

    @20.07 isn’t adj_list a normal vector instead of list of vectors?

  • @randommindwork6405
    @randommindwork6405 Před 2 lety

    pure gem

  • @yashjain992
    @yashjain992 Před 2 lety

    Great slides!!

  • @thekid3563
    @thekid3563 Před 2 lety +1

    Great Video

  • @kshitijpatil4736
    @kshitijpatil4736 Před 2 lety

    Thanks, it was very helpful

  • @mohammadAmmar71
    @mohammadAmmar71 Před 2 lety

    please continue this series ..

  • @reverenc6641
    @reverenc6641 Před 2 lety

    देवता हो भाई आप !

  • @haoshoku8496
    @haoshoku8496 Před 2 lety

    Leonard Euler created the graph theory!!

  • @RakeshKumar-yh7ro
    @RakeshKumar-yh7ro Před 2 lety

    i found this very helpful

  • @HrittikExplains
    @HrittikExplains Před 2 lety

    I might be wrong but for 10:30 wouldn't 4 Vertice correspond to 1,0 and 3 instead of 0,3?

  • @machuchuan6047
    @machuchuan6047 Před 2 lety

    Please continue the series sir

  • @gautamgoel2024
    @gautamgoel2024 Před 2 lety +2

    Bhaiya aap ki videos great hain .
    But a small tip to increase your channel growth.
    1. Have a podcast with some you Tuber who have lakh of subscribers .
    Like striver bhaiya, babbar bhaiya, code with Harry , Anuj bhaiya
    2. Have a thumbnail like grandmaster teaching DSA nad CP.
    Its not showing off but because people not know who you are.
    Even my friends don't know who is Utkarsh .
    3. Video a day
    :) Best to publicize your achievements 😎

  • @user-nm4vn9tq5o
    @user-nm4vn9tq5o Před 2 lety

    Please bring further videos on graph

  • @justworkfine321
    @justworkfine321 Před 2 lety +2

    Direct graph after recursion samaj me aayega ke upper se jayega

  • @kshitizjaiswal6933
    @kshitizjaiswal6933 Před 2 lety

    That bhool bhulaiya example and leaving a sign I saw in a chhota bheam episode when I was 6 or 7 ig😂 awsome example indeed

  • @mukulsharma8484
    @mukulsharma8484 Před 2 lety

    Please make a video to set up sublime just like yours.

  • @aditya-st1sv
    @aditya-st1sv Před 2 lety

    Now it's healthy ug🔥🔥💯

  • @master_zenrade
    @master_zenrade Před 2 lety

    ❤️ From 🇳🇵 bro.

  • @trishalmandrik1295
    @trishalmandrik1295 Před 2 lety

    Hey Bro! Launch your complete DSA course please........

  • @Satyam_singh18
    @Satyam_singh18 Před 2 lety

    Bhaiya , waiting for class❤

  • @madhabkafle8072
    @madhabkafle8072 Před 2 lety

    Bhaiyya, I have not done graph before , but was going to start this topic soon. Should i watch this to give a start to graph topic ? Will i understand this?🤔

  • @Aaryuman
    @Aaryuman Před 2 lety

    bro make more videos on graphs please

  • @aakashgoswami1612
    @aakashgoswami1612 Před 2 lety

    bro kabhi apni journey btao from kota to becoming googler.

  • @prasad_rp
    @prasad_rp Před 2 lety

    Arey hn striver said you guys will be making CP sheet, so when can we expect that masterpiece?

    • @utkarshgupta9858
      @utkarshgupta9858  Před 2 lety +1

      Where did he say that? Any link?

    • @ishankbansal9239
      @ishankbansal9239 Před 2 lety +4

      @@utkarshgupta9858 striver said ask utkarsh and priyansh for cp sheet
      Striver ne yeh nhi khaa ki utkarsh cp sheet bna rha h

    • @sumitsoni8596
      @sumitsoni8596 Před 2 lety

      @@utkarshgupta9858 bhaiya please make cp sheet

  • @kapilpatel9379
    @kapilpatel9379 Před 2 lety

    Could not grab much, I will try to watch other videos or repeat this.

  • @nasirhasanashik5112
    @nasirhasanashik5112 Před rokem

    When episode 2 will e come?

  • @mistake10449
    @mistake10449 Před 2 lety

    Thanks for this ;)

  • @kaustavsaha1117
    @kaustavsaha1117 Před 2 lety

    Aagya video nishant bhaiya ke sath but chuswaha ke sath kab niklega 😂😂😂.btw love your content bhaiya

  • @TahsinAhmed-yj9ns
    @TahsinAhmed-yj9ns Před 2 lety

    timestamps would be great like previous videos

  • @danishparveez849
    @danishparveez849 Před 2 lety

    Graphs ke playlist complete karo...

  • @naha_ne_ja_nahane
    @naha_ne_ja_nahane Před 2 lety +1

    Bhaiya DP kab ayegi?

  • @sayantaniguha8519
    @sayantaniguha8519 Před 2 lety

    Timestamps ?

  • @tirthsuthar6754
    @tirthsuthar6754 Před 2 lety +1

    Utkarsh can you tell me the reason behind uploading all videos at only 4:00? Last few videos have same time only. Is there any reason or logic behind?

    • @utkarshgupta9858
      @utkarshgupta9858  Před 2 lety +12

      in the morning people have classes etc, in the night they watch Netflix etc. So that's why 4PM, what's a better time according to you?

    • @mistake10449
      @mistake10449 Před 2 lety

      @@utkarshgupta9858 ;)

    • @tirthsuthar6754
      @tirthsuthar6754 Před 2 lety +1

      @@utkarshgupta9858 3-5 is study time for almost every students. So it would be good if you upload at 3. So we can study from 3-5 from your video.
      Your video length is aprrox 50 min but we complete video in more than hour because we just don't only see videos but we also make notes and type programs along with you.
      So suggested time : 3

  • @kaleemahmed3300
    @kaleemahmed3300 Před 2 lety

    When is next video ?

  • @biswajit_rout_369
    @biswajit_rout_369 Před 2 lety

    Bhai dsa ka ek sheet bana do most frequently asked

  • @babasahebbhosale7908
    @babasahebbhosale7908 Před 2 lety

    Sir make for tree as well sir

  • @AjayYadav-yt8pn
    @AjayYadav-yt8pn Před 2 lety

    Sir please some make in hindi ..we really need for learning.. 🙏l ❤️

  • @sahilanand30
    @sahilanand30 Před 2 lety

    Best

  • @lakshyanawandhar6768
    @lakshyanawandhar6768 Před 2 lety +1

    Can we learn graph without dp

  • @vtechrepo1927
    @vtechrepo1927 Před 2 lety +1

    cfbr

  • @ankitbodh9272
    @ankitbodh9272 Před 2 lety

    Why is the size of the array, 2e5+5?

    • @utkarshgupta9858
      @utkarshgupta9858  Před 2 lety +1

      Just choose a number slightly bigger than maximum value of number of nodes.

    • @ankitbodh9272
      @ankitbodh9272 Před 2 lety

      @@utkarshgupta9858 thanks sir

  • @PIYUSH-lz1zq
    @PIYUSH-lz1zq Před 2 lety

    Practice questions also ....

  • @surajkumar-ze5jl
    @surajkumar-ze5jl Před 2 lety +1

    ye jo dislike kar rahy hai vo chunal chuswaha ke fan hai pakka :)