Algorithm 1 Generation of a rule profile