Algorithms_in_C++ 1.0.0
Set of algorithms implemented in C++.
|
Program to find the Longest Palindormic Subsequence of a string. More...
#include <cassert>
#include <string>
#include <vector>
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.
int main | ( | void | ) |
|
static |
Self-test implementations.