Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

List the vertices of the ordered rooted trees in Figures 3 and 9 of Section 11.3 in level order.

Short Answer

Expert verified

Therefore, the list of vertices of the ordered rooted trees in Figures 3 and 9 of Section 11.3 in level order is\({\bf{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p}}\) and \({\bf{a,b,c,d,e,f,g,h,i,j,k}}\).

Step by step solution

Achieve better grades quicker with Premium

  • Unlimited AI interaction
  • Study offline
  • Say goodbye to ads
  • Export flashcards

Over 22 million students worldwide already upgrade their learning with Vaia!

01

General form

Definition of tree: A tree isa connected undirected graph with no simple circuits.

Definition of Circuit: It is a path that begins and ends in the same vertex.

Definition of rooted tree: A rooted tree is a tree in which one vertex has been designated as the root and every edge is directed away from the root.

Level order (Definition): The listing of the vertices of an ordered rooted tree in level order begins with the root, followed by the vertices at level 1 from left to right, followed by the vertices at level 2 from left to right, and so on.

02

Evaluate the level order of the trees

Given that, the ordered rooted trees.

Referring Section 11.3: Figure 3 and 9 are shown below.

Figure 3:

Figure 9:

Now, let us find the level order of an ordered trees, the listing of the vertices starting with the root, then the vertices at level 1 from left to right, then vertices at level2 from left to right, and so on.

Level order of Figure 3: \({\bf{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p}}\).

Level order of Figure 9: \({\bf{a,b,c,d,e,f,g,h,i,j,k}}\).

Conclusion: The founded graphs are representing the level order of the vertices.

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Give at least three examples of how trees are used in modeling.

In this exercise we will develop an algorithm to find the strong components of a directed graph \({\bf{G = }}\left( {{\bf{V,E}}} \right)\). Recall that a vertex \({\bf{w}} \in {\bf{V}}\) is reachable from a vertex \({\bf{v}} \in {\bf{V}}\) if there is a directed path from v to w.

  1. Explain how to use breadth-first search in the directed graph G to find all the vertices reachable from a vertex \({\bf{v}} \in {\bf{G}}\).
  2. Explain how to use breadth-first search in \({{\bf{G}}^{{\bf{conv}}}}\) to find all the vertices from which a vertex \({\bf{v}} \in {\bf{G}}\) is reachable. (Recall that \({{\bf{G}}^{{\bf{conv}}}}\) is the directed graph obtained from G by reversing the direction of all its edges.)
  3. Explain how to use part (a) and (b) to construct an algorithm that finds the strong components of a directed graph G, and explain why your algorithm is correct.

Show that every tree can be colored using two colors. The rooted Fibonacci trees \({\bf{Tn}}\) are defined recursively in the following way. \({\bf{T1}}\)and\({\bf{T}}2\) are both the rooted tree consisting of a single vertex, and for \({\bf{n = 3, 4,}}...{\bf{,}}\) the rooted tree \({\bf{Tn}}\) is constructed from a root with \({\bf{Tn - }}1\) as its left subtree and \({\bf{Tn - 2}}\) as its right subtree.

Show that postorder traversals of these two ordered rooted trees produce the same list of vertices. Note that this does not contradict the statement in Exercise 27, because the numbers of children of internal vertices in the two ordered rooted trees differ.

Well-formed formulae in prefix notation over a set of symbols and a set of binary operators are defined recursively by these rules:

  1. If x is a symbol, then x is a well-formed formula in prefix notation;
  2. If X and Y are well-formed formulae and * is an operator, then * XY is a well-formed formula.

In Exercises 2โ€“6 find a spanning tree for the graph shown byremoving edges in simple circuits.

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free