Red-black tree deletion: steps + 10 examples

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.พ. 2025

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

  • @lydiaalexian1435
    @lydiaalexian1435 7 หลายเดือนก่อน +6

    omg thank you I was going crazy at all the videos and lectures saying "if we delete a red node, we just delete it and then there's nothing to do" when you actually still have to color the replacement node red if it is not already. That is not "doing nothing" lol

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

    Fantastic examples! Finally, really algorithmic approach with clarity and full details. Thank you very much!

  • @ЮлияЩербакова-э7д
    @ЮлияЩербакова-э7д 3 วันที่ผ่านมา +1

    Thank you very much! Best explanation!

  • @BlueRaini
    @BlueRaini 4 หลายเดือนก่อน +2

    Best explanations I've ever seen! Thank you!

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

    The best explainer out there.

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

    Your explanation is so great!

  • @frostbyte4045
    @frostbyte4045 7 หลายเดือนก่อน +1

    Thank you very much for the explanation its easy to understand

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

    I just wanted examples, thank you for this

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

    Thank you

  • @李政峰-u6y
    @李政峰-u6y 8 หลายเดือนก่อน +2

    amazing vedio

  • @amanhasnoname1187
    @amanhasnoname1187 10 หลายเดือนก่อน +1

    Thank u so much❤

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

    Make more videos like this

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

    isnt example 8 case 4?

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

      For example 8 to be case 4, x would have to be black (true), w would have to be black (true), and if x is the right child, w's left child must be red (false). In example 8, since x is the right child and w's right child is red and w's left child is black, this would fall under case 3.