Introduction
The first programming project is to implement the dynamic programming algorithm for sequence alignment, parameterized in such a way that it can be used for either global or local sequence alignment.
You should create a pseudocode description of the algorithm for yourself first, based on the discussion in the Gribskov paper. You do not have to implement the caching strategy (described in the Gotoh article) that takes the complexity from O(N^3) to O(N^2). The bold student may, for extra credit, attempt to write the more efficient version, using the scheme reported by Gotoh (see handout).
Remember, the difference between local alignment and global alignment are simple:
Program Specifications
The input to the program is a file with lines containing the following information: (See sample files align-example.input and align-example.input-annotated):
For simplicity, you could assume that the input sequences will never be longer than 300 letters and the symbol alphabet size is never larger than 26.
The output of the program is a file with lines containing the following information: (See align-example.output)
When you need to report more than one equivalent alignment, you can leave a blank line and then print the alignments in a similar manner. (See align-all-example.output)
To Get Credit:
1). your name, CWP login, the language you used, instructions on how to run your program 2). your pseudocode description of the algorithm that describes what you coded on one page or less. (We will use this as a primary way to debug the conceptual basis for your code, since we allow so many different languages.)
3). indication of whether or not you attempted the extra credit