What is the primary purpose of algorithms in computer programming?
a. To define a sequence of steps for solving a problem
b. To replace programming languages
c. To perform mathematical calculations
d. To write lines of code