Decision 1 Definitions Flashcards

1
Q

Graph

A

Consists of vertices which are connected by edges.

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

Subgraph

A

Part of a graph.

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

Weighted graph

A

Graph in which there is a number associated with each edge.

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

Degree of valency/order

A

Number of edges incident to a vertex.

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

Path

A

Finite sequence of edges. End vertex of one edge in the sequence is the start vertex of the next. No vertex appears more than once.

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

Walk

A

Path which you are allowed to return to vertices more than once.

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

Cycle

A

Closed ‘path’. End vertex of last edge is start vertex of first edge.

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

Connected

A

Two vertices are connected if there is path between them. Connected graph= all its vertices are connected.

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

Loop

A

Edge that starts and finishes at the same vertex.

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

Simple graph

A

Graph with no loops and not more than one edge connecting any pair of vertices.

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

Digraph

A

Graph with edges that have direction associated with them- edges=connected edges.

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

Tree

A

Connected graph with no cycles.

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

Spanning tree

A

Subgraph of a graph which includes all vertices of the graph and is also a tree.

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

Bipartite graph

A

Graph consisting of two sets of vertices, X and Y. Edges only join vertices in X to vertices in Y, not vertices within a set.

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

Complete graph

A

Graph in which every vertex is directly connected by an edge to each of the other vertices. If graph has n vertices, connected graph is denoted k(n subscript).

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

Complete partite graph

A

Graph in which there are r vertices in set X and s vertices in set Y (denoted K(r,s subscript).

17
Q

Isomorphic graph

A

Graph showing same information as another but which is drawn differently.

18
Q

Distance matrix

A

Matrix which records the weights on the edges. No weight is indicated by ‘-‘.

19
Q

Minimum spanning tree

A

A spanning tree such that the total length of its arcs is as small as possible.

20
Q

Early time

A

Earliest time of arrival at event allowing for completion of all preceding activities.

21
Q

Late time

A

Latest time that event can be left without extending the time needed for project.

22
Q

Critical activity

A

Activity where any increase in its duration results in a corresponding increase in the duration of the whole project.

23
Q

Critical path

A

Path from source to sink which entirely follows critical activities. Longest path in network.

24
Q

Total float

A

Total float, F (i, j) of activity (i, j) is defined to be F(i, j)=l(sub j) - e(sub i) - duration (i, j), where e(sub i) is the earliest time for event i and l(sub j) is the latest time of event j.

25
Q

Matching

A

Matching is the 1 to 1 pairing of some, or all, of the elements of one set (X) with elements of second set (Y) in bipartite graph.

26
Q

Maximal matching

A

Matching in which number of arcs is as large as possible.

27
Q

Complete matching

A

1 to 1 pairing of all elements of one set, X, with elements of second set, Y, in bipartite graph.

28
Q

Alternating path

A

Path starting at unmatched node on one side of bipartite graph and finishes at unmatched node on other side. Uses arcs that alternatively ‘not in’ or ‘in’ the initial matching.

29
Q

Why dummy?

A

(One dependent on one, another on two) so that the 2 events can be described uniquely in terms of their end events.

30
Q

RI: which node should end and why?

A

“CE” is shortest. So repeat “CE”. Thus start and end at “D” or “G”.

31
Q

3 differences between Prim and Kruskal.

A

1) K starts with shortest arc. P starts with any node.
2) K adds arcs, whereas P adds nodes to growing tree.
3) P can use distance matrix.

32
Q

Explain why there must always be an even number of vertices with odd valency in every graph.

A

Each arc contributes 1 to the orders of two nodes so the sum of the orders of all nodes is equal to twice the number of arcs, which implies that the sum of the orders of all nodes is even and therefore there must be an even (or 0) number of vertices of odd vertices of odd order hence there cannot be an odd number of vertices of odd order.

33
Q

Find max number of comparisons in bubble sort.

A

For list of n numbers, max no. of passes = (n-1). Max no. of swaps= (n-1) + (n-2)+…+1. Thus n(n-1)/2 is max number of comparisons.