Input:
Output:
(1) is transformed to as Table 1 rule;
(2) Pre-computation
   ;
   ;
(3) ;
(4) For from downto 0 do
(4.1) ;
(4.2) ;
(5 ) Return ( ).
Algorithm 4: Lee's algorithm.