![]() |
Weekly Problems #07 |
| Pedro Ribeiro - DCC/FCUP |
This is one of 11 weekly problem sets. Each one is worth 10% of the grade of the "Submitted Implementation" evaluation criteria.
6 proposed problems:
- This is in its essence a DAG
- A DP state could simply be (current_position, current_velocity)
- We need to use DP to count
- A DP state needs to know where we are. What variables do we need to obey the restrictions of the problem?
- First use BFS or DFS to find out what cells belong to each bank
- Then calculate for each column what would the bridge length be to connect north and south
- At this point the problems becomes an almost "direct" partition DP problem :)
- The DP state could be something like (column_last_bridge, number_bridges_left)
- This is DP on a game, right?
- We can win if there is at least a move that goes to a losing position
- We lose if all our moves go to losing positions
- How can the board be represented in an efficient way to save both memory and runtime?
- Bitmasks, anyone?
- Are you up for a digit DP? :)
About the delivery:
Pedro Ribeiro - DCC/FCUP | Last update: