algorithms in computer programming are often created as functions