


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Algorithmic Problem Solving, Lecture Notes - Mathematics - 17, Study notes of Mathematics|Latest 2025/2026 Exam Update|Graded A+ Secured Pass Algorithmic Problem Solving, Lecture Notes - Mathematics - 17, Study notes of Mathematics|Latest 2025/2026 Exam Update|Graded A+ Secured Pass
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



List the four steps in Polya's How-To-Solve-It list. - ANSWERS-1. Ask Questions
b. Check if the team wins. Decide on the location of the banquet. Arrange the banquet and send invites to each and ever member on their address. Wait for them to arrive to the banquet. c. Check if you are actually invited. Go to the tailor to make a new suit/dress that fits you. Wear the dress/suit to double check. Go to the banquet. Examine the solutions in Exercise 4 and determine three things they have in common. - ANSWERS-All of them have an algorithm to solve the problem. What is an algorithm? - ANSWERS-A set of well-defined logical steps that must be taken to perform a task. List the three phases of the computer problem-solving model. - ANSWERS- Write an algorithm for the following tasks. a. Making a peanut butter and jelly sandwich b. Getting up in the morning c. Doing your homework d. Driving home in the afternoon - ANSWERS-a. Open the bag of bread. Insert hand inside the bag of bread. Hold two slices of bread from the bag of bread. Take out your hand with the two slices of bread from the bag of bread. Place the bread next to the bag of bread. Open the peanut butter by removing the cap in a rotational motion. Place spoon/knife in it, and then place knife/spoon on bread. Move knife/spoon around the bread. Throw knife in the sink. Place the two pieces of bread on top of each other so that the peanut side is facing the other peanut side. Shove it up your face.
b. Organize the recipe as an algorithm, using pseudocode. c. List the words that have meaning in computing. d. List the words that have meaning in cooking. e. Make the cookies and take them to your professor. - ANSWERS- a. yes because it has specific instructions. b. heat oven to 350 degrees. Put cocoa and baking soda in put. Add 1/3 cup melted butter. Add boiling water. Mix well. If it's not mixed, mix more. Else, stir in sugar, eggs and remaining butter. Add flour, vanilla and salt. Stir in pecans and chocolate chunks. Mix them all. If mixed, pour into the pan, else, keep mixing. Bake for 35-40 minutes. If the cake is cooked, eat it. Else, cook more. c. AND, OR, IF, ELSE. d. COOK, HEAT, ADD, MIX, COOK MORE, VANILLA, BUTTER, STIR. e. okay.