SlideServe
Menu
Préférences
© SlideServe · v2026

Longest Common Subsequence

conlan avatar
7 diapositives · 466 Views · Jul 30, 2014

Longest Common Subsequence. Chris Carpenter Charles Cobb Lance Hymel. Problem. Given two strings, find the longest subsequences (LCS) shared by both strings. Dynamic Programming Solution. Construct a n 1 ×n 2 table Fill in table Top-left to bottom-right

Longest Common Subsequence - slide 1
01 / 7Longest Common Subsequence
1 / 17

Télécharger la présentation

Longest Common Subsequence
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Longest Common Subsequence Chris Carpenter Charles Cobb Lance Hymel

  2. Problem • Given two strings, find the longest subsequences (LCS) shared by both strings.

  3. Dynamic Programming Solution • Construct a n1×n2 table • Fill in table • Top-left to bottom-right • Increment whenever match is found • Bottom-right number is length of LCS • Scan table bottom-right to top-left • Locations where number decreases diagonally are included in LCS

  4. Hirschberg Solution

  5. Hirschberg Solution (cont) • Recursively scan • Still runs in linear time • Uses O(min(string1, string2)) memory

  6. Real-World Implementations • File comparison • Source-code control • Insertion, Deletion, Merging • Bioinformatics • Sequence analysis • Comparative genomics

  7. Bioinformatics • Sequence analysis is the process of subjecting a DNA, RNA or peptide sequence to any of a wide range of analytical methods • The analytical methods include : • Sequence Alignment • Methodical biological database searches