Before you can do the pattern matching part of the assignment,
you will need to read in the protein and gene sequences using
file input. We'll also review some of the key variables that
Part 4a: pattern matching
This is the trickiest part of the assignment.
You should carefully figure out a plan of attack before
In this part, we describe how to check whether a match occurs at
one particular offset. In the next part, you will add an extra loop
that checks for matches at all possible offsets.
Here's a sketch of what you need to do.
Here are some debugging hints.
Part 4b: pattern matching
At the end of the last step, you changed the offset into
the geneseq array by editing your code. If you happen
to choose the right offset (10), then you find the match.
Modify your code so that it checks all possible offsets.