ProgrammerHumor

whyDoWeDrawThemThatWay

whyDoWeDrawThemThatWay
https://i.redd.it/qds6857s2ndf1.png
Reddit

Discussion

Lenni009
:ts::js:

One of my profs once said "computer scientists have never seen a tree, that's why the root is at the top."

7 hours ago
Racer125678

can't seem to find the roots of this inverted tree writing style

6 hours ago
frcdude

You can find the fruit by going down into the tree from the fruit in log n time, but it still takes me Linear time to grow. 

5 hours ago
Quito246

Are you looking for fruit in depth first search?

4 hours ago
Piisthree

height-first search? Naaah

4 hours ago
suvlub

(pre-emptive "yes, I get the joke, I just choose to answer the question seriously anyway because I have nothing better to do")

Because they are just called "trees" because they have to be called something and "tree" makes for a nice memorable analogy. They aren't supposed to be trees and there is no particular reason to make them resemble real trees when drawing them. We traditionally read from top to bottom and for most kinds of data and algorithms it's more natural to start at the root than at the leaves, so to the top it goes.

3 hours ago