Research Article

Computing the Discrete Compactness of Orthogonal Pseudo-Polytopes via Their 𝑛 D-EVM Representation

Algorithm 5

Computing LC(p) for an nD-OPP expressed in the EVM.
Input:   An nD-EVM p and the number n of dimensions.
Output:The number of internal contacts, perpendicular to Xi-axis,
         i=1,2,…,n, between the hypervoxels that originally composed p.
Procedure TotalInternalContacts(EVM p, int n)
      int Lc = 0
       for each sorting in {X1X2Xn-1Xn,X2X3XnX1,X3X4X1X2,,XnX1Xn-2Xn-1}  do
         SortEVM(p, n, sorting)
         Lc = Lc + InternalContacts(p, n) // Call to Algorithm 4.
       end-of-for
       return Lc
end-of-procedure