'A' Longest Common Subsequence (LCS) implementation

Revision 22 vs. Revision 23

Legend:

Unmodified
Added
Removed
  • Content

    r22 r23  
    8383I went through a series of implementations for fun and exploration.  The first and most basic was a C version for char* comparisons.  The second was a C++ version which used memoization to keep track of the comparisons.   
    8484  
    8585Section 2.1 C version for char*  
    8686*******************************  
    8787  
    88 The first code I implemented was to demonstrate the memoization algorithm from the `UCI`_ article pretty much as-is (:snippet:374`). It is implemented in C.  
     88The first code I implemented was to demonstrate the memoization algorithm from the `UCI`_ article pretty much as-is (:snippet:`374`). It is implemented in C.  
    8989  
    9090Section 2.2 C++ version (first try)  
    9191***********************************  
    9292  
    9393The next thing I decided to do was think about this in terms of the sequence being any object.  As a result I would need to think more about indices and what it meant to be at the end of a set of objects and the size of the object collection.  That was too much to think about so I decided to make an LCS C++ template class that could be used for c++ containers or at least some containers. The code is here :snippet:`375` and test/example code is here :snippet:`382`.