Research Article

An Exploration of the Triplet Periodicity in Nucleotide Sequences with a Mature Self-Adaptive Spectral Rotation Approach

Pseudocode 1

Input: nucleotide sequence 1,…,
Output: TP walk as a complex sequence 0,…,
(1) for each do ;
(2) for from to 1 do {
(3) if ( mod 3 == 0) ;
(4) ;
(5) for each do {
(6)   ;
(7)  if == += ;
(8) }
(9) }
(10) 0.re = 0; 0.im = 0;
(11) for from 1 to do {
(12)  .re =   *  1 + 2;
(13)  .im = sqrt(3)/2  *  0  −  sqrt(3)/2  *  1;
(14)   = sqrt(.re  *  .re + .im  *  .im);
(15)  ;
(16)  if ( = 0) {
(17)    .re += .re/;
(18)    .im += .im/;
(19)  }
(20) }