Trees
[18/100%]Determine whether an undirected tree is planar, Eulerian, semi-Eulerian, Hamiltonian? Find its chromatic number.
Find a formula relating the number of vertices and edges for a forest of undirected trees.
Prove that in an undirected tree containing at least one edge, the number of leaves equals , where is the set of non-leaf vertices.
Prove that if in a connected undirected graph the number of vertices equals the number of edges, then one of the edges can be discarded so that the graph becomes a tree.
Prove that in an undirected tree there exists a vertex through which all maximal simple paths pass.
Prove Lemma 76 on page 221.
Lemma 76: Suppose an arbitrary vertex is chosen in an undirected tree . For each vertex denote by the minimal length of a path from to . For each undirected edge define its direction from to if . Then the resulting graph is a directed tree with root .
Prove Theorem 77 on page 223 in the reverse direction.
Theorem 77: Definitions 93 (p. 221) and 94 (p. 222) of a directed tree are equivalent.
Definition 93 (Directed tree): a directed graph is called a (directed) tree if 1) it has exactly one source , called the root of the tree; 2) exactly one edge leads into each of the remaining vertices; 3) every vertex is reachable from the root.
Definition 94 (Directed tree, inductive definition): a directed graph is a tree in the following cases. 1) Any graph with a single vertex and empty edge set is a tree; the vertex is called the root of this tree. 2) Suppose the graphs are trees with roots respectively, the vertex sets , , are pairwise disjoint, and is a new vertex, , . Then the following graph is also a tree with root : , .
"The reverse direction" means: if a graph satisfies Definition 94, then conditions 1)-3) of Definition 93 hold for it, proved by induction on the construction from Definition 94.
Let be a directed tree with root . For each vertex define the subgraph as follows: is the set of vertices reachable from in , and is the set of edges from both of whose endpoints belong to . Prove that
is a tree with root ;
if two distinct vertices and have the same depth, then the trees and do not intersect.
Let be a partial order relation on a finite set possessing the following two properties:
there exists a least element ;
if elements and of the set are incomparable, , then and are also incomparable.
The binary relation on the set means that is the maximal element among those less than . Prove that the graph is a directed tree with root .
Let be a directed tree, and let mean that vertex is reachable from vertex . Prove that is a non-strict partial order relation on satisfying properties (a) and (b) from the previous problem.
Let be a directed graph with at least two vertices. Prove that the graph is a (directed) tree if and only if has no cycles, has a single source , and into each of the remaining vertices exactly one edge leads.
For the vertex set , determine how many undirected trees exist in which
vertex is a leaf;
both vertices and are leaves;
all vertices are leaves;
exactly two vertices are leaves.
Suppose the root of a directed tree has five sons, and each of the remaining internal vertices has three or four sons, where the number of vertices with three sons is twice the number of vertices with four. How many vertices and edges are there in total in , given that its number of leaves equals ?
Let be a forest of trees. Prove that from the sequence one can uniquely reconstruct the forest . Prove the analogous statement for the suffix traversal.
Prove by induction that in every binary tree the number of vertices with two sons is one less than the number of leaves.
How many leaves and vertices are there in a complete binary tree of height ?
Construct a tree and an acyclic directed graph representing the following arithmetic formula
How many vertices were saved?
Construct a tree representing the following logical formula
For the resulting tree, construct the prefix, suffix, and infix traversals (for negation vertices with a single son, count it as the right one).