Strongly Connected Components: Kosarajus Algorithm

Поділитися
Вставка
  • Опубліковано 26 сер 2024
  • Get COURSES For FREE Using This Scholarship Test. Register Here Now: www.codingninj... In this video, you will learn an interesting concept of strongly connected components.
    0:30 Logic behind Strongly connected components.
    3:33 Kosaraju's Algorithm.
    7:45 : Do DFS store vertices as per their finish time.?
    13:05 Graph of strongly connected components.
    13:17 Concept of a directed cycle.
    15:43 Different Conditions in Strongly connected components.
    ----------------------------------------------------------------------------------------------------------
    Join our Coding Ninjas official telegram community here: t.me/codingnin...
    -----------------------------------------------------------------------
    Coding Ninjas is one of the leading EdTech company providing India’s Highest rated programming courses in C++, Data Structures and Algorithms, Java, Python, Machine Learning, web development, Data Science, Android Development, Kotlin, React.
    To explore our courses, click here: bit.ly/2WWmdE1
    To explore our Free Trial Courses click here: bit.ly/2YqUL1Y
    -----------------------------------------------------
    To watch more exciting videos on programming, subscribe to our channel here: bit.ly/36n3g08
    ------------------------------------------------------
    Explore more on our social media platforms:
    Facebook: / codingninjas
    Instagram: / coding.ninjas
    Linkedin: / 1319…

