Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Xkcd: Tree (humor) (xkcd.com)
12 points by tswicegood on Dec 17, 2010 | hide | past | favorite | 2 comments



That looks like a sparse tree, but what are the rules about coloring the nodes red or green? What about the special case root (yellow)?


Good question. I figured the obvious thing to do would be a red-black (or green in this case) tree, but that isn't one.

Also, what about the "heap"? When people say "heap", they usually mean a Binary Heap, but the tree of presents is not a Binary Heap. It is also not a Binomial Heap. It might be a possible state of a Fibonacci Heap; I'm not sure.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: