Algorithmic Problem Solving: Lecture Notes and Exam Prep, Exams of Advanced Algorithms

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

2025/2026

Available from 11/16/2025

UK.Exam
UK.Exam 🇬🇧

1

(1)

3.1K documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Algorithmic Problem Solving, Lecture Notes - Mathematics
- 17, Study notes of Mathematics|Latest 2025/2026 Exam
Update|Graded A+|Secure Pass.
List the four steps in Polya's How-To-Solve-It list. - ANSWERS-1.
Ask Questions
2. Look for Familiar things
3. Divide and Conquer
4. Algorithms
Describe the four steps listed in Question 1 in your own words. -
ANSWERS-1. Ask questions to understand the problem.
2. Look for similar things because some problems are concurrent.
3. Break up a large problem into smaller units that we can handle.
4. A set of instructions for solving a problem or subproblem in a
finite amount of time using a finite amount of data.
List the problem-solving strategies discussed in this chapter. -
ANSWERS-Analyze
General Solution (Algorithm)
Test
Apply the problem-solving strategies to the following situations.
a. Buying a toy for your four-year-old cousin.
b. Organizing an awards banquet for your soccer team.
pf3
pf4
pf5

Partial preview of the text

Download Algorithmic Problem Solving: Lecture Notes and Exam Prep and more Exams Advanced Algorithms in PDF only on Docsity!

Algorithmic Problem Solving, Lecture Notes - Mathematics

- 17, Study notes of Mathematics|Latest 2025/2026 Exam

Update|Graded A+|Secure Pass.

List the four steps in Polya's How-To-Solve-It list. - ANSWERS-1. Ask Questions

  1. Look for Familiar things
  2. Divide and Conquer
  3. Algorithms Describe the four steps listed in Question 1 in your own words. - ANSWERS-1. Ask questions to understand the problem.
  4. Look for similar things because some problems are concurrent.
  5. Break up a large problem into smaller units that we can handle.
  6. A set of instructions for solving a problem or subproblem in a finite amount of time using a finite amount of data. List the problem-solving strategies discussed in this chapter. - ANSWERS-Analyze General Solution (Algorithm) Test Apply the problem-solving strategies to the following situations. a. Buying a toy for your four-year-old cousin. b. Organizing an awards banquet for your soccer team.

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.