V2EX  ›  英汉词典

Parent Node

释义 Definition

父节点:在树形结构(tree)中,某个节点的直接上一级节点,也就是它的“父亲”。一个父节点可以有一个或多个子节点(child nodes)。在某些语境里也可指更一般的“上层节点”,但最常见的是指直接父节点

发音 Pronunciation (IPA)

/ˈpɛrənt noʊd/

例句 Examples

A leaf node has no child nodes, but it still has a parent node.
叶子节点没有子节点,但它仍然有父节点。

In a binary search tree, each parent node divides values into smaller keys on the left and larger keys on the right, which makes searching efficient.
在二叉搜索树中,每个父节点把数值分成左边较小、右边较大的键,从而让查找更高效。

词源 Etymology

parent 原意为“父母、父亲/母亲”,来自拉丁语 parens(“生育者、父母”);在计算机科学中借用家庭关系来描述层级结构。node 意为“节点”,源自拉丁语 nodus(“结、纽结”),引申为网络或结构中的“连接点”。合在一起 parent node 就是“在层级结构中位于上层、与下层节点直接相连的节点”。

相关词 Related Words

文学与作品 Literary Works

  • 《Introduction to Algorithms》(Cormen, Leiserson, Rivest, Stein):在树与堆(heap)等数据结构章节中频繁使用“parent/child”来描述节点关系。
  • 《The Art of Computer Programming》(Donald E. Knuth):讨论树形结构与相关算法时常用“parent node”等术语表达层级与连接关系。
  • 《Algorithms》(Robert Sedgewick, Kevin Wayne):讲解树、优先队列、并查集等结构时,会用父子节点关系来解释实现与操作。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   747 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 22:58 · PVG 06:58 · LAX 14:58 · JFK 17:58
♥ Do have faith in what you're doing.