Terminology for Rooted Trees

 
Rooted (Directed) Trees
 
 
Rooted (Directed) Trees
 
find the 
parent
 of 
C
 
Terminology for Rooted Trees
 
find the 
parent
 of 
C
    {
b
}
 
Terminology for Rooted Trees
 
find the 
parent
 of 
C
    {
b
}
 
find the children  of 
 g
 
Terminology for Rooted Trees
 
find the 
parent
 of 
C
                  {
b
}
 
find the 
children
  of 
 g
              {
h, i, g
}
 
Terminology for Rooted Trees
 
find the 
parent
 of 
C
                  {
b
}
 
find the 
children
  of 
 g
              {
h, i, g
}
 
find the 
sibling
 of  
h
 
Terminology for Rooted Trees
 
find the 
parent
 of 
C
                  {
b
}
 
find the 
children
  of 
 g
              {
h, i, g
}
 
find the 
sibling
 of  
h
                   {
i, j  
}
 
 
Terminology for Rooted Trees
 
find the parent of 
C
                  {
b
}
 
find the children  of 
 g
              {
h, i, g
}
 
find the sibling of  
h
                   {
i,j  
}
 
find the 
ancestors
  of  
e
 
Terminology for Rooted Trees
 
find the 
parent
 of 
C
                  {
b
}
 
find the 
children
  of 
 g
              {
h, i, g
}
 
find the 
sibling
 of  
h
                   { 
i, j  
}
 
find the 
ancestors
  of  
e           {c, b, a}
 
Terminology for Rooted Trees
 
find the 
parent
 of 
C
                  {
b
}
 
find the 
children
  of 
 g
              {
h, i, g
}
 
find the 
sibling
 of  
h
                   { 
i, j  
}
 
find the 
ancestors
  of  
e           {c, b, a}
 
find the 
descendants
   of  
b
 
Terminology for Rooted Trees
 
find the parent of 
c
                  {
b
}
 
find the children  of 
 g
              {
h, i, g
}
 
find the siblings of  
h
                   { 
i, j  
}
 
find the ancestors  of  
e           {c, b, a}
 
find the descendants   of  
b    {c, d, e  }
 
find  all internal nodes         {a,b,g,c,h,j}
 
find  all  leaves ( external nodes)    {f,d,e, i,k,l,m}
 
leaves ( external nodes)
 
internal nodes
 
Subtrees
 
Levels and Height
 
Example
 
Example
Slide Note
Embed
Share

Explore the terminology associated with rooted trees, including concepts like finding parents, children, siblings, ancestors, and descendants of nodes. Dive into the structure and relationships within rooted trees to enhance your understanding of this fundamental data structure.

  • Rooted Trees
  • Data Structure
  • Tree Terminology
  • Node Relationships
  • Hierarchical Structure

Uploaded on Oct 11, 2024 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Rooted (Directed) Trees

  2. Rooted (Directed) Trees find the parent of C

  3. Terminology for Rooted Trees find the parent of C {b}

  4. Terminology for Rooted Trees find the parent of C {b} find the children of g

  5. Terminology for Rooted Trees find the parent of C {b} find the children of g {h, i, g}

  6. Terminology for Rooted Trees find the parent of C {b} find the children of g {h, i, g} find the sibling of h

  7. Terminology for Rooted Trees find the parent of C {b} find the children of g {h, i, g} find the sibling of h {i, j }

  8. Terminology for Rooted Trees find the parent of C {b} find the children of g {h, i, g} find the sibling of h {i,j } find the ancestors of e

  9. Terminology for Rooted Trees find the parent of C {b} find the children of g {h, i, g} find the sibling of h { i, j } find the ancestors of e {c, b, a}

  10. Terminology for Rooted Trees find the parent of C {b} find the children of g {h, i, g} find the sibling of h { i, j } find the ancestors of e {c, b, a} find the descendants of b

  11. Terminology for Rooted Trees find the parent of c {b} find the children of g {h, i, g} find the siblings of h { i, j } find the ancestors of e {c, b, a} find the descendants of b {c, d, e } find all leaves ( external nodes) {f,d,e, i,k,l,m} find all internal nodes {a,b,g,c,h,j}

  12. leaves ( external nodes)

  13. internal nodes

  14. Subtrees

  15. Levels and Height

  16. Example

  17. Example

More Related Content

giItT1WQy@!-/#giItT1WQy@!-/#