Skip to content

A C++ dynamic programming implementation of longest common sub-sequence. CSC 325 - Algorithms

Notifications You must be signed in to change notification settings

ben093/Longest-Common-Subsequence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Longest-Common-Subsequence

A C++ dynamic programming implementation of longest common sub-sequence. CSC 325 - Algorithms

Problem:
Write a C++ program to calculate the longest common subsequence of two DNA sequences through dynamic programming. You might search online what DNA sequences look like, which are sequences of four bases (ATCG).

Input:
User can type two random DNA sequences with any length at keyboard. Your program should allow the user to continue trying to input new pair of sequences for calculation of LCS when the previous result is already displayed on the screen. The program will stop when the user chooses not to do this again.

Output:
the length of LCS and one example subsequence of LCS.

About

A C++ dynamic programming implementation of longest common sub-sequence. CSC 325 - Algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages