logo

Crowdly

BCSE204L Design and Analysis of Algorithms (Theory) Winter 2024-25 (A1+TA1) [VL2024250501578]

Looking for BCSE204L Design and Analysis of Algorithms (Theory) Winter 2024-25 (A1+TA1) [VL2024250501578] test answers and solutions? Browse our comprehensive collection of verified answers for BCSE204L Design and Analysis of Algorithms (Theory) Winter 2024-25 (A1+TA1) [VL2024250501578] at moovit.vit.ac.in.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

  In the state space tree of 0/1 knapsack problem solved using Branch and Bound strategy, identify the solution.

View this question

 Find the space complexity of the following code segment.

m=5;

int findSum(int a[],int b[], int n)

{

sum=m;

for(i=1; i<=n; i++)

              sum=b[i]+a[i];

return sum

}

View this question

 Spurious hit in Rabin Karp string matching algorithm is the case where the following is true.

View this question

In a network flow graph where “V” is a set of vertices, “s-t cut” is defined as

View this question

Compute the value of -25 mod 16.

View this question

  In the following network flow graph, the following values are given. It is aimed to find maximum flow from source to sink.

Augment flow along the augmenting path “source->A->sink”, what will be the change in capacity and flow values along the edges.

View this question

Match the time complexities of Naive, KMP and Rabin Karp string matching algorithms where ‘m’ is the length of the string and ‘n’ is the length of the text.

1.       Naive                          a. O(m+n)

2.       KMP                            b. O(n)

3.       Rabin Karp                c. O(mn)

View this question

 What is the output of the following recursive function when cal(2,3) is called?

int cal(int a, int b)

{

if (b==1)

return 1;

else

return a + cal(a,b-1);

}

View this question

  The following is the state space tree of job sequencing problem. Identify to which type it belongs.

View this question

The redundant comparisons in naive string-matching algorithm are reduced in KMP string matching algorithm through the following.

View this question

Want instant access to all verified answers on moovit.vit.ac.in?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!