



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
Lecture notes on algorithmic problem solving, focusing on polya's problem-solving techniques and computer problem-solving models. It includes questions and answers covering topics such as algorithm development, implementation, and maintenance. The material is designed to help students understand and apply problem-solving strategies in computer science and mathematics, offering practical examples and pseudocode exercises to reinforce learning. It also explores the differences between computer and human problem-solving approaches, making it a valuable resource for exam preparation and deeper understanding of algorithmic concepts. Useful for university students.
Typology: Exams
1 / 5
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
c. Buying a dress or suit for an awards banquet at which you are being honored. - ANSWERS-a. Find out the toy they desires the most. Propose a trip to the toy store (go to Amazon lol). Test your plan by buying the toy and give it to your cousin. 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
Describe the steps in the algorithm development phase. - ANSWERS-Top-down design: Breaking the problem into a set of subproblems called modules. Object-oriented design: A problem-solving methodology that produces a solution to a problem in terms of self-contained entities called objects. Describe the steps in the implementation phase. - ANSWERS-The implementation phase includes coding (translating the algorithm into a computer language) and testing (compiling and running the program). Describe the steps in the maintenance phase. - ANSWERS-The maintenance phase involves using the program and modifying the program to add functionality or correct errors. Look up a recipe for chocolate brownies in a cookbook and answer the following questions. a. Is the recipe an algorithm? Justify your answer. 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.