Dynamic Programming21 sections · 916 units
Open in CourseQuiz: Assignment
Knowledge check
Check Your Understanding
In the Assignment Problem using Bitmask DP, what is the transition when adding worker i to assign to an unassigned task j?
- A.dp[mask] = sum of cost[i][j] for all j where bit j is set
- B.dp[mask | (1 << j)] = dp[mask] * cost[i][j]
- C.dp[mask | (1 << j)] = min(dp[mask | (1 << j)], dp[mask] + cost[i][j])
- D.dp[mask] = min(dp[mask], dp[mask ^ (1 << j)] + cost[i][j])