Binary Tree Flashcards
What is a Ternary Tree?
A Ternary Tree is a tree data structure in which each node has at most three child nodes, usually distinguished as ‘left’, ‘mid’, and ‘right’.
What is an N-ary Tree or Generic Tree?
Generic trees are a collection of nodes where each node is a data structure that consists of records and a list of references to its children (duplicate references are not allowed). Unlike the linked list, each node stores the address of multiple nodes.
What is a Binary Tree?
A Binary Tree is a tree data structure (non-linear) in which each node can have at most two children which are referred to as the left child and the right child.
This visits d tree in a syste manner
2.
- Nodeis v b4 descendant
- Node is v after descendant
5nnode is visited after it left seubtree n before its right sub tree
- Yreetraversal
- PRE ORDER
- Inorder
- Post order
What is a Binary Tree?
A Binary Tree is a tree data structure (non-linear) in which each node can have at most two children which are referred to as the left child and the right child.