ITEC 30 Flashcards

1
Q

a pictorial representation of a set of objects where some pairs 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

inks that connect the vertices .

A

Edges

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

Each node of the graph is represented as a vertex.

A

Vertex

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

represents a path between two vertices or a line between two vertices.

A

Edge

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

Two node or vertices are adjacent if 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
7
Q

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
8
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
9
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
10
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
11
Q

traverses a graph in a depth ward motion and uses a stack to remember to get the next vertex to start a search

A

DEPTH-FIRST TRAVERSAL

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

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

A

Breadth First Traversal

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

represents the nodes connected by edges

A

Tree

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

can be defined recursively as a collection of nodes (starting at a root node), where each node is a data structure consisting of a value

A

tree data structure

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

raverses a tree in an in-order manner.

A

Inorder Traversal

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

Traverses a tree in a post-order manner.

A

Postorder Traversal

17
Q

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

18
Q

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

19
Q

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