TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
Program to find the Longest Palindormic Subsequence of a string. More...
#include <cassert>
#include <string>
#include <vector>
Go to the source code of this file.
Namespaces | |
namespace | dynamic_programming |
Dynamic Programming algorithms. | |
Functions | |
std::string | dynamic_programming::lps (const std::string &a) |
Function that returns the longest palindromic subsequence of a string. | |
static void | test () |
Self-test implementations. | |
int | main () |
Main Function. | |
Program to find the Longest Palindormic Subsequence of a string.
Palindrome string sequence of characters which reads the same backward as forward Subsequence is a sequence that can be derived from another sequence by deleting some or no elements without changing the order of the remaining elements.
Definition in file longest_palindromic_subsequence.cpp.
int main | ( | void | ) |
Main Function.
Definition at line 97 of file longest_palindromic_subsequence.cpp.
|
static |
Self-test implementations.
Definition at line 86 of file longest_palindromic_subsequence.cpp.