Beginner tree algorithms | Graph Theory

Поділитися
Вставка
  • Опубліковано 5 жов 2024

КОМЕНТАРІ • 41

  • @suyashmisra7406
    @suyashmisra7406 4 роки тому +26

    I'm sure you've heard this a lot before,but I must say that you teach a lot better than my DS professor. Keep up the good work,and stay safe!

    • @WilliamFiset-videos
      @WilliamFiset-videos  4 роки тому +3

      Glad to help!

    • @abhijit-sarkar
      @abhijit-sarkar Рік тому

      My DS prof couldn't teach even if his life depended on it. He came to the class with a stack of yellowed notes, copied that onto the blackboard, and read from the notes when asked a question. If you skipped his class, he'd find a way to give you low grades in his papers. Mind that I graduated from one of the top universities in the country. Can you imagine how many futures this f* guy ruined?

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

    This playlist will pass the test of time.

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

    Appreciate the calmness of your voice.

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

    Your videos are so well explained and easy to understand. Thanks for providing us such a high quality material

  • @remotetechie6910
    @remotetechie6910 4 роки тому +12

    I don't do Java, so I really love that code is in pseudo

  • @simontai3900
    @simontai3900 3 роки тому +1

    Really enjoy watching your videos, learnt a lot of things and a nice thing I would like to mention is the code quality, one function only do one thing even the logic can be written in one line, which make the code much more readable.

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

    Good to notice a video of recent time.. Thats some nostalgic music in the beginning! :) Thanks for making these great videos..

  • @DS-nr9zc
    @DS-nr9zc 3 роки тому

    really enjoying this playlist during quarantine!

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

    always high quality!

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

    Hi William, Great videos! Really informative. Can you please share about how you create video slides?

    • @WilliamFiset-videos
      @WilliamFiset-videos  4 роки тому +1

      With Keynote:
      github.com/williamfiset/Algorithms/tree/master/slides

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

    Sir I follow ur every video

  • @mengyichen3264
    @mengyichen3264 3 роки тому +1

    I have a question here 8:27
    Still didn't get the idea why removing the leaf- checking base case is ok?
    I think the statement of "correcting tree height" is not convincing.

  • @avoriginal9342
    @avoriginal9342 4 місяці тому

    What I don’t understand if you could please explain is why h-1 is used on every subtree, so for example, x root, go right have a z node, left of z node is another Y node, left of the Y node we have just a triangle (working on double rotation) which has a height of h-1, right of the Y node we have another triangle which has the height of h-2, right of Z node we have a triangle which is again h-1. Left of root x we have one triangle that is h-1, now where do these h-2 and h-1 come from. Also when checking the imbalance, a h+1 comes in to make it an imbalance of 2. How does this work, I can’t wrap my head around it. PLEASE HELP

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

    Great video! This channel gives me 3blue1brown vibes.

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

    These videos are amazing!!

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

    Thanks for the amazing video!

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

    Awesome videos!!!🔥🔥

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

    William must have a good taste of music. ;)

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

    For the first problem, does it means that only rooted trees have leaves? Otherwise how can you traverse from a root node?

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

    Greate Job! Thank you!

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

    Big Like! Thank you

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

    Hi William, in the leafSum algorithm, you have one with the nodes with three children. I am assuming we would be using an adjacency list to store this tree. Please correct me if we have to do it differently.

    • @WilliamFiset-videos
      @WilliamFiset-videos  2 роки тому +1

      Please watch ua-cam.com/video/1XC3p2zBK34/v-deo.html, essentially we have a rooted tree and each node has a reference to a list of all its children.

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

    Hi William I have access to my company udemy account. I already bought the Graph Theory Algorithms course. However, I am not able to access the Easy to Advanced Data Structures. I guess it due to this course is different category which is not covered by my company. Would you be able to create a copy of "Easy to Advanced Data Structures" under "IT & Software
    Other IT & Software
    Algorithms", I believed many users are also facing the same issue. I can provide more details if requires. Hope you can help. Thanks.

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

    couldn't you just loop through the nodes and sum up the values of the nodes whose out degree is 0?

  • @доброговременишуток

    code was written by python?

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

      It's pseudo-code but very close to python syntax

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

    2:01
    Forgot to add 7?

    • @interstella5555
      @interstella5555 3 роки тому +1

      7 is not a leaf node, it has a child

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

      @@interstella5555 oh... made a mistake. Thanks

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

    What programming language is this?

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

    Actually it looks like he's copied your whole set of videos into a "course".

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

    Can I marry you?

  • @avoriginal9342
    @avoriginal9342 4 місяці тому

    What I don’t understand if you could please explain is why h-1 is used on every subtree, so for example, x root, go right have a z node, left of z node is another Y node, left of the Y node we have just a triangle (working on double rotation) which has a height of h-1, right of the Y node we have another triangle which has the height of h-2, right of Z node we have a triangle which is again h-1. Left of root x we have one triangle that is h-1, now where do these h-2 and h-1 come from. Also when checking the imbalance, a h+1 comes in to make it an imbalance of 2. How does this work, I can’t wrap my head around it. PLEASE HELP