From Manhattan to an Arbitrary Directed Acyclic Graph
Let’s explore the transformation of Manhattan-like graphs into Directed Acyclic Graphs.
After seeing how dynamic programming solved the Manhattan Tourist problem, we should be prepared to adapt ManhattanTourist for alignment graphs with diagonal edges.
Sequence alignment as building a Manhattan-like graph
Recall the figure below, in which we modeled the Longest Common Subsequence Problem as finding the longest path in an alignment graph “city” whose “attractions”’ (matches) all lie on diagonal edges with weight 1.
Get hands-on with 1200+ tech skills courses.