Every so often I think about it but never bothered to look at the history behind the term, does anyone know why we call the tree data structure a tree and not a root structure, with how it's usually depicted roots seem to make more sense as a metaphor. I know the top node is called the root but wouldn't this metaphor make more sense flipped around.
Conversation
Notices
-
Embed this notice
Brodie Robertson (brodieonlinux@mstdn.social)'s status on Monday, 07-Jul-2025 11:13:17 JST
Brodie Robertson
-
Embed this notice
Kaito (kaito02@mastodon.social)'s status on Monday, 07-Jul-2025 11:13:41 JST
Kaito
@BrodieOnLinux the thing is the directionality doesn't have to be downward. So the Australia analogy might make sense
-
Embed this notice
Brodie Robertson (brodieonlinux@mstdn.social)'s status on Monday, 07-Jul-2025 11:13:41 JST
Brodie Robertson
@kaito02 I know you could draw it the other way round but usually they're drawn extending downwards
-
Embed this notice
Brodie Robertson (brodieonlinux@mstdn.social)'s status on Monday, 07-Jul-2025 11:56:22 JST
Brodie Robertson
@DaCool Apparently it's called a root cap
-
Embed this notice
DaCool (dacool@layer8.space)'s status on Monday, 07-Jul-2025 11:56:23 JST
DaCool
@BrodieOnLinux Thinking about it a little.
1) When you write lines from the top down, makes sense to put whatever you start with first.
2) Tree has a distinct and more universal appeal, also is more commonly associated with something positive.
3) I at-least perceive the branching of a tree more universal as the branching of roots.
4) You avoid ambiguity with a <root> node in a <tree> structure.
5) At the end of a branch, you can call the last node a leaf. What would be the root equivalent?
-
Embed this notice