Package org.ddolib.examples.lcs
package org.ddolib.examples.lcs
This package implements the acs, astar and ddo models for the Longest Common Subsequence (LCS) Problem.
In the Longest Common Subsequence Problem (LCS), we are given a set of 𝑚
input strings 𝑆= {𝑆0,...,𝑆𝑚−1 }composed of characters from a given alpha-
bet Σ. The goal is to find the longest subsequence appearing in all strings,
that can be obtained by removing some characters from each input string.
-
ClassesClassDescriptionLongest Common Subsequence (LCS) with Acs.Longest Common Subsequence (LCS) with AsTar.Longest Common Subsequence (LCS) with Ddo.Naive DP solver the 2-strings longest common subsequence problem, used to build a heuristic for the m-strings problem.Implementation of a fast lower bound heuristic for the Longest Common Subsequence (LCS) problem.Contains method to generate instances of the LCSEntry point for solving the Longest Common Subsequence (LCS) problem using a Large Neighborhood Search (LNS) approach combined with Decision Diagram Optimization (DDO).Definition of the Longest Common Subsequence (LCS) problem.Ranking strategy for
LCSStatein the Longest Common Subsequence (LCS) problem.Relaxation strategy forLCSStatein the Longest Common Subsequence (LCS) problem.Represents the state of a node in the Longest Common Subsequence (LCS) problem.