The Digital Doctor

Example Courtesy of Dr. D. J. Furlong, Department of Electronic and Electrical Engineering, Trinity College, Dublin Ireland and Dr. David Vernon, Carnegie Mellon Africa.

Let's practice a bit of logic by designing an algorithm to diagnose two ailments:

  1. Boolean Virus
  2. Digital Flu

There are four symptoms that can be used to diagnose these diseases:

  1. chills
  2. rash
  3. bloodshot eyes
  4. fever

Here is how to tell what disease a patient has:

After the diagnosis, the following prescription is given to the patient:

Action Plan for in-class exercise

Write an algorithm for this problem.

  1. Don't forget to use an outline with at least 2 levels.
  2. Use abbreviations - for instance BV and DF and c, r, b, f, ... Your team should agree on the terms you wish to use.
  3. Try to keep it simple, yet thorough.
  4. Put the details in the lower-levels of the outline.