Chapter 8 Flashcards

1
Q

Tree

A

A structure with a unique starting node (the root), in which each node is capable of having multiple child nodes, and in which a unique path exists from the root to every other node

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

Root

A

The top node of a tree structure; a node with no parent

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

Binary tree

A

A tree in which each node is capable of having two child nodes: a left child node and a right child node

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

Leaf

A

A tree node that has no children

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

Descendant

A

A child of a node, or a child of a parent

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

Ancestor

A

A parent of a node, or a parent of an ancestor

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

Binary search tree

A

A binary tree in which the value in any node is greater than or equal to the value in its left child and any of its descendants (the nodes in the left subtree) and less than the value in its right child and any of its descendants (the nodes in the right subtree)

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

Preorder traversal

A

A systematic way of visiting all the nodes in a binary tree by visiting a node, then visiting the nodes in the left subtree of the node, and then visiting the nodes in the right subtree of the node

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

Inorder traversal

A

A systematic way of visiting all the nodes in a binary tree by visiting the nodes in the left subtree of a node, then visiting the node, and then visiting the nodes in the right subtree of the node

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

Postorder traversal

A

A systematic way of visiting all the nodes in a binary tree by visiting the nodes in the left subtree of a node, then visiting the nodes in the right subtree of the node, and then visiting the node

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

Full binary tree

A

A binary tree in which all of the leaves are on the same level and every nonleaf node has two children

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

Complete binary tree

A

A binary tree that is either full or full through the next-to-last level, with the leaves on the last level as far to the left as possible

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

A structure with a unique starting node (the root), in which each node is capable of having multiple child nodes, and in which a unique path exists from the root to every other node

A

Tree

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

The top node of a tree structure; a node with no parent

A

Root

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

A tree in which each node is capable of having two child nodes: a left child node and a right child node

A

Binary tree

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

A tree node that has no children

A

Leaf

17
Q

A child of a node, or a child of a parent

A

Descendant

18
Q

A parent of a node, or a parent of an ancestor

A

Ancestor

19
Q

A binary tree in which the value in any node is greater than or equal to the value in its left child and any of its descendants (the nodes in the left subtree) and less than the value in its right child and any of its descendants (the nodes in the right subtree)

A

Binary search tree

20
Q

A systematic way of visiting all the nodes in a binary tree by visiting a node, then visiting the nodes in the left subtree of the node, and then visiting the nodes in the right subtree of the node

A

Preorder traversal

21
Q

A systematic way of visiting all the nodes in a binary tree by visiting the nodes in the left subtree of a node, then visiting the node, and then visiting the nodes in the right subtree of the node

A

Inorder traversal

22
Q

A systematic way of visiting all the nodes in a binary tree by visiting the nodes in the left subtree of a node, then visiting the nodes in the right subtree of the node, and then visiting the node

A

Postorder traversal

23
Q

A binary tree in which all of the leaves are on the same level and every nonleaf node has two children

A

Full binary tree

24
Q

A binary tree that is either full or full through the next-to-last level, with the leaves on the last level as far to the left as possible

A

Complete binary tree