Trees and Graph
first of all we'll see common terminologies of tree. First of all, I will write terminology. First I will write root. Root is that node which has no upper node means It is linked to others but there is no other node linking to it. Then I will move to other terminology that is parent and child. Any node to which a node is connecting is its parent. Leaf node is the lowest node. Leaf or external node is that which can not be a parent. The depth of a node is number of edges from root to the node. If there would be more nodes down we would have find depth. The deepest leaf or Shruti is which one ? If I ask Raghav to go down then where he will go ? First it will go to Rahul it has to reach the deepest leaf. Sankalp has ancestor 's Rohan , Shruti and Raghav. Means grandfather, great grandfather, grandmother, great-grandmother. Siblings means brother sister means same parent 's children. Nodes belonging to the same parent are known as siblings. There are many more things in trees which I want to show you. Do n't think as that 's all about trees. There are more about trees which we will learn. But take some time and understand it. You should know all the terminologies if you are not getting terminology. we will see why trees are important for us. So let me write and show you by creating one tree here. And first of all we'll see common terminologies of tree. First of all, I will write terminology. First I will write root. Root is that node which has no upper node means It is linked to others but there is no other node linking to it. Then I will move to other terminology that is parent and child. Any node to which a node is connecting is its parent. Leaf node is the lowest node. Leaf or external node is that which can not be a parent. The depth of a node is number of edges from root to the node. If there would be more nodes down we would have find depth. The deepest leaf or Shruti is which one ? If I ask Raghav to go down then where he will go ? First it will go to Rahul it has to reach the deepest leaf. Sankalp has ancestor 's Rohan , Shruti and Raghav. Means grandfather, great grandfather, grandmother, great-grandmother. Siblings means brother sister means same parent 's children. Nodes belonging to the same parent are known as siblings. There are many more things in trees which I want to show you. Do n't think as that 's all about trees. There are more about trees which we will learn. But take some time and understand it. You should know all the terminologies if you are not getting terminology.
Written for
- Institution
- MAKAUT University
- Course
- Data Structure and Algorithm
Document information
- Uploaded on
- March 19, 2023
- Number of pages
- 51
- Written in
- 2022/2023
- Type
- Class notes
- Professor(s)
- Nil
- Contains
- All classes
Subjects
-
trees
-
graph