Chapter 5 Introduction Problem Solving Part-1
Chapter 5 Introduction Problem Solving Part-1
Introduction to problem
solving
What is problem
Problems are at the center of what many people do at work every day.
A matter or situation regarded as unwelcome / harmful and need to be
dealt with overcome is known asproblem.
This quote itself is proof enough to say that in order to program a solution for a
problem.
• In this chapter you will learn about problem solving i.e., analysing a problem.
Designing algorithms using tools like flow charts and pseudocode and problem
solving using decomposition.
Problem solving cycle
Programs are not quick creations. In order to create efficient and effective
programs, you should adopt a proper problem solving methodology and use
appropriate techniques.
In fact, problem solving methods follow a cycle. The problem solving cycle. In
the coming lines we are going to discuss the same.
4.
Performing 1. Analyse
testing and the problem
debugging
2. Find
3. Coding solution and
the solution develop
algorithm
• Each step contains the many sub steps.
• Let us talk about the sub-steps in order to understand the problem
solving cycle.
• The aim of the problem solving cycle is to create a working
program for the solution.
• Code program using appropriate control structures Use appropriate control structures(conditional or looping)
Coding
Think in terms of Speed, performance and effectiveness
• Test and debug your problem Process of finding errors in a program and correcting
Testing and • Complete your documentation
debugging
• Implement your code The real users can use your programs
Implement • Maintain your program Keep the program up-to-date as govt regulations or
and Maintain company policies change
PROBLEM SOLVING USING DECOMPOSITION
The process of breaking down a big or complex problem into a set of smaller sub
processes in order to understand a problem or situation better is known as
decomposition.
Decomposition involves
Dividing a task into sequence of sub tasks.
Identifying elements or parts of a complex system.
Big problem
Break down into smaller, logical parts