タグ

tree-structureとtreeに関するnabinnoのブックマーク (4)

  • 木 (数学) - Wikipedia

    T は木である T に閉路はなく、 n − 1 の辺を持つ T は連結で、 n − 1 の辺を持つ T は連結で、すべての辺は橋である T の任意の2点を結ぶ道がちょうど1つある T に閉路はないが、新しい辺をつけ加えると閉路が必ず1つできる 木 T には、以下のような性質がある。 T の2点を結ぶ T に含まれない辺 e に対して、T + e には e を通るただ一つの閉路があり、この閉路上の任意の辺 f に対して T + e - f は木となる。 頂点が2つ以上ある木には少なくとも2個の端末点がある。また、端末点とは次数1の点である。 上の定理から、木には必ず端末点があり、その端末点を除去すると位数の一つ小さい木が得られる。逆に言えば、位数 n の木は、位数 n − 1 の木に一つの新しい点と、これに接続する一の新しい辺を加えて得られる。 あるノードを選んで、それを一番「上」にあ

    木 (数学) - Wikipedia
  • トライ (データ構造) - Wikipedia

    "A", "to", "tea", "ted", "ten", "i", "in", "inn" というキー群によるトライ木 トライ木(英: trie)やプレフィックス木(英: prefix tree)とは、順序付き木の一種。あるノードの配下の全ノードは、自身に対応する文字列に共通するプレフィックス(接頭部)があり、ルート(根)には空の文字列が対応している。値は一般に全ノードに対応して存在するわけではなく、末端ノードや一部の中間ノードだけがキーに対応した値を格納している。2分探索木と異なり、各ノードに個々のキーが格納されるのではなく、木構造上のノードの位置とキーが対応している。 キーが文字列である連想配列の実装構造としても使われる。右図の例では、ノードを表す丸の中にキーが書かれ、連想される値がその下に書かれている。値が書かれていないノードはキー文字列の途中までにしか対応していない。各英単語

    トライ (データ構造) - Wikipedia
  • Tree structure - Wikipedia

    This article includes a list of general references, but it lacks sufficient corresponding inline citations. Please help to improve this article by introducing more precise citations. (July 2014) (Learn how and when to remove this message) A tree structure showing the possible hierarchical organization of an encyclopedia The original Encyclopédie (1752) used a tree diagram to show the way in which

    Tree structure - Wikipedia
  • Tree (abstract data type) - Wikipedia

    Not to be confused with Trie, a specific type of tree data structure. This unsorted tree has non-unique values (e.g., the value 2 existing in different nodes, not in a single node only) and is non-binary (while there are only up to two children nodes per parent node in a binary tree). The root node at the top (with the value 2 here), has no parent as it is the highest in the tree hierarchy. In com

    Tree (abstract data type) - Wikipedia
  • 1