In fact, the full implementation of the BLAST algorithm is rather complicated. It has many steps and optimizations. What you can do: take a look at O'Reillyβs BLAST book, for a very good explanation, look at the NCBI Blast code base that it is very large and hard to understand at a glance, or, sugest you take a look at another BLAST implementation or maybe , other algorithms such as BLAT and Genoogle (http://genoogle.pih.bio.br/)
Pih
source share