Algorithm 4.1.
Input:
- satisfying and ,
- ,
- point . // Note that may not be a generator (if is composite).
Output:
- satisfying if such exists. Otherwise, nil.
Procedure:
- ;
- if then return nil ;
- ; ;
- Build a set for . // Note .
- for each
- if and then return ;
- return nil ;
Theorem 4.2. Algorithm 4.1 returns a correct result with bit operations.