0% found this document useful (0 votes)
23 views1 page

Problem Solving and Algorithm Design

The document discusses the stages of problem solving and algorithms. It outlines the stages as: 1) defining the problem clearly, 2) analyzing the problem by identifying inputs, outputs, stored values, and processing, and 3) proposing and evaluating possible solutions. It then defines an algorithm as a set of unambiguous instructions for solving a problem in a finite amount of time using finite data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views1 page

Problem Solving and Algorithm Design

The document discusses the stages of problem solving and algorithms. It outlines the stages as: 1) defining the problem clearly, 2) analyzing the problem by identifying inputs, outputs, stored values, and processing, and 3) proposing and evaluating possible solutions. It then defines an algorithm as a set of unambiguous instructions for solving a problem in a finite amount of time using finite data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Feb.

17 2020

Problem solving and Algorithm design


Problem solving - the act of finding a solution to a perplexing, distressing, vexing, or unsettled
question

How do you solve problems- understand the problem, devise a plan, carry out the plan, look back.

Stage 1. Definition of the problem

This is where the actual problem is clearly defined. Must be able to identify the problem and if it is
not phrased properly you should modify it.

Stage 2. Analyse the problem

In this stage you need to identify the inputs to be used, output required, values to be stored, and the
processing that needs to be done to get the correct outputs.

Example: get two numbers and add them together and display their sum.

IPO-INPUT PROCESSING AND OUTPUT

Input Processing Output


Two numbers Accept two numbers store Differences
results display the results

Stage 3. Propose and evaluate possible solutions

Generally, all problems statements have more than one option. So, you evaluate each option to see
which is most appropriate for you and choose the best option.

Algorithm

A set of unambiguous instructions for solving a problem or sub-problem in a finite amount of time
using a finite amount of data.

You might also like