How many unique numbers of MSTs can possible using Prim’s and Kruskal's algorithms. [ Hint: Not required to use kirchhoff's theorem ]

1
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
What is the time complexity of Dijkstra’s algorithm if it is implemented using Binary Min-heap over a graph G=(V,E)?
O(ElogV)
O(VlogV+E)
O(ElogE)
None of the above
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Find the most appropriate matching for the following pairs

P-2, Q-1, R-4 and S-3
P-4, Q-2, R-3 and S-1
P-2, Q-1, R-3 and S-4
P-4, Q-2, R-1 and S-3
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
What is the worst case time complexity for topological sorting.
O(V^2)
O(V+E)
O(ElogV)
O(VlogV+E)
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Find the total number of strongly connected components for a given graph is ____?

4
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
The Knapsack bag maximum Capacity is 40. Find out the maximum profit using greedy Knapsack or Fractional Knapsack___?

[Note: Consider only 2 decimal points if it necessary]

Objects

A

B

C

D

E

F

G

Weights

10

15

12

5

15

20

10

Profits

26

20

30

25

15

40

45

132
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
We are given 10 tasks T1, T2, T3 …. T10. The execution of each task requires one unit of time. Each task Ti has a profit Pi and a deadline di . Profit Pi is earned if the task is completed before the end of the dith unit of time. If all tasks are completed in the schedule that gives maximum profit, what is the maximum profit to schedule all the tasks____?

[ Note: We can execute one task at a time ]

Tasks

T1

T2

T3

T4

T5

T6

T7

T8

T9

T10

DeadLines

3

6

7

6

4

5

8

9

5

4

Profits

10

20

30

40

50

15

25

35

45

55

315
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00

Suppose we have a Single Source Shortest Path on the following Adjacency Matrix with vertex 0 as the source.

Find out the total cost for reaching all other vertices from the source node for which the shortest path distances are finalized____ ?

34
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Bob has wanted to send a message to Alice. Bob uses the encrypted message by using given letters along with probabilities of their occurrence.

Letter

A

L

G

O

R

I

T

H

M

Probability

20

18

16

12

10

6

5

2

1

Alice got a message in combination of 1’s and 0’s. Alice needs to apply a huffman code algorithm to understand the given message.

110100110011011110101

Find the decrypted message sent by Bob is____? [ Hint: consider left node as 0 ]

ALGO
MITH
ALTH
THGO
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
The following Knapsack bag maximum Capacity is 50 and the maximum profit is 91.2. Find all the objects which are not part of maximum profit?

Objects

P

W

X

V

Q

R

T

S

Weights

18

10

15

20

12

16

16

14

Profits

36

18

26

32

18

22

20

16

Q,R,T and S
T and S
X, V and Q
None of the above
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Let G be a connected simple graph, with distinct edge weights

60, 50, 45, 40, 35, 30, 15, 10.

Which of the following statements is false?

The edge weight 60 has to present in every maximum weight spanning tree
Both 60 and 50 edge weights have to be present in every maximum weight spanning tree.
The edge weight 10 is never present in any maximum weight spanning tree.
G has a unique maximum weight spanning tree
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Finding shortest paths in a weighted graph with positive or negative edge weights (but with no negative cycles).A single execution of the algorithm will find the lengths (summed weights) of shortest paths between all pairs of vertices using dynamic programming technique.

The recurrence relation for all pairs shortest path using dynamic programming technique is

Given a directed weighted graph, Find the shortest distance matrix ‘D’.

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Find the Single Source Shortest Path(SSSP) for directed weighted graphs using Bellman Ford Algorithm. Assume Source node A and it’s initial value is 0.

A-B, A-C, B-E, C-G, C-D, E-F
A-B, A-C, D-B, C-G, C-D, G-F
A-B, A-C, D-E, D-G, C-D, D-F
None of the above
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Let G be a connected undirected graph having 50 vertices and 500 edges.The weight of a minimum spanning tree of G is 250. Now if the weight of each edge in G is increased by 5, what will be the weight of a minimum spanning tree of this modified graph_____?
495
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
The graph shown below 9 edges with distinct integer edge weights. The minimum spanning tree (MST) is of weight 42 and contains the edges: {(A, B), (B, D), (C, D), (B, E), (E, G), (F,G)}. The edge weights of only those edges which are in the MST are given in the figure shown below. The minimum possible sum of weights of all 9 edges of this graph is _____?

72
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00