Skip to main content
. 2023 Jan 2;25(1):91. doi: 10.3390/e25010091
Algorithm 1 Algorithm for conversion of symbolic values of attributes into numerical equivalents.
Input: decision table T with condition attributes attr1,,attrn, row r=(vattr1,,vattrn)
Output:MX(T)-matrix data form of T
  AV; //AV is a set of unique pairs (attr,vattr) from T
  for each r of T do
    add descriptor (attr,vattr) to AV;
  each for
  for each descriptor (attr,vattr) from AV do
    add column to MX(T), named avi, filled with 0’s;
  end for
  for each r of T do
    set value to 1 for column named avi where a=attr and vi=vattr;
  end for