which of the following is true about algorithms quizlet psychology