Questions tagged [trees]

For questions about trees in graph theory, which are connected graphs with no cycles. Also can be used for questions about forests, which are graphs that are disjoint unions of trees.

Trees are an important topic in graph theory. A tree is a connected graph with no cycles. They are of enormous practical importance in applied mathematics.

For example, in a connected weighted graph, it is interesting to know how to find a subgraph which is a tree and which maximizes or minimizes the total weight of the subgraph. A subgraph of a graph $G$ which is a tree that touches all nodes of $G$ is called a spanning tree for $G$.

For instance, imagine a network of electrical systems, such as a telephone system, between nodes. Suppose that signals can travel through any path in the network, passing through intervening nodes to get to the final destination. The amount of wiring can be reduced by deleting portions of cycles in the graph of the network. The graph can eventually be reduced to a tree, and all nodes remain connected and accessible through the network.

Dijkstra's algorithm is an effective way to determine the lowest-weight spanning tree for a given connected graph.

2015 questions
0
votes
0 answers

contradiction truth tree

To get straight to the point: I have to prove, using a truth-tree, that the following set of propositions (image 2) is contradictory. You can see the way I proceeded in image 3 and the way the exemple is solved in the book in image 1. At one point…
0
votes
1 answer

How can the jth level of a binary tree with n nodes has problems of size $({\frac{n}{2}})^j$?

I read from a book that the jth level (starting from j=0 or the root) of a binary tree with n nodes divides a problem into $2^j$ subproblems, each of size $\frac{n}{2^j}$. I understand where $2^j$ comes from, but where does $\frac{n}{2^j}$ come…
David Faux
  • 3,425
0
votes
1 answer

Finding a unique tree for given in order and postorder traversals

I just encountered a problem to find a tree for given inorder and postorder traversals.Can anybody elaborate the same using an example ?
0
votes
2 answers

finding heap child and partents

I did anwer the question but I'm not sure if this is right. can you guys double check my answer and let me know if its wrong. Question 1: For the heap element at position i in the underlying array of a 3-heap, what are the positions of its immediate…
dav
  • 1
0
votes
1 answer

Remove the root from a binomial tree

I have a binomial tree with height k. How do I proof that when I remove the root, the result will be k new binomial trees, each with with a height from 0 to k-1. Thanks in advance.
0
votes
4 answers

sum of heights in perfect binary tree

the question: what is the sum of heights of the vertices of a perfect binary tree (n vertices, the height of a leaf is 0)? explain shortly. a. $\theta(logn) $ b. $\theta(nlogn) $ c. $\theta(n) $ d. $\theta(n^2) $ so, I know the answer is c, and I…
John
  • 341
0
votes
1 answer

Vertices of RSMT

I've been looking into RSMT trees recently. For those unfamiliar with them, it's the smallest possible tree that connects a set of points using only vertical and horizontal edges. One of the features of this tree is what I will call inner vertices.…
0
votes
1 answer

Min and max height of a binary tree

Suppose I have n nodes, how can I find the max and min height of a tree? I've seen varying statements for the min height such as $log_2 (n)$ and $log_2 (n+1)$ but I wasn't sure which was correct and I am unsure how to find the maximum height
jn025
  • 989
0
votes
2 answers

Drawing a binary tree based on a traversal sequence

I'm given a sequence of characters that are from a pre-order traversal of a binary tree. I'm not given the binary but I need to draw the binary tree based on the sequence of characters from the traversals From this binary tree, Pre-order…
jn025
  • 989
0
votes
2 answers

Binary search tree. Counting.

How many BSTrees can be constructed from given set: $\{1,2,3,4,5\}$? I have no idea how to solve it. Please help me. Thanks in advance.
user180834
  • 1,453
-1
votes
1 answer

counting trees - graph theory

Consider the following simple graph with 9 vertices and 12 edges: Assume that all vertical edges have the weight (length) 1, and all horizontal edges have the weight 2. How many different minimum spanning trees does this graph have? Why? (Here, we…
Fara
  • 27
-4
votes
1 answer

How many vertices does a complete binary tree of height 1 have?

How many vertices does a complete binary tree of height 1 has? Height 2? Height d? Any hints on how to start to tackle these set of questions?
Natasha
  • 333
1 2 3 4 5
6