Shortest Common Supersequence Matching Task: Difference between revisions

From GM-RKB
Jump to navigation Jump to search
m (Text replacement - ". ----" to ". ----")
m (Text replacement - "lems]]" to "lem]]s")
 
Line 12: Line 12:
=== 2012 ===
=== 2012 ===
* http://en.wikipedia.org/wiki/Shortest_common_supersequence
* http://en.wikipedia.org/wiki/Shortest_common_supersequence
** QUOTE: In [[computer science]], the '''shortest common supersequence problem</B> is a problem closely related to the [[longest common subsequence problem]]. Given two sequences '''X''' = < x<sub>1</sub>,...,x<sub>m</sub> > and '''Y''' = < y<sub>1</sub>,...,y<sub>n</sub> >, a sequence '''U''' = < u<sub>1</sub>,...,u<sub>k</sub> > is a common supersequence of '''X</B> and '''Y''' if '''U''' is a supersequence of both '''X</B> and '''Y</B>. In other words, the shortest common supersequence between strings x and y is the shortest string z such that both x and y are [[subsequence|subsequence]]s of z.        <P>          The shortest common supersequence (scs) is a common supersequence of minimal length. In the shortest common supersequence problem, the two sequences '''X</B> and '''Y</B> are given and the task is to find a shortest possible common supersequence of these sequences. In general, the scs is not unique.        <P>          For two input sequences, an scs can be formed from an lcs easily. For example, if '''X'''<math>[1..m] = abcbdab</math> and '''Y'''<math>[1..n] = bdcaba</math>, the lcs is '''Z'''<math>[1..r] = bcba</math>. By inserting the non-lcs symbols while preserving the symbol order, we get the scs: '''U'''<math>[1..t] = abdcabdab</math>.        <P>        It is quite clear that <math> r + t = m + n </math> for two input sequences. However, for three or more input sequences this does not hold. Note also, that the lcs and the scs problems are not [[Dual_problem|dual problems]].
** QUOTE: In [[computer science]], the '''shortest common supersequence problem</B> is a problem closely related to the [[longest common subsequence problem]]. Given two sequences '''X''' = < x<sub>1</sub>,...,x<sub>m</sub> > and '''Y''' = < y<sub>1</sub>,...,y<sub>n</sub> >, a sequence '''U''' = < u<sub>1</sub>,...,u<sub>k</sub> > is a common supersequence of '''X</B> and '''Y''' if '''U''' is a supersequence of both '''X</B> and '''Y</B>. In other words, the shortest common supersequence between strings x and y is the shortest string z such that both x and y are [[subsequence|subsequence]]s of z.        <P>          The shortest common supersequence (scs) is a common supersequence of minimal length. In the shortest common supersequence problem, the two sequences '''X</B> and '''Y</B> are given and the task is to find a shortest possible common supersequence of these sequences. In general, the scs is not unique.        <P>          For two input sequences, an scs can be formed from an lcs easily. For example, if '''X'''<math>[1..m] = abcbdab</math> and '''Y'''<math>[1..n] = bdcaba</math>, the lcs is '''Z'''<math>[1..r] = bcba</math>. By inserting the non-lcs symbols while preserving the symbol order, we get the scs: '''U'''<math>[1..t] = abdcabdab</math>.        <P>        It is quite clear that <math> r + t = m + n </math> for two input sequences. However, for three or more input sequences this does not hold. Note also, that the lcs and the scs problems are not [[Dual_problem|dual problem]]s.


----
----

Latest revision as of 04:27, 28 November 2023

A Shortest Common Supersequence Matching Task is a String Matching Task that is required to locate a Shortest Common Supersequence.



References

2012

  • http://en.wikipedia.org/wiki/Shortest_common_supersequence
    • QUOTE: In computer science, the shortest common supersequence problem is a problem closely related to the longest common subsequence problem. Given two sequences X = < x1,...,xm > and Y = < y1,...,yn >, a sequence U = < u1,...,uk > is a common supersequence of X and Y if U is a supersequence of both X and Y. In other words, the shortest common supersequence between strings x and y is the shortest string z such that both x and y are subsequences of z.

      The shortest common supersequence (scs) is a common supersequence of minimal length. In the shortest common supersequence problem, the two sequences X and Y are given and the task is to find a shortest possible common supersequence of these sequences. In general, the scs is not unique.

      For two input sequences, an scs can be formed from an lcs easily. For example, if X[math]\displaystyle{ [1..m] = abcbdab }[/math] and Y[math]\displaystyle{ [1..n] = bdcaba }[/math], the lcs is Z[math]\displaystyle{ [1..r] = bcba }[/math]. By inserting the non-lcs symbols while preserving the symbol order, we get the scs: U[math]\displaystyle{ [1..t] = abdcabdab }[/math].

      It is quite clear that [math]\displaystyle{ r + t = m + n }[/math] for two input sequences. However, for three or more input sequences this does not hold. Note also, that the lcs and the scs problems are not dual problems.