In the data context, an algorithm is a set of instructions for a computer to bring in input data, manipulate it, perform calculations with it, and generate output. Algorithms used in data science offer preset methods for analyzing data, identifying patterns, and generating predictions. More than one algorithm can often be used to address a predictive analytics question, and choosing the right algorithm is an important part of the process.