Chapter 6 Flashcards

1
Q

non-linear abstract data type with a hierarchy-based structure.

A

tree

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

refers to the sequence of nodes along the edges of a tree.

A

Path

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

The node at the top of the tree is called .

A

Root

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

Any node except the root node has one edge upward to a node called .

A

Parent

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

The node below a given node connected by its edge downward is called

A

Child

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

The node which does not have any child node is called

A

Leaf

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

represents the descendants of a node.

A

Subtree

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

refers to checking the value of a node when control is on the node.

A

Visiting

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

means passing through nodes in a specific order.

A

Traversing

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

represents the generation of a node. If the root node is at level 0, then its next child node is at level 1, its grandchild is at level 2, and so on.

A

Levels

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

Represents a value of a node based on which a search operation is to be carried out for a node.

A

Keys

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

The node which is a predecessor of a node is called the __ of that node.

A

Parent Node

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

Any predecessor nodes on the path of the root to that node are called Ancestors of that node.

A

Ancestor of a Node

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

Any successor node on the path from the leaf node to that node.

A

Descendant

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

The count of edges on the path from the root node to that node.

A

Level of a node

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

node with at least one child is called

A

Internal node

17
Q

Parent or child nodes of that node are called

A

Neighbour of a Node

18
Q

Any node of the tree along with its descendant.

A

Subtree

19
Q

each node can have a maximum of two children linked to it.

A

Binary tree

20
Q

a tree data structure in which each node has at most three child nodes, usually distinguished as “left”, “mid” and “right”.

A

Ternary Tree

21
Q

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

A

N-ary Tree or Generic Tree

22
Q

Create a tree in the data structure.

A

Create

23
Q

Inserts data in a tree.

A

Insert

24
Q


Searches specific data in a tree to check whether it is present or not.

A

Search

25
Q

perform Traveling a tree in a pre-order manner in the data structure.

A

Preorder Traversal

26
Q

perform Traveling a tree in an in-order manner.

A

In order Traversal

27
Q

perform Traveling a tree in a post-order manner.

A

Post-order Traversal

28
Q

a spanning tree with a weight less than or equal to the weight of every other spanning tree.

A

A minimum spanning tree(MST)

29
Q

This algorithm always starts with a single node and moves through several adjacent nodes, in order to explore all of the connected edges along the way.

A

Prim’s algorithm

30
Q

A group of edges that connects two sets of vertices in a graph is called

A

cut in graph theory.