algorithm analysis university studies
This repository contains various algorithm analyses and applications. Below, you will find the relevant algorithms and example applications under each section.
The Longest Common Subsequence (LCS) algorithm aims to find the longest subsequence common to two sequences. It is commonly used in text comparison and bioinformatics. The following application, created using PyQt5, computes the LCS of two input sequences and displays the step-by-step solution.
The LCS algorithm finds the longest common subsequence of two sequences using dynamic programming. It uses a dp (dynamic programming) table and a directions table to track the steps. The algorithm compares characters from both sequences, moving diagonally (↖) on a match, and up (↑) or left (←) otherwise.
Follow these steps to run the application:
-
Install the required dependencies:
pip install PyQt5
-
Run the
longest_common_subsequence.pyscript:python longest_common_subsequence.py
-
When the application opens, enter two sequences and click the "Compute LCS" button.
This project is licensed under the MIT License. See the LICENSE file for details.
