lcs Questions

7

I have a question regarding finding the longest common substring in R. While searching through a few posts on StackOverflow, I got to know about the qualV package. However, I see that the LCS funct...
Electrotonus asked 1/2, 2015 at 10:45

6

Is there any way of finding the longest common subsequence of two sequences in O(NlogN) time? I read somewhere that there is a way to achieve this using binary search. I know the dp approach th...
Affiche asked 10/6, 2015 at 22:46

5

Solved

I am trying to find the longest common subsequence of 3 or more strings. The Wikipedia article has a great description of how to do this for 2 strings, but I'm a little unsure of how to extend this...
Jaye asked 20/2, 2011 at 13:16

1

Solved

Among several dp solutions for this question, an easier solution is to reverse the given string and calculate LCS of the original and reversed string. My question is will this approach yield corr...
Patterman asked 24/1, 2019 at 13:3

1

Playing around with the standard linux diff command, I could not find a way to avoid the following type of grouping in its output (the output listings here assume the unified format) This question...
Seminar asked 5/8, 2014 at 20:2

7

Solved

I searched online for a C++ Longest Common Substring implementation but failed to find a decent one. I need a LCS algorithm that returns the substring itself, so it's not just LCS. I was wondering...
Carnify asked 20/4, 2012 at 15:3

3

Solved

Say I have one large string and an array of substrings that when joined equal the large string (with small differences). For example (note the subtle differences between the strings): large_str =...
Percutaneous asked 31/8, 2017 at 21:15

1

Solved

The longest common subsequence problem is a classic computer science problem, and algorithms to solve it are the root of version control systems and wiki engines. Two basic algorithms are the Hunt–...
Brasilein asked 6/3, 2017 at 21:27

4

Solved

In order to find the minimal number of insertions required to convert a given string(s) to palindrome I find the longest common subsequence of the string(lcs_string) and its reverse. Therefor...
Ninurta asked 23/5, 2012 at 23:30

2

Solved

I do not understand the O(2^n) complexity that the recursive function for the Longest Common Subsequence algorithm has. Usually, I can tie this notation with the number of basic operations (in thi...
Laraelaraine asked 8/1, 2016 at 23:53

3

Solved

Regarding how they work, I was wondering low-level working stuff: What will trigger a merge conflict? Is the context also used by the tools in order to apply the patch? How do they deal with chan...
Osugi asked 5/11, 2015 at 13:20

3

Solved

I have two strings, both the same length. And I've to check if them can be expressed as XYZ and XZY, where Y and Z are not empty. My solution is to 'eat' the same first letters of both strings and...
Handlebar asked 22/6, 2015 at 18:51

1

Solved

I have implemented the longest common subsequence problem as instructed in this video. It just execute first set of code and produces an empty list. What is wrong with this implementation? def lcs...
Dniester asked 19/9, 2014 at 9:28

3

Solved

Consider 2 sequences X[1..m] and Y[1..n]. The memoization algorithm would compute the LCS in time O(m*n). Is there any better algorithm to find out LCS wrt time? I guess memoization done diagonally...
Oestrone asked 9/6, 2010 at 5:53

3

I'm looking for a (space) efficient implementation of an LCS algorithm for use in a C++ program. Inputs are two random access sequences of integers. I'm currently using the dynamic programming appr...
Lublin asked 7/9, 2010 at 13:25

3

Solved

I have two character variables (names of objects) and I want to extract the largest common substring. a <- c('blahABCfoo', 'blahDEFfoo') b <- c('XXABC-123', 'XXDEF-123') I want the followi...
Creosol asked 24/4, 2013 at 15:41

2

Solved

I've designed an algorithm to find the longest common subsequence. these are steps: Pick the first letter in the first string. Look for it in the second string and if its found, Add that letter ...
Penult asked 31/12, 2012 at 23:17

3

Solved

Hello fellow programmers, I would like to ask for some help with regards to near matches of strings. Currently, I have a program that stores strings of description, users can search for descript...
Haig asked 2/11, 2012 at 14:16

3

Problem: Need the Length of the LCS between two strings. The size of the strings is at most 100 characters. The alphabet is the usual DNA one, 4 characters "ACGT". The dynamic approach is not quick...
Glum asked 2/7, 2011 at 8:9

4

Solved

I'm working in Flex/AS3 on (for simplicity) an XML editor. I need to provide undo/redo functionality. Of course, one solution is to store the entire source text with each edit. However, to conserv...
Mithridatism asked 12/3, 2010 at 2:16
1

© 2022 - 2024 — McMap. All rights reserved.