Chromosomes, which are formed by the combination of DNA and special proteins, are structures that can show some changes with the effect of genetic or environmental factors. The DNA molecule in these structures carries vital information in elucidating critical information about life. DNA, which is formed by the combination of sugar, phosphate and organic bases, has exon and intron regions separation. Information about the processes in the life cycle of cells, the changes experienced by stem cells, the regulations in the growth and development stage, the development status of cancer, mutation occurrences and protein synthesis are stored in exon regions. Distinguishing exon regions that form %3 of a cell's DNA is considered a challenging problem. However, the detection of diseases on genetically based facts offers more precise outputs. In this study, the BCR-ABL gene, which is an important indicator in the diagnosis of ALL and CML malignancies, was obtained from the NCBI dataset. In the first step, sequences were digitized using the integer mapping technique to detect exon and intron regions in the BCR-ABL gene region. The digitized sequences were given as input to the hash function. The outputs obtained from the hash function, which has a mathematical basis suitable for the structure of DNA, were expressed in the binary system and placed in the hash table. Then, these key values, which define the exon and intron regions, were shown as clusters in order to find the region of the new input easily. As a result of the analysis performed for the BCR-ABL gene, one collision occurred. However, to test the power of the proposed hierarchy, the same processes were used again on the BRCA-1 mutation carrier gene seen in high-risk breast cancer patients. As a result of the study also carried out on the BRCA-1 gene, one collision occurred. This shows the success and stability of the proposed method. By this study, a simple hierarchy based on a mathematical basis, independent of nucleotide length, was created.