Applications of Trees in Real Life: Niño Dominic M. Matienzo Bsit - It1A
Applications of Trees in Real Life: Niño Dominic M. Matienzo Bsit - It1A
Applications of Trees in Real Life: Niño Dominic M. Matienzo Bsit - It1A
Lestie
Alfredo Matienzo Fe Olan Delo Olan Franco Biscocho
Auntie Husband Auntie Biscocho Husband
Father
Angie
Jojo Olan Biscocho
Cousin Cousin
Edwin Biscocho
Cheche Olan Christian Biscocho
Cousin
Cousin Cousin
Jun Biscocho
Bjorn Biscocho Cousin
Cousin Dennis Biscocho
Arnold Biscocho Cousin
Cousin Baby Biscocho
Cousin
GENEALOGY TREE
MOTHER SIDE
Unknown Unknown
Great Great Grandfather Great Great Grandmother
Brian Corona
Cousin
GENEALOGY TREE
Determine the following using the tree you have generated:
FATHER’S SIBLINGS
• Fe Olan
• Lestie Biscocho
GENEALOGY TREE
Determine the following using the tree you have generated:
• UNKNOWN
GENEALOGY TREE
Determine the following using the tree you have generated:
• Nick Maligaya
GENEALOGY TREE
Determine the following using the tree you have generated:
• Nick Maligaya
GENEALOGY TREE
Determine the following using the tree you have generated:
The leaf nodes of the tree will consist of the variable or the operands which would define
the relationship between the operator
(3 * 6 + ((5 -2) /3) – 8 + (-5 * 2 + (6 -3) / 1))
+
Root
(3 * 6 + ((5 -2) /3) – 8
(-5 * 2 + (6 -3) / 1))
Left Subtree
Right Subtree
Right Subtree -
* - Left Subtree *
- /
- 2
+ 8 5
3 6 5 2 + 1
/ 5
- * - - /
* /
- - 2 6 3 1
3 6 3
- 3
3 6
8 5
5 2 5 2
+
Root
Left Subtree Right Subtree
11 -7
19
-7
Final Output: 4
18 1
-10 * 3
3
• Traversal: Preorder
Visit, Left Right
Output:
+-+*36/-5238/+*-52-631
*
• Traversal: Inorder
Left, Visit, Right
Output:
3*6+5-2/3-8+-5*2+6-3/1
*
• Traversal: Postorder
Left, Right Visit
Output:
36*52-3/+8-52*63-+1/+