A GENERALIZATION OF THE KRAWCZYK-MOORE ALGORITHM