КОМЕНТАРІ • 52

  • @CodingNinjasIndia
    @CodingNinjasIndia  3 роки тому

    Register for Coding Ninjas Scholarship Programme:
    bit.ly/CNSCHOLARSHIP

    • @kp_nagar
      @kp_nagar 3 роки тому

      If we use queue in place of stack and didn't reverse the connections
      Is it work ??

    • @shivanshtiwari7109
      @shivanshtiwari7109 3 роки тому

      Is it important for interview @coding ninja

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

    BEST EXPLATION ON UA-cam , HANDS DOWN AFTER 11:00 IS JUST BEAUTY .

  • @dhruvjain2047
    @dhruvjain2047 3 роки тому +3

    Thanks a lot sir this is was the best explanation of the intuition behind the algorithm i have ever seen 🙏

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

      Thank you for the kind words! We hope that this video has helped you!
      Stay tuned to Coding Ninjas UA-cam channel for more such content! Do check our Coding Ninjas Studio, where you can upskill for free and become a Ninja Coder: www.codingninjas.com/studio/home?
      If reading is your preference, you can find top articles to upskill in your career here: www.codingninjas.com/studio/library?
      If you would like to opt for a Coding Ninjas course, you can check our courses here: www.codingninjas.com/?

  • @parekshamanchanda8083
    @parekshamanchanda8083 4 роки тому

    Very good explanation

  • @surajitroy_roll-5023
    @surajitroy_roll-5023 4 роки тому +4

    Sir the final component will be [abci] 10:12

  • @anirudhmenon749
    @anirudhmenon749 4 роки тому +2

    Your explanation for this is stunning! Probably one of the best on the Internet.
    Oh, and Kosaraju, btw, is an Indian. ;)

  • @arpitsharma9739
    @arpitsharma9739 2 роки тому +2

    sir, can we do reverting of the stack instead of transposing the graph?

  • @satyamsinha4277
    @satyamsinha4277 3 роки тому +2

    The best explanation compared to any platform. Coding Ninjas has made every algorithm look extremely simple from their way of simplifying and explaining it. Thanks Coding Ninjas!! I would recommend taking their course as a part of Summer Training or mastering DSA though I haven't taken it but from their explanations, the way of teaching. Best of Luck team!!

  • @amitpalsingh6401
    @amitpalsingh6401 3 роки тому

    sir your teaching method is too too too awesome

  • @011_tanyadixit4
    @011_tanyadixit4 2 роки тому

    Amazing explanation sir, really helpful :)

  • @tanaysharma657
    @tanaysharma657 4 роки тому +5

    God level solution.

  • @vincentjonathan
    @vincentjonathan 2 роки тому +1

    Only feedback sir, I think if you explain by using only english language, it will be more useful for many people and easier to understand, sir

  • @pranjalsharma499
    @pranjalsharma499 4 роки тому

    Such Nice Explanation. Thanks

  • @sufiyanfaisal5593
    @sufiyanfaisal5593 3 роки тому

    great explaination..thanks a lot sir

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

      Thank you for the kind words! We hope that this video has helped you!
      Stay tuned to Coding Ninjas UA-cam channel for more such content! Do check our Coding Ninjas Studio, where you can upskill for free and become a Ninja Coder: www.codingninjas.com/studio/home?
      If reading is your preference, you can find top articles to upskill in your career here: www.codingninjas.com/studio/library?
      If you would like to opt for a Coding Ninjas course, you can check our courses here: www.codingninjas.com/?

  • @puranjanprithu6337
    @puranjanprithu6337 2 роки тому

    which device are you using to write??? plz tell... i am working on a similar project ... it would be really helpful if you tell me.

  • @MuhammadYousaf-wp6wj
    @MuhammadYousaf-wp6wj 5 років тому +1

    v good explaining technique
    ❤❤❤❤

  • @dheerajkhanna4503
    @dheerajkhanna4503 4 роки тому

    Your Explanation is superb :)

  • @sarfarazalam6077
    @sarfarazalam6077 4 роки тому +1

    Best intuition for SCC via Kosaraju :)

  • @ShaileshKumar-sw5hz
    @ShaileshKumar-sw5hz 5 років тому +1

    Awesome !!

  • @ProjectPedia
    @ProjectPedia 4 роки тому +1

    for coding part-
    ide.geeksforgeeks.org/nwSx5vfegW

  • @shaharekunal
    @shaharekunal 4 роки тому +1

    Sir a,b,c,i will be in one component but i is at the bottom of stack...how to pop it before other vertices on top of it

    • @AshishSingh-du8tm
      @AshishSingh-du8tm 3 роки тому

      no need to pop it before maintain a boolean visited array , then pop each vertices one by one if not visited then dfs ,mark visited on all of verticies you visit and if a top node on stack is already visited then pop it without doing any thing

  • @sachinnegi7188
    @sachinnegi7188 5 років тому

    great explanation

  • @saurabhbisht9280
    @saurabhbisht9280 4 роки тому

    thanks a lot

  • @abhishekranjan4344
    @abhishekranjan4344 4 роки тому

    Sir,at 9:53, whether abcd will be deleted from the stack, or abci.

  • @taibaiftikhar3858
    @taibaiftikhar3858 5 років тому

    Thank u sir!

  • @nipulsindwani117
    @nipulsindwani117 5 років тому

    Thanks Sir

  • @joyboy1088
    @joyboy1088 3 роки тому

    How can we return the number of vertices in each strongly connected component ?

  • @hardikchadha2449
    @hardikchadha2449 4 роки тому

    What if we do bfs as a traversal on original graph ??

  • @shazibahamed6275
    @shazibahamed6275 4 роки тому +1

    where is the coding part link? can any one help

    • @ProjectPedia
      @ProjectPedia 4 роки тому

      this might help you-
      ide.geeksforgeeks.org/nwSx5vfegW

  • @CodingNinjasIndia
    @CodingNinjasIndia  3 роки тому

    Join our Coding Ninjas official telegram community here:
    t.me/codingninjas_official

  • @jvjplus
    @jvjplus 6 років тому +1

    in which course it has been taught? Competitive Or DS?

  • @abhijeetjha8343
    @abhijeetjha8343 5 років тому +1

    great explanation!!

  • @nands4410
    @nands4410 6 років тому +2

    Kosaraju

  • @Av-cu6gm
    @Av-cu6gm 4 роки тому

    How text is overlapping on sirs hand🤔?

  • @RHCPhooligan
    @RHCPhooligan 4 роки тому +1

    The video is titled and starts in english why r u switching to another language halfway through my guy

  • @AnilKumar-pc9xp
    @AnilKumar-pc9xp 4 роки тому

    bhadiya

  • @ayushijain3340
    @ayushijain3340 4 роки тому

    Thank you for explaining it so well :-)

  • @CodingNinjasIndia
    @CodingNinjasIndia  4 роки тому

    Got Queries related to strongly connected components, Let us know in the comments section.
    In this video, you will learn an interesting concept of strongly connected components.
    0:30 Logic behind Strongly connected components.
    3:33 Kosaraju's Algorithm.
    7:45: Do DFS store vertices as per their finish time.?
    13:05 Graph of strongly connected components.
    13:17 Concept of a directed cycle.
    15:43 Different Conditions in Strongly connected components

    • @vyshnavramesh9305
      @vyshnavramesh9305 3 роки тому

      Is this video meant for hindi understanding viewers only?

  • @nitya5120
    @nitya5120 3 роки тому

    Abci