
A set of step-by-step rules a computer follows to solve a problem. A hospital scheduling system might use appointment length, staff hours and room space to decide which slots appear on a screen for patients to book. The result depends on the rules and information supplied, so missing details can change what the system produces.