@@ -10,24 +10,26 @@ _Read this in other languages:_
10
10
* [ Segment Tree] ( segment-tree ) - with min/max/sum range queries examples
11
11
* [ Fenwick Tree] ( fenwick-tree ) (Binary Indexed Tree)
12
12
13
- In computer science, a ** tree** is a widely used abstract data
14
- type (ADT) — or data structure implementing this ADT—that
15
- simulates a hierarchical tree structure, with a root value
16
- and subtrees of children with a parent node, represented as
13
+ In computer science, a ** tree** is a widely used abstract data
14
+ type (ADT) — or data structure implementing this ADT—that
15
+ simulates a hierarchical tree structure, with a root value
16
+ and subtrees of children with a parent node, represented as
17
17
a set of linked nodes.
18
18
19
- A tree data structure can be defined recursively (locally)
20
- as a collection of nodes (starting at a root node), where
21
- each node is a data structure consisting of a value,
22
- together with a list of references to nodes (the "children"),
23
- with the constraints that no reference is duplicated, and none
19
+ A tree data structure can be defined recursively (locally)
20
+ as a collection of nodes (starting at a root node), where
21
+ each node is a data structure consisting of a value,
22
+ together with a list of references to nodes (the "children"),
23
+ with the constraints that no reference is duplicated, and none
24
24
points to the root.
25
25
26
26
A simple unordered tree; in this diagram, the node labeled 7 has
27
27
two children, labeled 2 and 6, and one parent, labeled 2. The
28
28
root node, at the top, has no parent.
29
29
30
- ![ Tree] ( https://upload.wikimedia.org/wikipedia/commons/f/f7/Binary_tree.svg )
30
+ ![ Tree] ( ./images/tree.jpeg )
31
+
32
+ * Made with [ okso.app] ( https://okso.app ) *
31
33
32
34
## References
33
35
0 commit comments