A mathematical procedure or formula for solving a recurrent problem, based on conducting a sequence of specified actions. For example, an encryption algorithm transforms data according to specified actions to protect that data.