Preview

Graph Theory

Better Essays
Open Document
Open Document
1587 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Graph Theory
Tree definitions
If you already know what a binary tree is, but not a general tree, then pay close attention, because binary trees are not just the special case of general trees with degree two. I use the definition of a tree from the textbook, but bear in mind that other definitions are possible.
Definition. A tree consists of a (possible empty) set of nodes. If it is not empty, it consists of a distinguished node r called the root and zero or more non-empty subtrees T1, T2, …, Tk such that there is a directed edge from r to each of the roots of T1, T2, …, Tk.Definition. A forest is a collection of trees. You can always create a tree form a forest by creating a new root node and making it the parent of the roots of all of the trees in the forest. Conversely, if you lop off the root of a tree, what is left is a forest.
I assume that you are familiar with the terminology of binary trees, e.g., parents, children, siblings, ancestors, descendants, grandparents, leaf nodes, internal nodes, external nodes, and so on, so I will not repeat their definitions here. Because the definitions of height and depth may vary from one book to another, I do include their definitions here, using the ones from the textbook.
Definition. A path from node n1 to node nk is a sequence of nodes n1, n2, …, nk such that ni is the parent of ni+1 for 1 ≤ i < k. The length of a path is the number of edges in the path, not the number of nodes. Because the edges in a tree are directed, all paths are “downward”, i.e., towards leaves and away from the root. The height of a node is the length of the longest path from the node to any of its descendants. Naturally the longest path must be to a leaf node. The depth of a node is the length of the path from the root to the node. The root has depth 0. All leaf nodes have height 0.
The height of a tree is the height of its root. The degree of a node is the number of children of the node. The degree of a tree is the maximum degree of the degrees

