Dynamic Programming21 sections · 916 units
Open in CourseQuiz: TSP
Knowledge check
Check Your Understanding
In TSP using Bitmask DP, what do the state parameters dp[mask][i] represent?
- A.The starting city (mask) and the ending city (i)
- B.The current city (mask) and remaining cities (i)
- C.The number of cities visited (mask) and total distance (i)
- D.The set of visited cities (mask) and the current city (i)