| Algorithm 2: Comparison of two DNA Sequence based on their CAT profiles | |
| Input: | CAT profile1: {C:{D,H}, A:{D,H}, T:{D,H}}, CAT profile2: {C:{D,H}, A:{D,H}, T:{D,H}} |
| Output: | Comparison results in % |
| Processing Steps: | |
| Step1: | resultC = Math.Sqrt(Math.Pow(x.c.D - y.c.D, 2) + Math.Pow(x.c.H - y.c.H, 2)); resultA = Math.Sqrt(Math.Pow(x.a.D - y.a.D, 2) + Math.Pow(x.a.H - y.a.H, 2)); resultT = Math.Sqrt(Math.Pow(x.t.D - y.t.D, 2) + Math.Pow(x.t.H - y.t.H, 2)); |
| Step2: | Calculate result 1- (resultC + resultA + resultT)/3 |