Skip to main content
Post Deleted by CommunityBot
Post Locked by CommunityBot
Post Migrated Away to cs.stackexchange.com by Tsuyoshi Ito, Jeffε, David Eppstein, Kaveh
Post Closed as "off topic" by Tsuyoshi Ito, Jeffε, David Eppstein, Kaveh
edited tags
Link
Kaveh
  • 21.8k
  • 8
  • 84
  • 185
Source Link
user13543
user13543

Shortest path on a colored DAG

I'd appreciate any pointer for the following problem.

Given a DAG G=(V,E), each edge has assigned a color from a set of colors C. Different edges may have assigned the same color. There is a special start node s and end node t. Given K, we would like to find a s-t shortest path on G that traverses exactly K distinct colors, if any.