Algorithm 3. ConstructAntRules(c, Prob).
| 1: Set .Generation counter |
| 2: while g ≠ |attributes| And coverage ≤ minCoverage do |
| 3: Set Multi-term rules |
| 4: Set Ant index Ant index |
| 5: repeat |
| 6: Let ant t construct a maximum of g-term rule such that (rule => c) using selection probability prob. |
| 7: Set |
| 8: until t > noO f Ants |
| 9: for Each rule constructed by ants do |
| 10: Calculate support and confidence of rule |
| 11: if support ≥ minSupp And ≥ minConf then |
| 12: Set |
| 13: end if |
| 14: end for |
| 15: Set . |
| 16: Update pheromone. |
| 17: Set |
| 18: end while |
| 19: return MultiRules |