Search code examples
algorithmbinary-treered-black-treeavl-tree

Are AVL Trees Evil?


I was reading the article from Steve Yegge about singletons. In it he mentions his teacher told him AVL Trees were evil. Is it just that red and black trees are a better solution?


Solution

  • Evil from what point of view?

    Like always: there are no bad tools, only bad craftsmen.

    In my memory, AVL trees have slower insertion/removal but faster retrieval than Red/black. Mainly because of the balance algorithm.