local - where the region of similarity is based in 1 locationor global - where regions of similarity can be detected across otherwise unrelated genetic code