Skip to main content
. 2023 Jan 5;25(1):112. doi: 10.3390/e25010112
Algorithm 2:MCIR-RGAD algorithm

Input: Information system (U,CD), an attribute reduction set B, threshold ϵ>0.

Output: A decision tree T

  • 1:
    compute B   UsingAlgorithm
  • 2:
    compute MCB(B)={B1,,Bk}, MCB(D)={D1,,Dm}.  UsingDefinition
  • 3:
    if(U,CD) is incomplete then
  • 4:
       g1, RG(D,B)Rr(D,B) (Equation (14))
  • 5:
    else
  • 6:
       0<g<1, RG(D,B)g·Rr(D,B)+(1g)·1Gr(D,B) (Equation (14))
  • 7:
    end ifRecursionPoint
  • 8:
    forajBdo
  • 9:
       ajargajBminRG(D,aj)
  • 10:
       BBaj
  • 11:
       if RG(D,aj)>ϵ then
  • 12:
         LabelTargf(U,Di)maxDi
  • 13:
       else
  • 14:
         MCB(aj){X1,,Xs}
  • 15:
         for XiMCB(aj) do
  • 16:
            (U,CD)(Xi,BD)
  • 17:
            if MCB(D)=1 then
  • 18:
              LabelTf(U,D) B=ϕ
  • 19:
              LabelTargf(U,Di)maxDi
  • 20:
            else
  • 21:
              return Step 8
  • 22:
            end if
  • 23:
         end for
  • 24:
       end if
  • 25:
    end for
  • 26:
    return T