![]() |
Weekly Problems #08 |
| 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:
- Do a flood fill to find connected components of letters
- Sort according to the given criteria
- Build a graph where nodes are letters and edges represent that you know a letter should appear before another one
- Your desired order corresponds to a topological sorting, that is guaranteed to exist and be unique
- Do a BFS with multiple sources (e.g. from all clouds)
- This is DP on a game, right?
- BFS on an implicit graph where a state is a possible board position
- Can you build/navigate a graph based on the input?
- After having the graph, the problem becomes easy, right?
- Build a DAG where each node is ons strongly connected component of the original graph
- Apply DP to the DAG
About the delivery:
Pedro Ribeiro - DCC/FCUP | Last update: