Research Article

Analysis and Detection of Road Traffic Accident Severity via Data Mining Techniques: Case Study Addis Ababa, Ethiopia

Algorithm 1

Conversion of each column of the dataset numeric.
List of categories
Began
 for i in the range of zero to the total number of attributes
  for counter1 in the range of zero to the total number of instances in the dataset
   for counter2 in the range of zero to the total number of categories attributei
    if(attributei[counter1] is not found in subcategories attributei)
     categories attributei[counter2] = attributei[counter1]
    endif
    if (attributei[counter1] = = subcategories attributei[counter2])
     attributei[counter1] = index of the name of the category in subcategories attributei
    endif
   endfor
  endfor
 endfor
End