Question
Which of these is an algorithm?
a love letter
a poem
a pizza recipe
a shopping list
a love letter
a poem
a pizza recipe
a shopping list
Answers
GPT-4o mini
A pizza recipe is an algorithm. An algorithm is a step-by-step procedure or set of rules designed to perform a specific task or solve a problem. A pizza recipe outlines the ingredients and the steps needed to make a pizza, which fits this definition. The other options (a love letter, a poem, and a shopping list) do not follow a procedural structure for completing a specific task in the same way.