|
|
|
|
|
by mfoc
777 days ago
|
|
For clarity, in (computer science) graph theory, a tree is a rooted, strict, connected, undirected, acyclic graph. Explanation: rooted: One vertex (also called a node) has been designated the root. The depth of a vertex is the number of branches in the path from root to the vertex. So depth of the root itself is zero and is the only vertex in the tree with this property. strict: The edges have no weight(s). connected: A graph is said to be connected if there is a path (edge) between every pair of vertices. From every node to any other node, there is a path to traverse. undirected: The edges have no directionality specified. acyclic: The are no closed loops (no cycles of any length). graph: An abstract data structure consisting of a finite set of vertices and a finite set of edges (vertices pairs). As another commenter has pointed out, the definition of a tree in mathematics is somewhat different...a tree need not have a root. |
|
For example, B-trees are directed trees, and Huffman Coding is based on a weighted tree structure.