Dynamic all scores matrices for LCS score

08/10/2018
by   Amir Carmel, et al.
0

The problem of aligning two strings A,B in order to determine their similarity is fundamental in the field of pattern matching. An important concept in this domain is the "all scores matrix" that encodes the local alignment comparison of two strings. Namely, let K denote the all scores matrix containing the alignment score of every substring of B with A, and let J denote the all scores matrix containing the alignment score of every suffix of B with every prefix of A. In this paper we consider the problem of maintaining an all scores matrix where the scoring function is the LCS score, while supporting single character prepend and append operations to A and N. Our algorithms exploit the sparsity parameters L=LCS(A,B) and Delta = |B|-L. For the matrix K we propose an algorithm that supports incremental operations to both ends of A in O(Delta) time. Whilst for the matrix J we propose an algorithm that supports a single type of incremental operation, either a prepend operation to A or an append operation to B, in O(L) time. This structure can also be extended to support both operations simultaneously in O(L log log L) time.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/23/2018

Longest Common Factor Made Fully Dynamic

In the longest common factor (LCF) problem, we are given two strings S a...
research
06/30/2016

Neural Network-based Word Alignment through Score Aggregation

We present a simple neural network for word alignment that builds source...
research
05/17/2020

Towards Efficient Interactive Computation of Dynamic Time Warping Distance

The dynamic time warping (DTW) is a widely-used method that allows us to...
research
03/29/2017

Comparison of ontology alignment algorithms across single matching task via the McNemar test

Ontology alignment is widely used to find the correspondences between di...
research
04/07/2023

Qubo model for the Closest Vector Problem

In this paper we consider the closest vector problem (CVP) for lattices ...
research
08/30/2017

Optimizing scoring function of dynamic programming of pairwise profile alignment using derivative free neural network

A profile comparison method with position-specific scoring matrix (PSSM)...
research
10/02/2020

Bridging the Gaps in Statistical Models of Protein Alignment

This work demonstrates how a complete statistical model quantifying the ...

Please sign up or login with your details

Forgot password? Click here to reset