Cargando…
Linear space string correction algorithm using the Damerau-Levenshtein distance
BACKGROUND: The Damerau-Levenshtein (DL) distance metric has been widely used in the biological science. It tries to identify the similar region of DNA,RNA and protein sequences by transforming one sequence to the another using the substitution, insertion, deletion and transposition operations. Lowr...
Autores principales: | , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
BioMed Central
2020
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7724867/ https://www.ncbi.nlm.nih.gov/pubmed/33297940 http://dx.doi.org/10.1186/s12859-019-3184-8 |
_version_ | 1783620605083385856 |
---|---|
author | Zhao, Chunchun Sahni, Sartaj |
author_facet | Zhao, Chunchun Sahni, Sartaj |
author_sort | Zhao, Chunchun |
collection | PubMed |
description | BACKGROUND: The Damerau-Levenshtein (DL) distance metric has been widely used in the biological science. It tries to identify the similar region of DNA,RNA and protein sequences by transforming one sequence to the another using the substitution, insertion, deletion and transposition operations. Lowrance and Wagner have developed an O(mn) time O(mn) space algorithm to find the minimum cost edit sequence between strings of length m and n, respectively. In our previous research, we have developed algorithms that run in O(mn) time using only O(s∗min{m,n}+m+n) space, where s is the size of the alphabet comprising the strings, to compute the DL distance as well as the corresponding edit sequence. These are so far the fastest and most space efficient algorithms. In this paper, we focus on the development of algorithms whose asymptotic space complexity is linear. RESULTS: We develop linear space algorithms to compute the Damerau-Levenshtein (DL) distance between two strings and determine the optimal trace (corresponding edit operations.)Extensive experiments conducted on three computational platforms–Xeon E5 2603, I7-x980 and Xeon E5 2695–show that, our algorithms, in addition to using less space, are much faster than earlier algorithms. CONCLUSION: Besides using less space than the previously known algorithms,significant run-time improvement was seen for our new algorithms on all three of our experimental platforms. On all platforms, our linear-space cache-efficient algorithms reduced run time by as much as 56.4% and 57.4% in respect to compute the DL distance and an optimal edit sequences compared to previous algorithms. Our multi-core algorithms reduced the run time by up to 59.3% compared to the best previously known multi-core algorithms. |
format | Online Article Text |
id | pubmed-7724867 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2020 |
publisher | BioMed Central |
record_format | MEDLINE/PubMed |
spelling | pubmed-77248672020-12-09 Linear space string correction algorithm using the Damerau-Levenshtein distance Zhao, Chunchun Sahni, Sartaj BMC Bioinformatics Research BACKGROUND: The Damerau-Levenshtein (DL) distance metric has been widely used in the biological science. It tries to identify the similar region of DNA,RNA and protein sequences by transforming one sequence to the another using the substitution, insertion, deletion and transposition operations. Lowrance and Wagner have developed an O(mn) time O(mn) space algorithm to find the minimum cost edit sequence between strings of length m and n, respectively. In our previous research, we have developed algorithms that run in O(mn) time using only O(s∗min{m,n}+m+n) space, where s is the size of the alphabet comprising the strings, to compute the DL distance as well as the corresponding edit sequence. These are so far the fastest and most space efficient algorithms. In this paper, we focus on the development of algorithms whose asymptotic space complexity is linear. RESULTS: We develop linear space algorithms to compute the Damerau-Levenshtein (DL) distance between two strings and determine the optimal trace (corresponding edit operations.)Extensive experiments conducted on three computational platforms–Xeon E5 2603, I7-x980 and Xeon E5 2695–show that, our algorithms, in addition to using less space, are much faster than earlier algorithms. CONCLUSION: Besides using less space than the previously known algorithms,significant run-time improvement was seen for our new algorithms on all three of our experimental platforms. On all platforms, our linear-space cache-efficient algorithms reduced run time by as much as 56.4% and 57.4% in respect to compute the DL distance and an optimal edit sequences compared to previous algorithms. Our multi-core algorithms reduced the run time by up to 59.3% compared to the best previously known multi-core algorithms. BioMed Central 2020-12-09 /pmc/articles/PMC7724867/ /pubmed/33297940 http://dx.doi.org/10.1186/s12859-019-3184-8 Text en © The Author(s) 2020 Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver(http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated. |
spellingShingle | Research Zhao, Chunchun Sahni, Sartaj Linear space string correction algorithm using the Damerau-Levenshtein distance |
title | Linear space string correction algorithm using the Damerau-Levenshtein distance |
title_full | Linear space string correction algorithm using the Damerau-Levenshtein distance |
title_fullStr | Linear space string correction algorithm using the Damerau-Levenshtein distance |
title_full_unstemmed | Linear space string correction algorithm using the Damerau-Levenshtein distance |
title_short | Linear space string correction algorithm using the Damerau-Levenshtein distance |
title_sort | linear space string correction algorithm using the damerau-levenshtein distance |
topic | Research |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7724867/ https://www.ncbi.nlm.nih.gov/pubmed/33297940 http://dx.doi.org/10.1186/s12859-019-3184-8 |
work_keys_str_mv | AT zhaochunchun linearspacestringcorrectionalgorithmusingthedameraulevenshteindistance AT sahnisartaj linearspacestringcorrectionalgorithmusingthedameraulevenshteindistance |