Implementation and Efficiency An Implementation and Efficiency Analysis of Hamming Distance Algorithm and k-Mer Method for Identifying Sequence Variation in the cox1 Gene of Schistosoma mansoni
DOI:
https://doi.org/10.59934/jaiea.v6i1.3090Keywords:
algorithm complexity, bioinformatics, cox1, Hamming Distance, k-Mer, Schistosoma mansoniAbstract
Sequence variation analysis is a fundamental task in bioinformatics that demands efficient algorithms. This study implements and analyzes the efficiency of the Hamming Distance algorithm and k-Mer method for identifying variation in the cytochrome c oxidase subunit 1 (cox1) gene sequences of Schistosoma mansoni. Twenty cox1 sequences were obtained from NCBI GenBank and normalized to 1024 bp through trimming. Hamming Distance was used to measure the number of differing base positions between sequences, while k-Mer (k=4 and k=6) was used to extract substring frequency profiles as representations of sequence composition. Efficiency testing measured execution time across various sequence lengths (100–10,000 bp). Results showed Hamming distances ranging from 1 to 16 with an average of 8.626 ± 3.513, reflecting an average similarity of 99.16%. Linear regression analysis produced the equation y = 0.00004x + 0.0000 with R² = 1.0, empirically proving the O(n) complexity of Hamming Distance. The total pipeline for 20 sequences completed in 16.43 ms. This study provides a reproducible implementation and an algorithmic efficiency baseline for DNA sequence variation analysis.
Downloads
References
R. W. Hamming, "Error detecting and error correcting codes," Bell Syst. Tech. J., vol. 29, no. 2, pp. 147–160, 1950.
Y. Liu et al., "Hamming-shifting graph of genomic short reads: Efficient construction and its application for compression," BMC Bioinform., vol. 22, no. 1, pp. 1–20, 2021.
J. Yang et al., "Development of a program for in silico optimized selection of oligonucleotide-based molecular barcodes," PLOS ONE, vol. 16, no. 2, p. e0246658, 2021.
Rajesh et al., "Transformer-based framework for pairwise DNA sequence alignment," [Journal name], 2026.
P. Compeau and P. Pevzner, Bioinformatics Algorithms: An Active Learning Approach. Active Learning Publishers, 2015.
G. E. Sims, S. R. Jun, G. A. Wu, and S. H. Kim, "Alignment-free genome comparison with feature frequency profiles (FFP) and optimal resolutions," Proc. Natl. Acad. Sci., vol. 106, no. 8, pp. 2677–2682, 2009.
J. Archer et al., "Molecular epidemiology and population genetics of Schistosoma mansoni infecting school-aged children situated along the southern shoreline of Lake Malawi, Malawi," PLOS Negl. Trop. Dis., vol. 18, no. 11, p. e0012595, 2024.
E. Vodiasova et al., "Genetic diversity and phylogeny of Schistosoma mansoni from Guinea," Diversity, vol. 17, no. 1, pp. 1–15, 2025.
M. Rocha and P. G. Ferreira, Bioinformatics Algorithms: Design and Implementation in Python. Academic Press, 2018.
V. I. Levenshtein, "Binary codes capable of correcting deletions, insertions, and reversals," Sov. Phys. Dokl., vol. 10, no. 8, pp. 707–710, 1966.
P. J. Cock et al., "Biopython: Freely available Python tools for computational molecular biology and bioinformatics," Bioinformatics, vol. 25, no. 11, pp. 1422–1423, 2009.
D. A. Benson et al., "GenBank," Nucleic Acids Res., vol. 41, no. D1, pp. D36–D42, 2013.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Journal of Artificial Intelligence and Engineering Applications (JAIEA)

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.








