Trees Flashcards
is a connected undirected graph with no
simple circuits.
Tree
Theorem in Tree
There is a unique simple path between any
two of its nodes
A (not-necessarily-connected) undirected graph without simple circuits is called a
forest
You can think of it as a set of trees having disjoint sets of nodes.
forest
True or False. A graph is a Tree because it is a connected graph with no simple circuits
True
A tree is not a tree “because it’s not connected”. In this case it’s called (blank) in which each connected component is a tree.
Forest
An undirected graph without simple circuits is called a
Forest
is a tree in which one node has
been designated the root.
rooted tree
True or False. Every edge is (implicitly or explicitly) directed away from the root
True
There is directed edge from u to v. What type of vertex is “u”?
Parent
There is directed edge from u to v. What type of vertex is “v”?
Child
Vertices with the same parents.
Siblings
Vertices in path from the root to vertex v, excluding v itself, including the root.
Ancestors
All vertices that have v as ancestors.
Descendants
Vertices that have children.
Internal vertices