Computer ScienceClass 11Introduction to Problem Solving

Introduction to Problem Solving for Class 11 NCERT Computer Science

By ConceptScroll Team · Published on 2 July 2026 · 5 min read

Introduction to Problem Solving for Class 11 NCERT Computer Science

Introduction to Problem Solving is a fundamental chapter in Class 11 NCERT Computer Science that teaches students how to approach and solve computational problems efficiently using algorithms and flow control techniques.

What is Problem Solving in Computer Science?

Problem solving in computer science involves identifying a problem, designing a solution, and implementing it using algorithms. It is the first step in programming and software development.

In Class 11 NCERT, problem solving teaches you how to break down complex tasks into smaller, manageable steps. This process helps in writing clear and efficient programs. The key steps include:

  • Defining the problem clearly
  • Analyzing the problem
  • Designing an algorithm
  • Implementing the algorithm in a programming language
  • Testing and debugging the solution

Understanding problem solving helps you develop logical thinking and prepares you for advanced computer science topics.

Understanding Algorithms: The Heart of Problem Solving

An algorithm is a finite set of well-defined instructions to solve a specific problem. The word "algorithm" comes from the Persian mathematician Muhammad ibn Musa al-Khwarizmi.

Characteristics of a good algorithm:

  • Clear and unambiguous: Each step is precisely defined.
  • Finite: It must terminate after a finite number of steps.
  • Input and output: Takes input and produces output.
  • Effective: Each step is basic enough to be performed.

Example: Algorithm to find the sum of two numbers

1. Start 2. Take input numbers $a$ and $b$ 3. Calculate sum $s = a + b$ 4. Display sum $s$ 5. Stop

Algorithms can be represented using pseudocode or flowcharts for better understanding and communication.

Want to test yourself on Introduction to Problem Solving? Try our free quiz →

Flow of Control in Algorithms: Sequence, Selection, and Iteration

Flow of control defines the order in which instructions in an algorithm are executed. It mainly includes three types:

Flow TypeDescriptionExample
SequenceSteps executed one after anotherCalculating area of a rectangle
SelectionDecision making based on conditionsChecking voting eligibility
IterationRepeating steps until a condition is metCalculating average of 5 numbers

Sequence

Steps follow one after another without any branching.

Selection (Decision Making)

Uses conditions to choose between alternatives. Implemented using if-else structures.

Example: Check if a number is even or odd:

  • If number % 2 == 0, print "Even"
  • Else, print "Odd"

Iteration (Looping)

Repeats a set of instructions multiple times.

Example: Calculate average of 5 numbers:

  • Initialize sum = 0
  • Repeat 5 times: input number, add to sum
  • Average = sum / 5

Understanding flow of control is essential for writing effective algorithms and programs.

Using Flowcharts and Pseudocode to Visualize Problem Solving

Flowcharts and pseudocode are tools to represent algorithms visually and textually, making them easier to understand and communicate.

Flowcharts

  • Use symbols like ovals (start/end), parallelograms (input/output), rectangles (process), diamonds (decision).
  • Show the flow of control with arrows.

Example: Flowchart to check if a number is even or odd:

  • Start
  • Input number
  • Decision: number % 2 == 0?
  • Yes: Print "Even"
  • No: Print "Odd"
  • End

Pseudocode

  • Uses simple, English-like statements to describe steps.
  • Easier to convert into actual code.

Example: `` Start Input number If number % 2 == 0 then Print "Even" Else Print "Odd" End ``

Both tools help in planning before coding and reduce errors.

Worked Example: Calculating the Average of 5 Numbers Using Iteration

Let's solve a problem using iteration:

Problem: Calculate the average of 5 numbers entered by the user.

Algorithm: 1. Start 2. Initialize sum = 0 3. For count = 1 to 5

  • Input number
  • Add number to sum

4. Calculate average = sum / 5 5. Display average 6. Stop

Pseudocode: `` Start sum = 0 For i = 1 to 5 do Input num sum = sum + num End For average = sum / 5 Print average Stop ``

Explanation: The loop repeats 5 times to accept numbers and add them. After the loop, average is calculated and displayed.

This example demonstrates iteration and sequence flow of control.

Key Terms in Problem Solving and Algorithms

Here are some important terms you should remember from this chapter:

  • Algorithm: Step-by-step procedure to solve a problem.
  • Flow of Control: Order of execution of instructions.
  • Sequence: Instructions executed one after another.
  • Selection: Decision making using conditions (if-else).
  • Iteration: Repeating instructions (loops).
  • Dry Run: Manually tracing an algorithm to check correctness.
  • Interpreter: Software that converts high-level statements to machine code one by one during execution.

Understanding these terms will help you grasp problem solving concepts and prepare for exams.

Frequently asked questions

What is the first step in the problem solving process?

The first step is to define the problem clearly before designing a solution.

What does flow of control mean in an algorithm?

Flow of control refers to the order in which instructions are executed: sequence, selection, or iteration.

What is iteration in problem solving?

Iteration is repeating a set of instructions multiple times until a condition is met.

How does selection work in algorithms?

Selection uses conditions to decide which set of instructions to execute, typically with if-else statements.

What is a dry run in algorithm verification?

A dry run is manually tracing each step of an algorithm to check its correctness.

Who is the mathematician behind the word 'algorithm'?

The word 'algorithm' comes from Persian mathematician Muhammad ibn Musa al-Khwarizmi.

Ready to ace this chapter?

Get the full Introduction to Problem Solving chapter — interactive notes, diagrams, worked solutions, polls and a free practice quiz — in the ConceptScroll app.

Open in ConceptScroll →

Study smarter with ConceptScroll

Daily NCERT-aligned reels, AI doubt solving and chapter quizzes — all free.

Start learning free
#algorithms#class 11#computer science#flow of control#iteration#ncert#problem solving#programming basics#selection#sequence

Continue reading