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
10
votes
3 answers

Is the graceful labeling conjecture still unsolved?

From the Wikipedia article on graceful labeling: ... A major unproven conjecture in graph theory is the Ringel–Kotzig conjecture, named after Gerhard Ringel and Anton Kotzig, which hypothesizes that all trees are graceful. The Ringel-Kotzig…
Vor
  • 690
8
votes
1 answer

Height of a full binary tree

A full binary tree seems to be a binary tree in which every node is either a leaf or has 2 children. I have been trying to prove that its height is O(logn) unsuccessfully. Here is my work so far: I am considering the worst case of a full binary tree…
8
votes
5 answers

In binary tree, number of nodes with two children when number of leaves is given

For a binary tree what is the number of nodes with two children when the number of leaves is 20? I know that for complete binary tree, when the number of leaves is x then the number of internal nodes is x-1. But in the question above the given tree…
Mahesha999
  • 2,053
6
votes
3 answers

Computing Ancestors of # for Stern-Brocot Tree

Reading about the Stern-Brocot tree, the article gives this example: using 7/5 as an example, its closest smaller ancestor is 4/3, so its left child is (4 + 7)/(3 + 5) = 11/8, and its closest larger ancestor is 3/2, so its right child is (7 + 3)/(5…
5
votes
2 answers

Finding number of homeomorphically irreducible trees of degree $N$

There is a scene in Goodwill Hunting where professor challenges students with task of finding all homeomorphically irreducible trees of degree $10$. This is discussed in many places, such as here and is by itself a relatively easy to solve puzzle.…
user62589
5
votes
1 answer

Tree formalisms

The intuitive notion of a tree in mathematics is quite straightforward. However, there are several different formalisms of the tree concept. The link http://ncatlab.org/nlab/show/tree lists several possibilities. I would like to have an exhaustive…
Ittay Weiss
  • 79,840
  • 7
  • 141
  • 236
5
votes
4 answers

Minimum Number of Nodes for Full Binary Tree with Level $\lambda$

If the level ($\lambda$) of a full binary tree at zero is just a root node, than I know that I can get the maximum possible number of nodes (N) for a full binary tree using the following: N = $2^{\lambda+1}$- 1 Is the minimum possible number of…
4
votes
1 answer

What are the automorphisms of an $n$-regular tree?

Let $T$ be the connected tree in which each vertex has $n$ neighbors. (So $T$ is infinite.) What is the full automorphism group of $T$?
4
votes
3 answers

A "correct" hierarchical scoring scheme?

I have a situation where we are given a set of objects each with a numeric score stating it's importance. Let's call them Level 1 (or L1) objects. There is another set of objects that are similarly scored/ranked. Let's call them L2 (for level 2).…
PhD
  • 2,731
3
votes
3 answers

Parent and childs of a full d-node tree

i have a full d-node tree (by that mean a tree that each node has exactly d nodes as kids). My question is, if i get a random k node of this tree, in which position do i get his kids and his parent? For example, if i have a full binary tree, the…
Aggelos
  • 31
3
votes
2 answers

How to establish bijective between the set of rooted trees and natural numbers, using Godel numbering?

Consider the structure of a rooted tree independent of its underlying set, (i.e. in the sense of trees as combinatorial species). I know a number of ways which we can encode any such tree in natural numbers, but all of them fail to be a bijective,…
Hooman
  • 3,647
3
votes
1 answer

What is the maximum number of "root subtrees" that a tree can have?

Let $T=(V,E)$ be a directed rooted tree with root $r \in V$. A root subtree$^1$ of $T$ is a directed rooted tree $T'=(V',E')$ that fulfills the following conditions: $T'$ is a subgraph of $T$, $r \in V'$ for each node $v \in V'$, either all…
vauge
  • 323
3
votes
1 answer

Number of Trees with n Nodes

I am struggling with a question that asks the number of trees that exist with x nodes and max level z. During my research I found that the number of binary trees with x nodes can be obtained by Catalan numbers. However, there is this element of max…
Rob B.
  • 31
2
votes
2 answers

Searching a binary search tree for a specific value

suppose numbers from 1 to 1000 are saved in a binary search tree and we want to find 363. Which of the following sequences cannot be the order of elements while reaching the searched value? 925, 202, 911, 240, 912, 245, 363 924, 220, 911, 244, 898,…
Gigili
  • 5,503
  • 8
  • 41
  • 62
2
votes
0 answers

Avoiding binary tree duplicates

There are n! permutations that can be inserted into an initially empty binary tree, but only Catalan(n) different binary trees. A possible method (surely very ineffective, but I'm an old FORTRAN guy, meaning that I automatically hate classes and…
1
2 3 4 5 6