ITEC33(finals) Flashcards

1
Q

It is a pictorial representation of a set of objects where some of objects are connected by links.

A

Graph

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

The interconnected objects are represented by points.

A

Vertices

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

Links that connect the vertices.

A

Edges

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

Two nodes or vertices are adjacent of they are connected to each other through an edge.

A

Adjacency

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

It represents a sequence of edges between the two vertices.

A

Path

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

Adds a vertex to the graph

A

Add Vertex

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

Adds an edge between the two vertices of the graph.

A

Add Edge

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

Displays a vertex of the graph.

A

Display Vertex

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

Algorithm traverse a graph in a depthward motion and uses a stack to remember to get the next vertex to start a search.

A

Depth First Search (DFS)

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

Algorithm traverse a graph in a breadthward motion and uses a queue to remember to get the next vertex to start a search.

A

Bread First Search(BFS)

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

Represents the nodes connected by edges.

A

Tree

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

The node at the top of the tree.

A

Root

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

The node below a given node connected by each edge downward.

A

Child

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

Represents the descendants of a node.

A

Subtree

18
Q

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

A

Visiting

19
Q

It means passing through nodes in a specific order.

A

Traversing

20
Q

It represents the generation of a node.

A

Levels

21
Q

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

A

Keys

22
Q

Inserts an element in a tree/ create a tree.

A

Insert

23
Q

Searches an element in a tree.

A

Search

24
Q

Traverses a tree in a pre-order manner.

A

Preorder Traversal

25
Q

Traverses a tree in a in-order manner.

A

Inorder Traversal

26
Q

Traverses a tree in a post-order manner.

A

Postorder Traversal

27
Q

Is a process to visit all the nodes of a tree and may print their values too.

A

Tree Traversal

28
Q

In this traversal method, the first subtree is visited first, then the root and later the right subtree.

A

In-Order Tree Traversal

29
Q

In this traversal method, the root node is visited first, then the left subtree and finally the right subtree.

A

Pre-Order Traversal

30
Q

In this traversal method, the root node is visited last, hence the name. First we traverse the left subtree, then the right subtree and finally the root node.

A

Post-Order Traversal

31
Q

It is a hierarchical data structure in which node has at most two children generally referred as left child and right child.

A

Binary Tree

32
Q

It has a root node and every node has at most 2 children.

A

Rooted Binary Tree

33
Q

It is a tree in which every node in the tree has either 0 or 2 children.

A

Full Binary Tree

34
Q

It is a binary tree in which all interior nodes have two children and all levels have the same depth or same level.

A

Perfect Binary Tree

35
Q

It is a binary tree in which every level, except possible the last, is completely filled, and all nodes are as far left as possible.

A

Complete Binary Tree

36
Q

A binary tree is height balanced if it satisfies the following concept.

A

Balance Binary Tree

37
Q

It is a tree where each parent node has only 1 child node. It behaves like a linked list.

A

Degenerate Tree

38
Q

A tree whose elements have at most 2 children is called a binary tree. Since each element in a binary tree can have only 2 children, we typically named them the left and right child.

A

Binary Tree Data Structure

39
Q

Always initiate analyzing tree at the root node and then move further to either the right or left subtree of the root node depending upon the elements to be located is either less or greater than the root.

A

Search Operation

40
Q

First, the root node is inserted, then the next value is compared with the root node. If the value is greater than root, it is added to the right subtree, and if it is lesser than the root, it is added to the left subtree.

A

Insert Operation

41
Q

It is the most advanced and complex among all other operation.

A

Delete Operation