LESSON 7-9 Flashcards

1
Q

is a variable whose value is the address of another variable, i.e., direct address of the memory
location

A

Pointer

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

is a term used for the thing that the pointer points to, and stick to the basic properties of the pointer/pointee relationship which are true in all languages

A

Pointee

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

operation starts at the pointer and follows its arrow over to access its pointee. The goal may be to look at the pointee state or to change the pointee state

A

Dereference

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

This is between two pointers that makes them point to the same pointee

A

Pointer Assignment

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

is a special Data Structure used for data storage purposes

A

Binary Tree

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
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
7
Q

The node at the top of the tree is
called. There is only one ___ per tree
and one path from the root node to any node.

A

Root

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

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

A

Parent

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

The node below a given node
connected by its edge downward

A

Child

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

The node which does not have any child node

A

Leaf

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

represents the descendants of a node.

A

Subtree

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
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
13
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
14
Q

of a node represents the
generation of a node.

A

Level

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

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

A

Key

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

exhibits a special behavior

A

Binary Search tree

17
Q

is a collection of nodes arranged in a way where they maintain BST properties

A

BST

18
Q

are used in computer science for various tasks, including storing information, representing hierarchical data, and providing efficient algorithms for operations such as insertion, deletion, and
searching

A

Trees

19
Q

immediate root of a node

A

Parent

20
Q

children of the same parent

A

Siblings

21
Q

all nodes along the path from the root to that node

A

Ancestors of a node

22
Q

all nodes of the subtrees of a node

A

Descendants of a node

23
Q

number of subtrees of a
node

A

Degree of a node

24
Q

no parents or ancestors

A

Root node

25
Q

no children or descendants node with a degree = 0

A

Leaf/terminal node

26
Q

has at least one
child or descendant node with degree <> 0

A

Nonleaf/nonterminal node

27
Q

= max[degree of nodes]

A

Degree of a tree

28
Q

1 + length of its path from the root

A

Level/generation of a node

29
Q

total number of levels

A

Height/depth of a tree

30
Q

number of leaf nodes

A

Weight of a tree

31
Q

set of disjoint trees

A

Forest

32
Q

Finite set of nodes which is either empty or
consisting of a root with at most two branches
to disjoint binary trees called the left subtree
and the right subtree

A

Binary Trees