Red-Black Trees

前端 未结 12 2248
逝去的感伤
逝去的感伤 2020-12-07 10:15

I\'ve seen binary trees and binary searching mentioned in several books I\'ve read lately, but as I\'m still at the beginning of my studies in Computer Science, I\'ve yet to

12条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-07 10:59

    IME, almost no one understands the RB tree algorithm. People can repeat the rules back to you, but they don't understand why those rules and where they come from. I am no exception :-)

    For this reason, I prefer the AVL algorithm, because it's easy to comprehend. Once you understand it, you can then code it up from scratch, because it make sense to you.

提交回复
热议问题