Research Article

Text Case-Based Reasoning Framework for Fault Diagnosis and Predication by Cloud Computing

Algorithm 4

MapReduce algorithm for case retrieval and ranking.
 begin
   Map(key, value);
   read new fault records with reduced fault attributes;
   compute a similarity value by the calculated attribute weight;
   find the most similarity value by comparison with CB;
   output <key=case index, value=similarity value>;
   Reduce(key, value);
   find the largest similar index;
   output <key=similarity value, value=case index>
 end