Research Article

Research on Diagnostic Information of Smart Medical Care Based on Big Data

Algorithm 2

The Reducer algorithm.
(a)Create a hash table (Hash Table);
(b)If the intermediate result file <> ∅ & Not Eof (all intermediate result files) then loop through each set of (Key, Value) key-value pairs;
(c)When the Key value is read for the first time, it is judged whether the Key value is an integer;//Key is the age value.
 If Key is an integer type then.
  Key' = age range + Value corresponding to the Key value;//value is the name of the illness.
  Value' two Value'+1;//value' initial value is 0.
  Write a (Key', Value') key-value pair to the hash table;
  Else Reads the next set of (Key, Value) key-value pairs;
  End If