Strings

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/4

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:15 PM on 9/18/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

5 Terms

1
New cards

String notation

knowt flashcard image
2
New cards

Measures of similarity

LONGEST COMMON SUB-WORD

Longest common sequence

editing distance

3
New cards

LGTW algo

Teste alle relativen Positionierungen von s und s0 zueinander und bestimme jeweils das LGTW.

=>O((n+m) *n)

4
New cards

LGTS

-crossing free

-If both words end with the same character, then the following holds: |LGTS(s, s’)| = |LGTS(sn-1; s’m-1)|+ 1

-else: |LGTS(s, s’)| = max( |LGTS(s, s’m-1)| , |LGTS(sn-1, s’)| )

-as recursion tree algo: O(2n+m); however it has repeated steps

-alternative: Store intermediate results that have already been calculated in a table. =>O(nm)


<p>-crossing free</p><p>-If both words end with the same character, then the following holds: |LGTS(s, s’)| = |LGTS(s<sub>n-1</sub>; s’<sub>m-1</sub>)|+ 1</p><p>-else:  |LGTS(s, s’)| = max( |LGTS(s, s’<sub>m-1</sub>)| , |LGTS(s<sub>n-1</sub>, s’)| )</p><p>-as recursion tree algo: O(2<sup>n+m</sup>); however it has repeated steps</p><p>-alternative: Store intermediate results that have already been calculated in a table. =&gt;O(nm)</p><p></p>
5
New cards

Editing Distance

Convert word s to word s0 as cheaply as possible. To do this, assign costs to the operations Insert, Delete, and Replace.

Costs are non-negative and uniform.

intersection-free assignment

  • ED(s; ε) = |s|

  • ED(s; s’) = ED(s’; s)

  • ED(s; s’) >= m - n

-every permutation of answer is optimal solution

-mit recursion O(3n+m)



<p>Convert word s to word s0 as cheaply as possible. To do this, assign costs to the operations Insert, Delete, and Replace.</p><p>Costs are non-negative and uniform.</p><p>intersection-free assignment</p><ul><li><p>ED(s; ε) = |s|</p></li><li><p>ED(s; s’) = ED(s’; s)</p></li><li><p>ED(s; s’) &gt;= m - n</p></li></ul><p>-every permutation of answer is optimal solution</p><p>-mit recursion O(3<sup>n+m</sup>)</p><p></p><p></p>