logo

Crowdly

SE Common ISE 2024-25

Looking for SE Common ISE 2024-25 test answers and solutions? Browse our comprehensive collection of verified answers for SE Common ISE 2024-25 at moodle.spit.ac.in.

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

Image failed to load

0%
0%
0%
0%
View this question

Let A subscript 1 comma A subscript 2 comma A subscript 3 comma A subscript 4 be four matrices with dimensions:

  • A subscript 1 colon 10 cross times 100

  • A subscript 2 colon 100 cross times 5

  • A subscript 3 colon 5 cross times <span> </span> 50

  • A subscript 4 colon 50 cross times 1

What is the minimum number of scalar multiplications needed to compute the matrix product A subscript 1 A subscript 2 A subscript 3 A subscript 4using Matrix Chain Multiplication?

100%
0%
0%
0%
View this question

Image failed to load

0%
0%
100%
0%
View this question

Image failed to load

100%
0%
0%
0%
View this question

Image failed to load

0%
100%
0%
0%
View this question

0%
0%
0%
100%
View this question

Consider the following dynamic

programming implementation of the Knapsack problem:

#include<stdio.h>

int find_max(int a, int b)

{

      if(a > b)

         return a;

      return b;

}

int knapsack(int W, int *wt, int

*val,int n)

{

     int ans[n + 1][W + 1];

     int itm,w;

     for(itm = 0; itm <= n; itm++)

         ans[itm][0] = 0;

     for(w = 0;w <= W; w++)

        ans[0][w] = 0;

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

     {

          for(w = 1; w <= W; w++)

          {

               if(wt[itm - 1] <= w)

                  ans[itm][w] = ______________;

               else

                  ans[itm][w] = ans[itm -

1][w];

          }

     }

     return ans[n][W];

}

int main()

{

     int w[] = {10,20,30}, v[] = {60, 100,

120}, W = 50;

     int ans = knapsack(W, w, v, 3);

     printf("%d",ans);

     return 0;

}

Which

of the following lines completes the above code?

0%
0%
0%
0%
View this question

An undirected graph G has n nodes. Its adjacency matrix M is given by an n×n square matrix whose diagonal elements (M[i][i], 1 ≤ i ≤ n) are all zeroes and the rest of its elements are ones. Which one of the following is TRUE?

0%
0%
0%
0%
View this question

Given a weighted graph where weights of all edges are unique (no two edge have

same weights), there is always a unique shortest path from a source to destination in

such a graph.

0%
0%
View this question

In

the given graph, how many intermediate vertices are required to travel from

node a to node e at a minimum cost?

0%
100%
0%
0%
View this question

Want instant access to all verified answers on moodle.spit.ac.in?

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