Ternary tree:修订间差异

来自WHY42
imported>Soleverlee
(以“In computer science, a ternary tree is a tree data structure in which each node has at most three child nodes, usually distinguished as "left", “mid” and "right"...”为内容创建页面)
 
(Riguz移动页面树:Ternary TreeTernary tree,不留重定向)
(没有差异)

2024年1月18日 (四) 09:09的版本

In computer science, a ternary tree is a tree data structure in which each node has at most three child nodes, usually distinguished as "left", “mid” and "right". Nodes with children are parent nodes, and child nodes may contain references to their parents. Outside the tree, there is often a reference to the "root" node (the ancestor of all nodes), if it exists. Any node in the data structure can be reached by starting at root node and repeatedly following references to either the left, mid or right child.

Ternary trees are used to implement Ternary search trees and Ternary heaps.