Skip Lists EXPLAINED | Insertion and Deletion

Поделиться
HTML-код
  • Опубликовано: 30 ноя 2024

Комментарии • 53

  • @tung-hsinliu861
    @tung-hsinliu861 14 дней назад

    Very easy to understand! Tried to understand skip list many times but failed, but successfully implemented it right away after seeing this video, thanks!

  • @Geneviève-w2t
    @Geneviève-w2t 7 месяцев назад +4

    You just saved my whole trimester. Litterally. I can't thank you enough, the videos on the trees and everything, they are beyond excellent. English isn't even my first language, but your videos are so well explained, I understand everything. Thank you so much, it means a whole lot to me!! :)

    • @TylerReedAI
      @TylerReedAI  7 месяцев назад

      Hey thank you so much! I appreciate that and I’m so glad I helped you out. 😁

  • @LofiNightscape-t59
    @LofiNightscape-t59 Месяц назад

    never comment on any videos until I have skip list slides from prof with a few texts plus "easy" word, this video saves my life, tks so much!

    • @TylerReedAI
      @TylerReedAI  Месяц назад

      I'm glad this helped! It's been a couple years since I made this, but if you need anything, I think I have my slides I can give. Yeah, I totally get how the profs work lol.

  • @jenanabas5535
    @jenanabas5535 3 года назад +5

    I honestly never comment on videos, but I really appreciate your GREAT explanation on SkipLists, it helped me understand the probabilistic structure of this data structure. Thank you for your effort and time! :)

    • @TylerReedAI
      @TylerReedAI  3 года назад

      Thank you I truly appreciate that and I’m happy it has helped you understand Skip Lists!

  • @danser_theplayer01
    @danser_theplayer01 Год назад +2

    Objects are expensive and references are expensive but they just keep sprouting everywhere. (for example javascript object reference is 8 entire bits!)
    This is definitely for low level languages only.

  • @SweetPeachannel
    @SweetPeachannel Год назад +2

    excellent explanation ... better than my lecture ..

  • @jayPreak
    @jayPreak Год назад +2

    mashallah bro saved my exams

    • @TylerReedAI
      @TylerReedAI  Год назад +1

      Happy to help! I’m thankful that you watched my video, appreciate it 🙏

  • @architpuri4782
    @architpuri4782 9 месяцев назад +1

    Great explanation :)

    • @TylerReedAI
      @TylerReedAI  9 месяцев назад

      thank you, I hope it was helpful in your understanding 🙌

  • @thefinestmeme3317
    @thefinestmeme3317 8 месяцев назад +1

    How would you implement the end nodes? Would you hardcode them into the list and then increase their levels as needed?

    • @TylerReedAI
      @TylerReedAI  8 месяцев назад

      Hey, yeah for the end nodes, I just hard coded them as positive and negative infinity. WHICH, really is just the highest and lowest integer allowed.
      Yeah so when a level is increased, just add them as beginning and end nodes of that level.
      Let me know if that helped at all

    • @thefinestmeme3317
      @thefinestmeme3317 8 месяцев назад

      @@TylerReedAI Makes perfect sense!. Your video helped out a lot in getting my skiplist to work, thank you!

  • @radebeemmanuel5188
    @radebeemmanuel5188 7 месяцев назад +1

    What happens when you remove positive infinity and negative infinity from the lists? Just curious

    • @TylerReedAI
      @TylerReedAI  7 месяцев назад +1

      Well it’s just something to compare to right so it may not work if you don’t have something there. The idea is you should never have a number below neg inf, and shouldn’t have one above pos inf.

    • @radebeemmanuel5188
      @radebeemmanuel5188 7 месяцев назад

      @@TylerReedAI Thank you💯

  • @aditiiyer595
    @aditiiyer595 4 года назад +3

    Very well explained sir thank u so much .
    Plz can u upload linked list parts also.

  • @KeithMyburgh
    @KeithMyburgh 2 года назад +2

    I see this is two years old now, but in the event this is implemented in a garbage collected language shouldn't you also set the above and below references for each 25 node to null in order for it the associated memory to be collected? If it is not, In larger lists this could lead to portions of heap memory to never be deallocated.

    • @TylerReedAI
      @TylerReedAI  2 года назад

      Hmm, that may be true. And yeah I agree this algorithm or code could be more efficient. Always a way to improve it. But it would need to be coded differently in a language not using garbage collection.

  • @5patak
    @5patak 4 года назад +1

    Hey!
    Sorry to bother you but the insertNewNode is a separate function, right? And if you can explain it a little more because I don’t really get how to implement that part.
    Thanks for the help!
    Have a nice day:)

  • @dre7593
    @dre7593 4 года назад +1

    can you do a full implementation

  • @olafgunther9401
    @olafgunther9401 Год назад +1

    thats a 10, well done

  • @gangaKrishnan12
    @gangaKrishnan12 Год назад

    Plz provide code for that...grate explanation ✨

  • @owenmajor1314
    @owenmajor1314 2 года назад +1

    a good implementation, but I don't think nodes in a skiplist are meant to have an above/previous reference? I guess you could make it doubly linked , but this would take up a lot more memory than is necessary.

    • @TylerReedAI
      @TylerReedAI  2 года назад

      Yes you are correct you don’t need an above and previous reference. That would clean up the code more. I just added them to help explain and to test to make sure we can traverse properly. But it would be less code leaving them out. Good catch!

  • @vrajpatel1999
    @vrajpatel1999 4 года назад

    Is there any full implementation you could provide? Like the video you have on stacks

    • @TylerReedAI
      @TylerReedAI  4 года назад

      Yes I can do that

    • @vrajpatel1999
      @vrajpatel1999 4 года назад

      @@TylerReedAI thank you so much

    • @dre7593
      @dre7593 4 года назад

      @@TylerReedAI like right now

    • @dre7593
      @dre7593 4 года назад

      with a node that points above, below, prev and next

    • @vrajpatel1999
      @vrajpatel1999 4 года назад

      @@TylerReedAI when can you post by?

  • @ismail8973
    @ismail8973 4 года назад

    great work you explained it well

    • @TylerReedAI
      @TylerReedAI  4 года назад

      I appreciate that!

    • @TylerReedAI
      @TylerReedAI  4 года назад

      would you be interested in learning reactjs or something else? or more data structures?

    • @ismail8973
      @ismail8973 4 года назад +1

      @@TylerReedAI data structures

    • @TylerReedAI
      @TylerReedAI  4 года назад

      Let me know what you think of the structure of the new Stack video if you get a chance!

  • @danser_theplayer01
    @danser_theplayer01 Год назад +1

    "Ehh, it probably works"
    - probabilistic skip lists.

  • @benisrood
    @benisrood 10 месяцев назад +1

    Not all values are integers or even numbers though, are they? When in the real world are you sorting and searching for something as simple as a sparse set of integers? The answer is never. So you dont have plus or minus infinity, you have null pointers at each end.

    • @TylerReedAI
      @TylerReedAI  10 месяцев назад +1

      Well I don’t think anybody said you would always use a set of a certain type for sorting or searching, it’s more of how the algorithm works. If you use it for a different object type or primitive value then some things would need changed yes! But you are right in the real world you may never use a set of integers.

    • @benisrood
      @benisrood 10 месяцев назад +1

      @@TylerReedAI True, and it's easier for people to grasp the concept with an lower/upper limit rather than null. Thanks for the reply.