Anonymous user
Shortest common supersequence: Difference between revisions
m
added whitespace and highlighting to the task's preamble.
m (added whitespace before the TOC (table of contents), added a ;Task: (bold) header.) |
m (added whitespace and highlighting to the task's preamble.) |
||
Line 1:
{{draft task}}
The '''[[wp:shortest common supersequence|shortest common supersequence]]''' is a problem closely related to the [[longest common subsequence]], which you can use as an external function for this task.
;Task:
Given two strings <big><big><math> u </math></big></big> and <big><big><math> v, </math>
Demonstrate this by printing <big><big><math>s</math></big></big> where
<big><big><math> u = </math><big><code>abcbdab</code></big></big></big>
and
<big><big><math> v = </math><big><code>bdcaba</code></big></big></big>
<!-- This example is taken from the Wikipedia page. -->
<br><br>
|