Longest common subsequence
The problem of finding a sequence that is a subsequence of each of a given set of sequences and is as long as possible
A longest common subsequence (LCS) is the longest subsequence common to all sequences in a set of sequences (often just two sequences). It differs from the longest common substring: unlike substrings, elements of subsequences are not required to occupy consecutive positions within the original sequences.
Nº Q141001 ★
Comum · Saberes
Longest common subsequence
The problem of finding a sequence that is a subsequence of each of a given set of sequences and is as long as possible
A longest common subsequence (LCS) is the longest subsequence common to all sequences in a set of sequences (often just two sequences). It differs from the longest common substring: unlike substrings, elements of subsequences are not required to occupy consecutive positions within the original sequences.
Na Wikipédia
Texto em inglês Ainda não há artigo no seu idioma: trecho em inglês.
A longest common subsequence (LCS) is the longest subsequence common to all sequences in a set of sequences (often just two sequences). It differs from the longest common substring: unlike substrings, elements of subsequences are not required to occupy consecutive positions within the original sequences. The problem of computing longest common subsequences is a classic computer science problem. Because it is polynomial and has an efficient algorithm to solve it, it is employed to compare data and merge changes to files in programs such as the diff utility and revision control systems such as Git. It has similar applications in computational linguistics and bioinformatics. For example, consider the sequences (ABCD) and (ACBAD). They have five length-2 common subsequences: (AB), (AC), (AD), (BD), and (CD); two length-3 common subsequences: (ABD) and (ACD); and no longer common subsequences. So (ABD) and (ACD) are their longest common subsequences.
Texto: Wikipédia em inglês, CC BY-SA 4.0. · Imagem: User:Retraza (CC BY-SA 3.0) ·
Cartas próximas
-
M
Máxima subsequência crescente
Nº Q4183855 ★
Sem ofertas
-
P
Problema da soma dos subconjuntos
Nº Q1154420 ★★
Sem ofertas
-
S
Subsequência
Nº Q1332977 ★
Sem ofertas
-
Sublista contígua de soma máxima
Nº Q1334332 ★★
Sem ofertas
-
Subcadeia de caracteres
Nº Q2626534 ★
Sem ofertas
-
S
Sequência de Lucas
Nº Q1759646 ★★
Sem ofertas