Binary Tree Flashcards

1
Q

What is a Ternary Tree?

A

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’.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an N-ary Tree or Generic Tree?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a Binary Tree?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

This visits d tree in a syste manner
2.

  1. Nodeis v b4 descendant
  2. Node is v after descendant
    5nnode is visited after it left seubtree n before its right sub tree
A
  1. Yreetraversal
  2. PRE ORDER
  3. Inorder
  4. Post order
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a Binary Tree?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly