logo

Crowdly

Browser

Add to Chrome

FIT2004 Algorithms and data structures - S2 2025

Looking for FIT2004 Algorithms and data structures - S2 2025 test answers and solutions? Browse our comprehensive collection of verified answers for FIT2004 Algorithms and data structures - S2 2025 at learning.monash.edu.

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

Consider the following two problems of circulation with demands, in which the demands are indicated in each vertex, and the capacity in each edge.

Problem 1:

Image failed to load: circ3-1

Problem 2:

Image failed to load: circ3-2

Which of those problems have feasible solutions?

View this question

Consider the following flow network with source node s, sink node t, and in which the capacities are indicated in each edge.

Image failed to load: FN3

A cut partitions the vertices into two disjoint sets, S and T, where S contains all the vertices on the source side of the cut, and T contains all the vertices on the sink side of the cut. Consider the minimum cut of the above flow network and select the option that corresponds to the set S in that cut.

0%
0%
0%
0%
0%
0%
0%
0%
0%
0%
0%
0%
0%
0%
0%
0%
View this question

Consider the following variant of the Bellman-Ford algorithm

Image failed to load: Bellman-Ford algorithm

and the following weighted directed graph

Image failed to load: BF4

Let S be the source node for the execution of the Bellman-Ford algorithm. If the edges are relaxed in the following order (S, A), (B, C), (S, C), (S, B), (D, C), (E, D), (A, B), (S, E), what is the distance estimate of node C after two iterations of the outer loop of the algorithm are finished? Just type the numerical answer.

View this question

Recall the unbounded knapsack dynamic programming problem you have learnt from your lecture, with the following recurrence relation:

Image failed to load

You have run the algorithm on the following items:

Item12345
Weight87542
Value600350200190110

And have obtained the follow array as the output:

Capacity012345678910111213
MaxValue00110110220220330350600600710710820820
DecisionNoneNone555552111111

Given a knapsack with a weight capacity of 13, how many of the following items should be added into the knapsack?

View this question

Using the optimal substructure stated below for a Dynamic Programming solution to the Coins Change Problem:

Image failed to load: Recurrence relation

Complete the MinCoins array given the following values:

  • c = [2,4,8,5]
  • v = 8

View this question

Consider the following variant of the Bellman-Ford algorithm

Image failed to load: Bellman-Ford algorithm

and the following weighted directed graph

Image failed to load: BF4

Let S be the source node for the execution of the Bellman-Ford algorithm. If the edges are relaxed in the following order (S, A), (B, C), (S, C), (S, B), (D, C), (E, D), (A, B), (S, E), what is the distance estimate of node C after two iterations of the outer loop of the algorithm are finished? Just type the numerical answer.

View this question

Recall the unbounded knapsack dynamic programming problem you have learnt from your lecture, with the following recurrence relation:

Image failed to load

You have run the algorithm on the following items:

Item12345
Weight95623
Value550350180 90 40

And have obtained the follow array as the output:

Capacity012345678910111213
MaxValue00 90  90 180350350440440550

700

700

790

790
DecisionNoneNone444222212222

Given a knapsack with a weight capacity of 13, how many of the following items should be added into the knapsack?

View this question

Using the optimal substructure stated below for a Dynamic Programming solution to the Coins Change Problem:

Image failed to load: Recurrence relation

Complete the MinCoins array given the following values:

  • c = [7,2,5,6]
  • v = 8

View this question

Recall the unbounded knapsack dynamic programming problem you have learnt from your lecture, with the following recurrence relation:

Image failed to load

You have run the algorithm on the following items:

Item12345
Weight87542
Value600500200190110

And have obtained the follow array as the output:

Capacity012345678910111213
MaxValue00110110220220330500600610710720820830
DecisionNoneNone555552121212

Given a knapsack with a weight capacity of 13, how many of the following items should be added into the knapsack?

View this question

Using the optimal substructure stated below for a Dynamic Programming solution to the Coins Change Problem:

Image failed to load: Recurrence relation

Complete the MinCoins array given the following values:

  • c = [3,5,8,7]
  • v = 8

View this question

Want instant access to all verified answers on learning.monash.edu?

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

Browser

Add to Chrome