quiz 4 Flashcards

1
Q

In every iteration, Kruskal’s Algorithm adds a ___ to the partiall constructed MST

A

New Edge

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

Which algorithm is/are used to find MST

A

Kruskals and Prim’s algorithm

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

If the weighted connected graph has n vertices and m edges,then the minimum spanning tree has

A

exactly n-1 edges

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

A minimum spanning tree has _____ cycles?

A

Zero

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

A tree which contains all the vertices of the graph is called as

A

Spanning Tree

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

In every iteration, Prims Algorithms adds _____ to partially constructed MST

A

New Vertex

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

The spanning tree with the minimum sum of weights is called as

A

Minimum Spanning Tree

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

A weighted graph can have ____ minimum spanning tree

A

more than one

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

Which algorithm uses the minimum priortiy queue

A

Prims & Huffman

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

In order to find the least expensive way to connect a set of cities, terminals,computers,which of the following is useful?

A

Minimum Spanning Tree

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

In ____ we start with a vertex and then the group all the vertices adjiacent to it. Then we go alphabeticalty or in numeric order to construct a path

A

BFS

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

Which graph can have a topological order

A

Directed, acyclic

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

Which graph traversal technique is similar to level order traversal

A

BFS

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

A vertex having degree 1 is called as

A

Pendant Vertex

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

A simple algorithm to find a ____ is to find out any vertex with indegree zero, that is a vertex without any predeccot. we can then add this vertex in an ordering set and remove it along with its edge from the graph. Then we repeat the same strategy on hte remaining graph until it is empty

A

Toplogical Order

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

____ is an ordering of vertices of a graph, such that, if there is a path from u to v in the graph then u appears before v in the ordering

A

Topological order

17
Q

Which graph traversal is similar to preorder traversal

18
Q

Which graph traversal technique picks one of hte adjacent vertex and proceeds

19
Q

Which graph traversal technique considers all of the adjacent vertices and proceeds

20
Q

Every graph has

A

Zero or more topological order

21
Q

A graph in which there is an edge between wevery pair of vertices is called as

22
Q

A graph which does not have self loops or parallel edges is called

A

Simple graph

23
Q

A graph in which there is a path between every pair od vertices is called as

24
Q

Adjacency matrix representation of graph is preferred when

A

the graph is dense

25
Q

Adjacency List representation of graph is preferred when

A

the graph is sparse

26
Q

Which linear data structure is used by DFS

27
Q

Output of BSF

A

Is always a tree

28
Q

Which linear data structure is used by BFSF

A

FIFO queue

29
Q

A tree is an example of

A

connected, acyclic graph

30
Q

Output of DFS

A

May be a forest