Abstract:
The general algorithms which are followed to solve
the Longest Common Subsequence (LCS) problems have both
time complexity and space complexity of O (m * n ). To reduce
this complexity, two ways are proposed in this work. One is the
use of Divide and Conquer approach, and another one is
changing the data structure from two-dimensional array to
queue. By using these approaches, an algorithm has been
developed and implemented for the long length string in this
paper. The time complexity after using these approaches
becomes a function of logarithm which has been
shown with proper explanation and the space complexity after
using queue data structure becomes linear O (n ).