Skip to main content
. 2023 Aug 28;25(9):1268. doi: 10.3390/e25091268
Algorithm 1 The permutation on a single eight-base DNA-level cube
Input: an eight-base DNA-level cube C, the prism length E of the cube, and three hyperchaotic subsequences Hjp (j = 1, 2, 3)
Output: the eight-base DNA-level cube C after the permutation
1: function CubePermutation(C,E,Hjp)
2:     for i = 1 : E do
3:         for j = 1 : 3 do
4:           Pi,1C(i,:,:);
5:            Pi,2C(:,i,:);
6:            Pi,3C(:,:,i);
7:            for t = 1 : E do
8:                ShiftsHjp(2×(i1)×E+t);
9:                Circular shift Pi,j(t,:) to right by Shifts;
10:            end for
11:            for t = 1 : E do
12:                ShiftsHjp(2×(i1)×E+E+t);
13:                Circular shift Pi,j(:,t) to bottom by Shifts;
14:            end for
15:            C(i,:,:)Pi,1;
16:            C(:,i,:)Pi,2;
17:            C(:,:,i)Pi,3;
18:         end for
19:     end for
20:     return C;
21: end function