The most appropriate matching for the following pairs

P-3, Q-1, R-4, S-2
P-2, Q-1, R-4, S-3
P-3, Q-4, R-1, S-2
P-2, Q-4, R-1, S-3
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.66
Given the directed graph, which one of the following options gives a negative weight cycle?

C-D, D-H, H-G and G-C
C-D, D-H, H-J, J-I, I-F, F-G and G-C
C-D, D-H, H-J, J-G and G-C
None of the above
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
What is the length of the longest common subsequence(LCS) of the given below two strings X and Y are ____________?

X = GOOGLE

Y = YAHOOE

3
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Let A, B, C, D be four matrices of dimensions 3x6, 6x4, 4x8, 8x5 respectively. The minimum number of scalar multiplications is 288 and optimal parenthesization is ((AB)C)D. Find the total number of possible parentheses for given 4 matrices are ______?

5
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Which of the following algorithm(s) is/are not using dynamic programming?

A: Prim’s algorithm

B: Bellman Ford algorithm

C: Dijktra’s algorithm

D: Kruskal’s algorithm

E: Floyd Warshall

A, B, C and D
C and D
B and E
A, C and D
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following Knapsack bag containing maximum Capacity is 25. Find out the maximum profit of 0/1 Knapsack using bottom-up dynamic programming___?

80
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Consider the multistage graph with 5 stages then what is the minimum cost from Source node (A) to Destination node (L) using bottom up dynamic programming____?

18
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Let A, B, C, D be four matrices of dimensions 10x5, 5x6, 6x7, 7x9 respectively. Find the minimum number of scalar multiplications required to find the product A B C D using the Matrix Chain Multiplication method is_____?

975
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Bob and Alice are professional thieves. They are trying to rob a bank, The bank having different items are given in the table.

Item Name

Wight(in Kgs)

Profit(in rupees)

A

10

15

B

7

12

C

5

25

D

9

27

E

4

16

F

3

6

The maximum capacity of their bag size is 25. Alice has more intelligence than Bob. To get maximum profit Alice can also break the items. Bob can take an item or leave the item. According to the problem statement, apply a suitable algorithm and find the difference in maximum profit between Alice and Bob is_____[ [Note: Consider only 2 decimal points ]

0.85
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
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
We are given a travelling salesman problem(TSP) using dynamic programming. Find the X and Y values in the code segment.

[ Hint: For a subset of cities S ⊆ {1, 2, . . . , n} that includes 1, and j ∈ S, let C(S, j) be the

length of the shortest path visiting each node in S exactly once, starting at 1 and

ending at j. ]

C(S - { j }, i ) and dij
C(S - { i }, j ) and dij
S(C - { j }, i ) and dcs
S(C - { i }, j ) and dcs
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
Which of the following statement(s) is/are True?

P: For a dynamic programming algorithm, computing all values in a bottom-up fashion is asymptotically faster than using recursion.

Q: The running time of a dynamic programming algorithm is always Θ(P) where P is the number of subproblems.

Only P
Only Q
Both P and Q
Neither P nor Q
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66