TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Why is the top node of a tree structure called root node instead of tip?

2 点作者 soygul大约 5 年前

2 条评论

quickthrower2大约 5 年前
Intuitively I think it is because &quot;root&quot; means &quot;origin&quot; (e.g. tell me about your roots i.e. your family, or the root of all evil etc.), and the top node is where you start when navigating the tree (it would be the memory reference you have first because it is stored in a variable, and you need to traverse to get to other nodes).<p>Using a physical tree analogy I&#x27;d call it a trunk rather than a root (and ignore that a real tree has roots entirely because they are a tree in their own right!)
评论 #23029291 未加载
lioeters大约 5 年前
It&#x27;s because the tree is upside-down, growing from the top (root) to the branches and leaves (the tips) below.