Skip to content

Commit b6ea57a

Browse files
committed
Tree work
1 parent 5af74f5 commit b6ea57a

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

slides/graphtheory/network_flow.key

4.23 KB
Binary file not shown.

slides/graphtheory/trees.key

964 KB
Binary file not shown.

slides/graphtheory/trees.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Trees are a special form of graph
2+
3+
They come in directed and undirected flavors
4+
5+
Definitions:
6+
An acyclic connected graph
7+
A connected graph with N-1 edges
8+
A graph in which any two vertices are connected by exactly one path
9+
10+
11+
Rooted trees
12+
13+
14+
child, parent
15+
16+
root node
17+
18+
Only the root node in a rooted tree doesn't have a parent, although sometimes it
19+
could be useful for the root node to have itself as a parent (e.g filesystem).
20+
21+
leaf node - nodes with no children
22+
23+
subtrees
24+
25+
Binary tree is a tree for which every node has at most two child nodes
26+
27+
(steal examples from binary tree slides)
28+
29+
30+
31+
>>> Solve simple tree problem
32+
33+

0 commit comments

Comments
 (0)