Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

red black trees can be thought of as 2-4 trees, and they're way less headache-inducing when you do

if you inline the red nodes into the black nodes, you get a 2-4 tree node. except that the 3-nodes have chirality. but then, you can just use a 2-4 tree

AVL trees seem not worth learning. they have slightly different performance characteristics than red-black trees. but, if i care about performance beyond big O, i'm probably using a hash table or a cache-aware tree of some kind instead of a CS101 data structure



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: