\nm & do R quartile discretization of  all numeric variables\\
\nm &{\bf if} the score is numeric {\bf then} do R quartile discretizations of scores {\bf fi}\\
\nm &{\bf for} \{v=r\} $\in$ range(VARIABLES)\\
   & \tb  lift1[\{v=r\}] $\leftarrow$ lift(\{v=r\}) {\em /*see ``lift1'' in \fig{lifg}*/}\\
\nm &compute the cumulative distribution liftC from lift1 {\em /*see ``liftC'' in \fig{lifg}*/}\\
\nm & TREATMENTS $\leftarrow$ $\emptyset$\\
\nm  &  futile $\leftarrow$ 0\\
\nm &{\bf repeat}\\ 
\nm   &\tb some $\leftarrow$ best $\leftarrow$ $\emptyset$\\
\nm &\tb MAXTRIALS {\bf timesRepeat}\\ 
\nm    &\tb {\bf do} \tb rx   $\leftarrow$ $\emptyset$\\
\nm &\tb \tb \tb size $\leftarrow$ 1 to MAXSIZE, picked at random\\
\nm &\tb \tb \tb size {\bf timesRepeat} rx $\leftarrow$ rx  $\cup$ (\{v=r\} selected at random from liftC)\\
\nm &\tb \tb \tb rx.lift=lift(rx) {\em /*calculated using \eq{calc} */}\\
\nm &\tb \tb \tb {\bf if} \tb $|\mbox{rx} \cap class(R)| \ge (|D \cap class(R)|*$ENOUGH$)$\\
    &\tb \tb \tb {\bf then}\tb some $\leftarrow$ some $\cup$ rx\\
    &\tb {\bf done} {\em /* MAXTRIALS repeats */}\\
\nm &\tb best $\leftarrow$ the N top lifters of some\\
\nm &\tb {\bf if}\tb \tb TREATMENTS contains every member of best\\
    &\tb {\bf then}\tb ~~futile $\leftarrow$ futile + 1\\
    &\tb {\bf else}\tb ~~~futile $\leftarrow$ 0\\
    &\tb \tb \tb{\tb}TREATMENTS $\leftarrow$the N top lifters of (TREATMENTS $\cup$ best)\\
    &\tb {\bf fi}\\
\nm &{\bf until} (futile $\ge$ MAXFUTILE)\\ 
\nm &{\bf return} TREATMENTS sorted on lift