You May Also Find These Documents Helpful

  • Powerful Essays

    The case of Adnan Syed is a mysterious one, it all starts with the murder of a 17 year old girl from Baltimore County, Maryland; Hae Min Lee. On the afternoon of January 13, 1999 she disappeared, her body was later found in Leakin Park (a hotspot for dead bodies) cause of death: strangulation. Her ex-boyfriend ,Adnan Syed, was arrested later for the crime and in June 6, 2000 was sentenced to life plus 30 years in prison. The case on his story was mainly based from testimony given from his friend, Jay, who testified to helping Adnan bury Hae’s body. Adnan constantly insists that he had nothing to do with her death. Is Adnan Syed really guilty?…

    • 1411 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    Cse 373 Final Note

    • 955 Words
    • 4 Pages

    An ordered or sorted binary tree, is a node based binary tree data structure that has the following properties:…

    • 955 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Trees occur in various venues in computer science: decision trees in algorithms, search trees, and so on. In linguistics, one encounters trees as well, typically as parse trees, which are essentially sentence diagrams, such as those you might have had to do in primary school, breaking a natural-language sentence into its components—clauses, subclauses, nouns, verbs, adverbs, adjectives, prepositions, and so on. What might be the significance of the depth and breadth of a parse tree relative to the sentence it represents? If you need to, look up parse tree and natural language processing on the Internet to see some examples.…

    • 2006 Words
    • 7 Pages
    Good Essays
  • Good Essays

    Econ 472 midterm 2014

    • 1033 Words
    • 7 Pages

    by the term normal forest, as opposed to a single stand of trees. What relevance, if any,…

    • 1033 Words
    • 7 Pages
    Good Essays
  • Better Essays

    APES Ch 10 review

    • 1782 Words
    • 8 Pages

    Q)An old-growth forest is an uncut or regenerated forest that has not been seriously disturbed by human activities or natural disasters for several hundred years or more. Second growth forests are stands of trees resulting from secondary ecological succession. A tree plantation is a managed forest containing only one or two species of trees that are all of the same ages.…

    • 1782 Words
    • 8 Pages
    Better Essays
  • Satisfactory Essays

    MATH203 PHASE3

    • 268 Words
    • 1 Page

    The tree is not a binary tree because some nodes have more than two children. If a direct link…

    • 268 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    geography 1 chap 11

    • 2437 Words
    • 10 Pages

    A deciduous trees is one that experiences an annual period in which all leaves die and usually fall from the tree, due to either a cold season or a dry season. Example: Oak…

    • 2437 Words
    • 10 Pages
    Good Essays
  • Good Essays

    Coast Live Oak

    • 544 Words
    • 3 Pages

    The bark of young trees is smooth. With age, it develops deep furrows, ridges, and a thickness of about 8 to 9% of bole or branch diameter. The root system consists of a deep taproot that is usually nonfunctional in large trees. Several deep main roots may tap groundwater if present within approximately 36 feet of the soil surface. Coast live oak develops extensive horizontal root branches and surface-feeding roots.…

    • 544 Words
    • 3 Pages
    Good Essays
  • Good Essays

    GCSE Essay - The Tree

    • 478 Words
    • 2 Pages

    In the deep forest, there stands a tree beside a river. It is an ancient tree, standing tall against the sky. On its bows grow lush green leaves of thousandth generation. At its base, grey roots pile on top of one other like an old man's beard. A cicada lies on top of a root with its legs pointing uselessly at the sky.…

    • 478 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Succession Lab Report

    • 1225 Words
    • 5 Pages

    When we entered forest A, I looked around me and noticed a lot of familiar trees. Many of the leaves were wide and had points. When our group was finished in forest A, we had a total of fifty one maple trees. We went onto forest B and finished our measurements we had a total of forty-eight maple trees. Our next hypothesis was that the pond forest would be the older forest out of the two. When we first got to forest B, we noticed that the pond had a significantly larger amount of lower level vegetation. We figured the reasoning for this was because forest B received more sunlight to the forest floor. We also noticed that there were less dead trees and the live trees seemed to be smaller in circumference. The only problem was that the pond forest seemed to be less bothered than the one behind the elementary school. I didn’t make much sense of this. I figured if the forest was farther away, which it was indeed, it would be less disturbed and contain bigger trees. Therefore, I was a tad confused. Although, it did make sense to me that by receiving more sunlight, the forest would have more lower level…

    • 1225 Words
    • 5 Pages
    Good Essays
  • Good Essays

    The similarities between the two short stories “A Rose for Emily” by William Faulkner and “The Story of an Hour” by Kate Chopin. Both stories have a same setting, both have health conditions and live and a time where women had very few choices on how to run their life.…

    • 325 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    Maths Leaf It to Me

    • 3378 Words
    • 14 Pages

    It is predicted that this report will prove that as a tree’s growing capacity increases the average, median and mean leaf size will decrease. This is likely due providing a more efficient means of transporting fluid around the tree. However to compensate for the shorter leaves’ having less ability to capture sunlight there will be an increased quantity of them to ensure that adequate sunlight is absorbed…

    • 3378 Words
    • 14 Pages
    Powerful Essays
  • Good Essays

    Domesticating Dogs

    • 563 Words
    • 3 Pages

    The amount of time that elapses between each generation is information that can be used to further construct the tree. The trees branches are the indicators of the amount of time that has elapsed. The…

    • 563 Words
    • 3 Pages
    Good Essays
  • Better Essays

    The basic method that you can do to measure the height of a tree directly is measure the tree using a ruler or a measuring tape. This method have advantages and disadvantages. One of the advantage is the accuracy. Therefore, you can do this method during day and night condition. The disadvantages of this method are the unpractical and take a long time to measure the height of the tree using this method. Thus, you need many people to help you measure the height of the tree and it doesn’t efficient.…

    • 1299 Words
    • 6 Pages
    Better Essays
  • Powerful Essays

    Lushoto

    • 3033 Words
    • 13 Pages

    Forest Genetics has two sections namely: Seed and Nursery and Tree Breeding. Seed and Nursery section is responsible for seed establishment of trials (species and provenances selection), collection, extraction, storage, and distribution and rising of seedlings while Tree Breeding is responsible for trials maintenance, data collection and evaluation of trials.…

    • 3033 Words
    • 13 Pages
    Powerful Essays

Related Topics