procedure ATTPREF( { P R F 𝑣 } )
 for π‘₯ = 1 to | 𝛼 |   do  // preferences for textual attributes
  calculate P R F 𝛼 π‘₯
 end for
 for π‘₯ = 1 to | 𝛽 |   do  // preferences for numerical
attributes
  calculate P R F 𝛽 π‘₯
 end for
 return   { P R F 𝛼 } ; { P R F 𝛽 }   // two sets: textual attribute
 preferences, and numerical-attribute preferences
end procedure
Algorithm 2: Compute preferences for attributes.