GXTXAYB
GXTXAYB is a seven-character string frequently used as an input example in discussions of the Longest Common Subsequence (LCS) problem. It is typically paired with the string AGGTAB in educational materials to illustrate a dynamic programming solution to LCS.
The two strings have lengths seven and six, respectively. In this canonical example, the longest common subsequence
The example serves to demonstrate the construction of a two-dimensional dynamic programming table, where the entry
In broader terms, GXTXAYB is used to teach the standard LCS algorithm, which runs in O(mn) time