CH1 General Problem Solving Concepts
CH1 General Problem Solving Concepts
Solving Concepts
1
What is problem solving
• Terminologies
2
• Problem solving is
the process of
transforming the
description of a
problem into the
solution of that
Problem problem by using
our knowledge of
Solving the problem domain
and by relying on
our ability to select
and use appropriate
problem-solving
strategies,
techniques, and
tools.
3
Problem solving in daily life
• People make decisions every day to solve problems that affect their
lives.
4
The six steps in problem solving
5- List instructions
5
The six steps in problem solving[1-5]
• Knowing the knowledge base is very important since you cannot use any
instructions outside this base.
6
The six steps in problem solving[2-5]
7
The six steps in problem solving[3-5]
4. Select the best way to solve the problem from the list of alternative solutions
A. Select criteria for the evaluation.
B. Identify and evaluate the pros and cons of each possible solution before selecting
the best one based on the selected criteria.
8
The six steps in problem solving[4-5]
5. List instructions that enable you to solve the problem using the selected solution.
A. These numbered, step-by-step instructions must fall within the knowledge base set
up in step 2.
B. No instruction can be used unless the individual or the machine can understand it.
9
The six steps in problem solving[5-5]
B. If the result is either incorrect or unsatisfactory, then the problem solver must
review the list of instructions to see that they are correct or start the process all
over again.
• (When a person needs a piece of furniture to sleep on, buying her a cot may be a correct
solution, but it may not be very satisfactory.)
10
Problems examples
•At home:
• what to cook for dinner
• which movie to see this evening
• which car to buy
•At work:
• The problems might involve dealing with:
• work policies
• Management
• Customers
The better the decisions an employee can make, the more valuable that person will be to the company.
In each case, the six steps in problem solving can be followed. Most people use them without even knowing it
11
The problem of what to do this evening
12
The problem of what to do this evening
3. Identify alternatives.
a. Watch television.
b. Invite friends over.
c. Play video games.
d. Go to the movies.
e. Play miniature golf.
f. Go to the amusement park.
g. Go to a friend’s party.
Note: The list is complete only when you can think of no more alternatives.
13
The problem of what to do this evening
c. Weigh the pros and cons to make the final decision. This solution will be the best
alternative if all the other steps were completed well.
14
The problem of what to do this evening
15
Problems with …
• Algorithmic solutions:
• Solutions that can be reached with a series of actions
16
Types of Problems
17
Problem Solving with Computers
Terminologies:
• Solution instructions followed to produce best result
• Result outcome, computer-assisted answer
• Program instructions for solution using computer language
• Algorithm a step by step solution to a problem.
18
Problem Solving with Computers
19
• Lack of problem solving
experience
• Inadequate solution steps
Difficulties with • Incorrect problem definition
20
Difficulties with Problem Solving
When solving problems on the computer, one of the most difficult tasks for the problem
solver is writing the instructions.
Task:
Which number is the largest from a group of three numbers?
• Input: Take three numbers as input (let's call them num1, num2, and num3).
• Initialize: Set a variable largest to one of the numbers (for simplicity, let's assume num1 is the largest for now).
• Compare: Compare num2 with largest. If num2 is greater than largest, update largest to num2.
• Compare: Compare num3 with largest. If num3 is greater than largest, update largest to num3.
• Output: The variable largest now contains the largest number among the three.
21
End Chapter 1
22