COMPOSE-MEDIAN-RULES() | // Compose median rule set from given set of rule sets | // = (, ,, ), = FOLDERCOUNT | // Use local variables, sets of rules and , and rule | | = MEDIAN(.length, .length,, .length) | for to | // Compose temporary rule set, = (, ,,) | // If possible, have | // Each rule in appears in at most one temporary rule set | = COMPOSE-TEMP-SET() | .limitIndex = MEDIAN(.limitIndex,, .limitIndex) | .limitThreshold = MEDIAN(.limitThreshold,, .limitThreshold) | .limitType = MEDIAN(.limitType,, .limitType) | | return |
|