Input: A D-EVM and the number of dimensions .
Output: The total number of internal contacts for the hyper-boxes of a given D-EVM
(1)Procedure  TotalInternalContacts  (D-EVM , )
(2)     integer ic 0; // Total internal contacts
(3)     EVM SortedP;
(4)     for eachsorting AxisSorting  do
(5)       SortedP sortEVM (p, n, sorting);
(6)       ic  ic + InternalContacts ();
(7)     return  ic
Algorithm 5: Computing the total internal contacts, , for a given D-OPP .