Definition An algorithm is a set of instructions which potentially enables agents and/or (usually) devices to perform a specific complex function.