Trees
[27/100%]Determine whether an undirected tree is a planar, Eulerian, semi-Eulerian, Hamiltonian graph. 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 leaf vertices equals , where is the set of non-leaf vertices.
Prove that if an undirected tree has exactly two leaf vertices, then it is a "line".
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 afterwards the graph becomes a tree.
A center of an undirected graph is a vertex for which the length of the longest path from it to the other vertices is minimal. Prove that in a tree
all centers are adjacent;
there cannot be more than two centers.
Prove that in an undirected tree there exists a vertex through which all maximal simple paths pass.
Let be an undirected tree, an arbitrary vertex of it. For each edge choose the orientation from to if the distance from to is less than from to . Prove that the resulting directed graph will be a directed tree with root .
Prove the following statement in two ways: if an undirected tree has a vertex of degree , then it has at least leaf vertices.
For the set of vertices determine how many undirected trees there are in which
the vertex is a leaf;
both vertices and are leaves;
all the vertices are leaves;
exactly two vertices are leaves.
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 of both of whose ends 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.
Give an example of a directed graph for which the first two conditions from the definition of a tree hold, but which is not a tree.
A certain rumor spread as follows: its source called three of his friends, each of them passed on the rumor by phone to four of their friends, and each of them, in turn, passed it on to five of their friends. Determine how many people learned the rumor, given that none of them received more than one call and no one called the source of the rumor. Find how many calls were made in total.
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.
A binary relation on the set means that is the maximal one among the elements less than . Prove that the graph is a directed tree with root .
Let be a directed tree, and let mean that the vertex is reachable from the vertex . Prove that is a non-strict partial order relation on satisfying properties (а) and (б) 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 exactly one edge leads into each of the other vertices .
Let be a directed graph. Prove that is a (directed) tree if and only if has a vertex (the root) such that exactly one path leads from to any vertex .
Let the root of a directed tree have five children, and let each of the other internal vertices have three or four children, with the number of vertices with three children being twice the number of vertices with four. How many vertices and edges are there in total in , given that the number of its leaves equals 26?
Let the root of a directed tree have three children, and let each of the other internal vertices have two or four children, with the number of vertices with two children being half the number of vertices with four. How many vertices are there in total in , given that the number of its leaves equals 38?
Let be a forest of trees. Prove that from the sequence the forest can be uniquely reconstructed. Prove the analogous statement for the postfix traversal.
Prove by induction that in every binary tree the number of vertices with two children is one less than the number of leaves.
Find the number of leaves and vertices in a complete binary tree of height .
Construct a tree and an acyclic directed graph representing the following arithmetic formula
How many vertices could be saved?
Construct a tree representing the following logical formula
For the resulting tree construct the prefix, postfix, and infix traversals (for vertices with negations regard the single child as the right one).
Determine the prefix, postfix, and infix traversals of the tree depicted in fig. 12 on the next page, assuming that the edges leaving a single vertex are numbered from left to right.
Fig. 12: The tree \mathfrak {T}_{1}.
Determine the prefix and postfix traversals of the tree depicted in fig. 13 on the opposite page, assuming that the edges leaving a single vertex are numbered from left to right.
Fig. 13: The tree \mathfrak {T}_{2}.
Let be the postfix traversal of the tree of an arithmetic formula built from the variables and the operation signs,,. Reconstruct this tree and the formula.