Node (computer science)
≈ 3 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
A node is a basic unit of a data structure, such as a linked list or tree data structure. Nodes contain data and also may link to other nodes. Links between nodes are often implemented by pointers. , the image provides a simplified view of a network, where each of the numbers represents a different node.
A node is a basic unit of a data structure, such as a linked list or tree data structure. Nodes contain data and also may link to other nodes. Links between nodes are often implemented by pointers. , the image provides a simplified view of a network, where each of the numbers represents a different node.]]
Definitions
Child: A child node is a node extending from another node. For example, a computer with internet access could be considered a child node of a node representing the internet. The inverse relationship is that of a parent node. If node C is a child of node A, then A is the parent node of C. Degree: the degree of a node is the number of children of the node. Depth: the depth of node A is the length of the path from A to the root node. The root node is said to have depth 0. Edge: the connection between nodes. Forest: a set of trees. Height: the height of node A is the length of the longest path through children to a leaf node. Internal node: a node with at least one child. Leaf node: a node with no children. Root node: a node distinguished from the rest of the tree nodes. Usually, it is depicted as the highest node of the tree. Sibling nodes: these are nodes connected to the same parent node.
Markup languages
Another common use of node trees is in web development. In programming, XML is used to communicate information between computer programmers and computers alike. For this reason XML is used to create common communication protocols used in office productivity software, and serves as the base for the development of markup languages like XHTML and XML Schema. Though similar in how it is approached by a programmer, HTML and CSS is typically the language used to develop website text and design. While XML, HTML and XHTML provide the language and expression, the DOM serves as a translator.
See also
Vertex (graph theory)
References
External links
Data Trees as a Means of Presenting Complex Data Analysis by Sally Knipe STL-like C++ tree class Description of tree data structures from ideainfo.8m.com WormWeb.org: Interactive Visualization of the C. elegans Cell Tree - Visualize the entire cell lineage tree of the nematode C. elegans (javascript)
Text derived from https://en.wikipedia.org/w/index.php?oldid=1377718094 under CC BY-SA 4.0; modifications have been made.