Introduction to tree algorithms | Graph Theory

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 พ.ค. 2024
  • An introduction to tree algorithms. This video covers how trees are stored and represented on a computer.
    Support me by purchasing the full graph theory course on Udemy which includes additional problems, exercises and quizzes not available on TH-cam:
    www.udemy.com/course/graph-th...
    Algorithms repository:
    github.com/williamfiset/algor...
    Video slides:
    github.com/williamfiset/Algor...
    0:00 Introduction
    3:08 Representing trees on a computer
    4:48 Rooted trees
    5:28 Binary trees
    6:06 Binary search trees
    7:05 Storing rooted trees
    ===================================
    Practicing for interviews? I have used, and recommend `Cracking the Coding Interview` which got me a job at Google. Link on Amazon: amzn.to/3cvMof5
    A lot of the content on this channel is inspired by the book `Competitive Programming` by Steven Halim which I frequently use as a resource and reference. Link on Amazon: amzn.to/3wC2nix

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

  • @Andrei-ds8qv
    @Andrei-ds8qv 3 ปีที่แล้ว +1

    Best channel about Graphs and Algorithms, thanks a lot man!

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

    Awesome Explanation! Thank you so much!!!!!!!!!!!

  • @mzmzgreen
    @mzmzgreen 4 ปีที่แล้ว +4

    Great as always, thank you for this!
    Could you make a video about Gap List and Skip List? :)

  • @senthilmuruganr234
    @senthilmuruganr234 3 ปีที่แล้ว

    Excellent effort

  • @andreamengoli4656
    @andreamengoli4656 3 ปีที่แล้ว

    Thank you! Great video!! ;)

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

    Great video.

  • @ajayramachandran9591
    @ajayramachandran9591 3 ปีที่แล้ว

    thanks a lot for the video

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

    A dependency graph may be stored as a matrix to ease decency computation. This is a storage size algorithm time trade off.

  • @aaronaaronaaron5922
    @aaronaaronaaron5922 3 ปีที่แล้ว

    1thanks for another great video!!!!

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

    Hey William Fiset, big fan of you and channel. I wanted to cover everything in your channel from beginner to advanced. Could you please tell me the order in which I should watch the playlists ?

    • @WilliamFiset-videos
      @WilliamFiset-videos  4 ปีที่แล้ว +11

      I try and organize my playlist videos in topological order so that you don't end up watching a video that requires you to watch another video as a prerequisite. After that condition is met then the videos are mostly sorted from easiest to hardest :)

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

      @@WilliamFiset-videos 😑 u cud've used everyday English

  • @mengyichen3264
    @mengyichen3264 3 ปีที่แล้ว

    best graphed tree video I've seen ever

  • @maksympetrenko8093
    @maksympetrenko8093 3 ปีที่แล้ว

    Magnificent.

  • @kixievyoliztli9646
    @kixievyoliztli9646 3 ปีที่แล้ว

    Maybe I'm wrong, please let me know if is it so, but for the list shown in (3:42 min) , for "(2, 3) ," should not be the other way around, I mean = "(3, 2) ," thanks in advance for the explanation...

  • @johnbatchler8551
    @johnbatchler8551 4 ปีที่แล้ว

    I use trees to solve problems in electronic or anything needs to help solve problems I use it for possible outcomes mainly if it's 1 to 4 possible outcomes and one must be correct then u solve problems

  • @foxred2380
    @foxred2380 4 ปีที่แล้ว

    Does anybody can help me with this algorithm? How can I determine(compare) if the shortest path tree is arise from presented graph. For linear time. Tree and graph presented as adjacency List with costs. (graph can be negative cycled)

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

    Could you please suggest good resources for recursion and DP techniques

    • @rockrocks8840
      @rockrocks8840 3 ปีที่แล้ว

      FaadCoder channel

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

      @@rockrocks8840 theres no chennel by that name, when i searcged i got paras saini coding channel. is it the same?

  • @AmNotLegend
    @AmNotLegend 2 ปีที่แล้ว

    thanks.

  • @riostark3983
    @riostark3983 3 ปีที่แล้ว

    OMG this is sooooooo greaaaaaaaat

  • @Dharm1k987
    @Dharm1k987 4 ปีที่แล้ว

    What font do you use?

    • @stepans9183
      @stepans9183 4 ปีที่แล้ว

      This looks like a "Menlo" - default mac os font

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

    I disagree that you should avoid adjacency matrix.
    For up to 64 nodes it acually takes less space, than the array.
    Besides that there are many sitiation where you care much more about the access time than memory consumption.

    • @WilliamFiset-videos
      @WilliamFiset-videos  ปีที่แล้ว

      I agree that for small trees using a matrix is something worth considering, however the issue is that it doesn't scale well which is why I tend to avoid them.

  • @yapril-e
    @yapril-e 11 หลายเดือนก่อน

    At 6:10 you pronounced the correct definition of BST
    But displayed not correct definition (I mean it's weaker than BST)
    Unless x.left.value doesn't mean value of the left node (which would be very strange)

  • @joffreorellana4049
    @joffreorellana4049 2 ปีที่แล้ว

    No entiendo nada de ingles pero aqui estoy

  • @PatriceStoessel
    @PatriceStoessel 3 ปีที่แล้ว

    Your binary tree stored as a flattened array is also called a heap
    en.wikipedia.org/wiki/Heap_(data_structure)

    • @WilliamFiset-videos
      @WilliamFiset-videos  3 ปีที่แล้ว +1

      No, I wouldn't say that. A heap implies an ordering on the tree. You can use the flattening technique generally, not just for heaps.

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

      @@WilliamFiset-videos I see, you're right
      Thanks

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

    Interns 😭😭

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

    talk louder dude , ur volume is very low