Skip to content

Commit b7017ed

Browse files
committedJul 27, 2022
Update Tree image.
1 parent ceb6c85 commit b7017ed

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
lines changed
 

‎src/data-structures/tree/README.md

+12-10
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,26 @@ _Read this in other languages:_
1010
* [Segment Tree](segment-tree) - with min/max/sum range queries examples
1111
* [Fenwick Tree](fenwick-tree) (Binary Indexed Tree)
1212

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
1717
a set of linked nodes.
1818

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
2424
points to the root.
2525

2626
A simple unordered tree; in this diagram, the node labeled 7 has
2727
two children, labeled 2 and 6, and one parent, labeled 2. The
2828
root node, at the top, has no parent.
2929

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)*
3133

3234
## References
3335

‎src/data-structures/tree/README.pt-BR.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ Uma árvore não ordenada simples; neste diagrama, o nó rotulado como `7`
2222
possui dois filhos, rotulados como `2` e `6`, e um pai, rotulado como `2`.
2323
O nó raíz, no topo, não possui nenhum pai.
2424

25-
![Tree](https://upload.wikimedia.org/wikipedia/commons/f/f7/Binary_tree.svg)
25+
![Tree](./images/tree.jpeg)
26+
27+
*Made with [okso.app](https://okso.app)*
2628

2729
## Referências
2830

‎src/data-structures/tree/README.zh-CN.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@
1313

1414
一棵简单的无序树; 在下图中:
1515

16-
标记为7的节点具有两个子节点, 标记为2和6;
16+
标记为7的节点具有两个子节点, 标记为2和6;
1717
一个父节点,标记为2,作为根节点, 在顶部,没有父节点。
1818

19-
![Tree](https://upload.wikimedia.org/wikipedia/commons/f/f7/Binary_tree.svg)
19+
![Tree](./images/tree.jpeg)
20+
21+
*Made with [okso.app](https://okso.app)*
2022

2123
## 参考
2224

58.6 KB
Unable to render code block

0 commit comments

Comments
 (0)
Please sign in to comment.