Skip to main content
. 2023 Aug 28;25(9):1268. doi: 10.3390/e25091268
Algorithm 2 The diffusion on a single eight-base DNA-level cube
Input: an eight-base DNA-level cube C after the permutation, an auxiliary hyperchaotic eight-base DNA-level cube G, the same prism length E of the cube C and G, and three hyperchaotic subsequences Hjd (j = 1, 2, 3)
Output: the eight-base DNA-level cube C after the diffusion
1: function CubeDiffusion(C,G,E,Hjd)
2:     C(1,:,:)=(C(1,:,:)G(E,:,:))(C(E,:,:)G(1,:,:)) with Rule H1d(1);
3:     C(:,1,:)=(C(:,1,:)G(:,E,:))(C(:,E,:)G(:,1,:)) with Rule H2d(1);
4:     C(:,:,1)=(C(:,:,1)G(:,:,E))(C(:,:,E)G(:,:,1)) with Rule H3d(1);
5:     for i = 2 : E do
6:            C(i,:,:)=(C(i,:,:)G(i1,:,:))(C(i1,:,:)G(i,:,:)) with Rule H1d(i);
7:            C(:,i,:)=(C(:,i,:)G(:,i1,:))(C(:,i1,:)G(:,i,:)) with Rule H2d(i);
8:            C(:,:,i)=(C(:,:,i)G(:,:,i1))(C(:,:,i1)G(:,:,i)) with Rule H3d(i);
9:     end for
10:   return C;
11: end function