-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Detailed Description
Definition: The Shortest Common Supersequence (SCS) is a string Z which is the shortest supersequence of two given strings X and Y (which may not be continuously present in Z, but order must be maintained).
example 1:
X: 'ABCXYZ', Y: 'ABZ' then Z will be 'ABCXYZ' (y is not continuous but in order)
example 2:
X: 'AGGTAB', Y: 'GXTXAYB' then Z will be 'AGGXTXAYB'
Context
Besides LCS, we need an algorithm for finding shortest common supersequence
Possible Implementation
Implementation can be done using DP lookup table method
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request