Require: INPUT:
   ;
  OUTPUT:
   ;
(1) PROCEDURES:
Initialize_ ;
(2) repeat
(3) ;
(4) Error = ;
(5) Until Error < Error_Threshold
(6) = Closest_nodes
Algorithm 2: AP4 : AP-based method for solving Problem 4.