2nd pu notes

2nd PUC Computer Science Chapter 5 Sorting Notes | Bubble Sort, Selection Sort, Insertion Sort

Venkatesh A August 26, 2026 20 min read
2nd PUC Computer Science Chapter 5 Sorting Notes | Bubble Sort, Selection Sort, Insertion Sort
2nd PUC / Class 12 • Computer Science
CHAPTER 5

Complete Short Notes & Exam Preparation Guide

Bubble Sort • Selection Sort • Insertion Sort • Time Complexity of Algorithms

Based on the NCERT textbook PDF only.

verakworld.com

📚 Table of Contents

  1. 5.1 Introduction
  2. 5.2 Bubble Sort
  3. 5.3 Selection Sort
  4. 5.4 Insertion Sort
  5. 5.5 Time Complexity of Algorithms
  6. Summary
  7. Exercise / Important Questions
  8. Quick Revision
  9. Final Revision Checklist
verakworld.com

📖 Chapter Overview

Sorting is the process of ordering or arranging a given collection of elements in some particular order. Numbers can be arranged in ascending or descending order. Strings can be arranged alphabetically or according to their length.

Examples given in the textbook include words in a dictionary being arranged alphabetically, examination seats being ordered according to candidates’ roll numbers, and a list of students being sorted based on height or weight.

Why is sorting useful?
A sorted collection makes searching easier. The textbook uses the example of a dictionary: finding a word in an unordered dictionary would require searching page by page, whereas alphabetical ordering makes the search process easier.

Sorting a large number of items can require substantial time. This extra time, called overhead, can nevertheless be worthwhile compared with the time required to find an element in an unsorted list.

This chapter discusses three sorting methods and their implementation using Python: Bubble Sort, Selection Sort and Insertion Sort.

verakworld.com

5.1 Introduction

Sorting: Sorting is the process of ordering or arranging a given collection of elements in some particular order.

Ways of Sorting Mentioned in the Chapter

  • Numbers can be sorted in ascending (increasing) order.
  • Numbers can be sorted in descending (decreasing) order.
  • Strings can be sorted alphabetically from a-z or z-a.
  • Strings can also be sorted according to their length.
  • Words in a dictionary are sorted alphabetically.
  • Examination seats can be ordered according to candidates’ roll numbers.
  • A list of students can be sorted based on height or weight.
⭐ Exam Point: Remember the definition of sorting and the examples used to explain why sorted data is useful.
verakworld.com

5.2 Bubble Sort

Bubble Sort: Bubble sort sorts a given list by repeatedly comparing adjacent elements and swapping them if they are unordered.

Meaning of Swapping

Swapping two elements means changing their positions with each other.

Pass

In the algorithm, every iteration through each element of a list is called a pass.

Number of Passes

For a list containing n elements, bubble sort makes a total of n − 1 passes to sort the list.

Working of Bubble Sort

  1. Adjacent elements are compared.
  2. For ascending order, if the first element is bigger than the second, they are swapped.
  3. If they are already in the correct order, no change is made.
  4. The comparisons continue until the end of the list is reached.
  5. After each pass, the largest element reaches its correct position at the end.
  6. The largest element is said to be “bubbled up”.
  7. The sorted element is not considered in the remaining passes.
  8. Therefore, the list of elements considered becomes smaller in successive passes.
⭐ Exam Point: For ascending Bubble Sort, compare adjacent elements and swap them when the left element is greater than the right element.
verakworld.com
Figure 5.1 — Comparisons done in different passes of Bubble Sort

numList:

8 7 13 1 -9 4
012345

Comparison in Pass 1

87131-94
↓ Swap
78131-94
↓ No Change
78131-94
↓ Swap
78113-94
↓ Swap
781-9134
↓ Swap
781-9413

Comparison in Pass 2

781-9413
↓ No Change
781-9413
↓ Swap
718-9413
↓ Swap
71-98413
↓ Swap
71-94813

Comparison in Pass 3

71-94813
↓ Swap
17-94813
↓ Swap
1-974813
↓ Swap
1-947813

Comparison in Pass 4

1-947813
↓ Swap
-9147813
↓ No Change
-9147813
Elements being compared
Elements already sorted
verakworld.com

Important Observation from Figure 5.1

The list becomes sorted in the 4th pass itself. However, the normal bubble sort technique performs a redundant 5th pass, which does not result in any swap.

Important: If there is no swapping in a pass, it means that the list is already sorted. Therefore, the sorting operation can be stopped.

Algorithm 5.1: Bubble Sort

BUBBLESORT( numList, n)
Step 1: SET i = 0
Step 2: WHILE i< n REPEAT STEPS 3 to 8
Step 3: SET j = 0
Step 4: WHILE j< n-i-1,REPEAT STEPS 5 to 7
Step 5: IF numList[j] > numList[j+1] THEN
Step 6: swap(numList[j],numList[j+1])
Step 7: SET j=j+1
Step 8: SET i=i+1
verakworld.com

💻 Program 5-1 — Implementation of Bubble Sort using Python

def bubble_Sort(list1):
    n = len(list1)
    for i in range(n): # Number of passes
        for j in range(0, n-i-1): 
            # size -i-1 because last i elements are already sorted 
            #in previous passes
            if list1[j] > list1[j+1] : 
                # Swap element at jth position with (j+1)th position
                list1[j], list1[j+1] = list1[j+1], list1[j]

numList = [8, 7, 13, 1, -9, 4]
bubble_Sort(numList)
Output:
The sorted list is :
-9 1 4 7 8 13
⭐ Exam Point: Preserve the nested-loop structure and the swapping statement when studying the Bubble Sort program.
verakworld.com

Activity 5.1

Algorithm 5.1 sorts a list in ascending order. Write a bubble sort algorithm to sort a list in descending order.

verakworld.com

Activity 5.2

Apply bubble sort technique to sort a list of elements: numList2 = [8, 7, 6, 5, 4]. Show the positions of elements in the list after each pass. In which pass does the last swap happen?

verakworld.com

5.3 Selection Sort

Selection Sort: Selection sort is a sorting technique in which the list is divided into a sorted part and an unsorted part. For ascending order, the smallest element from the unsorted part is selected and swapped with the leftmost element of the unsorted part.

Basic Structure

Part Description
Left list Contains the sorted elements.
Right list Contains the unsorted elements.
Initially The left list is empty and the right list contains all elements.

Number of Passes

For a list containing n elements, selection sort makes n − 1 passes.

Working in Ascending Order

  1. In the first pass, traverse all elements in the unsorted list.
  2. Find the smallest element.
  3. Swap it with the leftmost element of the unsorted list.
  4. The selected element becomes the first element of the sorted list.
  5. It is not considered in further passes.
  6. In the second pass, find the next smallest element from the remaining unsorted elements.
  7. Swap it with the leftmost element of the unsorted list.
  8. Continue until n − 1 smallest elements are found and placed.
  9. The nth element is the last element and is already in its place.
⭐ Exam Point: Selection Sort repeatedly selects the smallest element from the unsorted portion and places it at the beginning of that portion.
verakworld.com
Figure 5.2 — Comparisons done in different passes of Selection Sort

numList:

8 7 13 1 -9 4

Comparison in Pass 1

87131-94
↓ Compare
87131-94
↓ Compare
87131-94
↓ Compare
87131-94
↓ Smallest = -9
-9871314

Comparison in Pass 2

-9871314
↓ Compare
-9871314
↓ Compare
-9871314
↓ Smallest = 1
-9171384

Comparison in Pass 3

-9171384
↓ Compare
-9171384
↓ Smallest = 4
-9141387

Comparison in Pass 4

-9141387
↓ Compare
-9141387
↓ Compare
-9141387
↓ Smallest = 7
-9147813

Comparison in Pass 5

-9147813
-9147813
Elements being compared
Elements in sorted list
verakworld.com

Algorithm 5.2: Selection Sort

SELECTIONSORT( numList, n)
Step 1: SET i=0
Step 2: WHILE i< n REPEAT STEPS 3 to 11
Step 3: SET min = i, flag = 0
Step 4: SET j= i+1
Step 5: WHILE j<n, REPEAT STEPS 6 to 10
Step 6: IF numList[j] < numList[min] THEN
Step 7: min = j
Step 8: flag = 1
Step 9: IF flag = 1 THEN
Step 10: swap(numList[i],numList[min])
Step 11: SET i=i+1
⭐ Exam Point: Know the roles of min, flag, the nested traversal and the swap operation.
verakworld.com

💻 Program 5-2 — Implementation of Selection Sort using Python

def selection_Sort(list2):
    flag = 0     #to decide when to swap
    n=len(list2)
    for i in range(n): # Traverse through all list elements
        min = i
        for j in range(i + 1, len(list2)):    #the left elements
        #are already sorted in previous passes
            if list2[j] < list2[min]: # element at j is smaller
            #than the current min element
                min = j
                flag = 1
        if flag == 1 :     # next smallest element is found
            list2[min], list2[i] = list2[i], list2[min]

numList = [8, 7, 13, 1, -9, 4]
selection_Sort(numList)
print ("The sorted list is :")
for i in range(len(numList)):
    print (numList[i], end=" ")
Output:
The sorted list is :
-9 1 4 7 8 13
verakworld.com

Activity 5.3

Consider a list of 10 elements:

randList = [7,11,3,10,17,23,1,4,21,5]

Determine the partially sorted list after four complete passes of selection sort.

verakworld.com

5.4 Insertion Sort

Insertion Sort: Insertion sort is a sorting algorithm that can arrange elements of a given list in ascending or descending order. The list is divided into sorted and unsorted parts, and each element from the unsorted part is inserted into its appropriate position in the sorted list.

Working of Insertion Sort

  • The list is divided into a sorted part and an unsorted part.
  • Elements from the unsorted list are considered one by one.
  • Each element is inserted into its appropriate position in the sorted list.
  • In each pass, the sorted list is traversed from the backward direction to find the insertion position.
  • If the element to be inserted is smaller than an element in the sorted list, that element is shifted towards the right.
  • The shifting creates space for the new element.
  • The process continues until all elements in the unsorted list have been inserted.
  • The final result is a sorted list arranged in ascending order.

Pass 1

The unsorted list has n − 1 elements and the sorted list has a single element. The first unsorted element is compared with the sorted element. If it is smaller, the sorted element is shifted to the right and the new element is inserted.

Subsequent Passes

The first element of the unsorted list is compared with the elements of the sorted list starting from the backward direction until the appropriate position for insertion is found. The sorted elements are shifted towards the right to create space for the element.

⭐ Exam Point: Insertion Sort can be remembered as inserting each unsorted element into its correct position in the already sorted part.
verakworld.com
Figure 5.3 — Comparisons done in different passes of Insertion Sort

numList:

8 7 13 1 -9 4

Comparison in Pass 1

87131-94
↓ Swap
78131-94
78131-94

Comparison in Pass 2

78131-94
↓ No Change
78131-94

Comparison in Pass 3

78131-94
↓ Shift
78113-94
↓ Shift
71813-94
↓ Insert
17813-94

Comparison in Pass 4

17813-94
↓ Shift
178-9134
↓ Shift
17-98134
↓ Shift
1-978134
↓ Insert
-9178134

Comparison in Pass 5

-9178134
↓ Shift and Insert
-9178413
-9174813
↓ Insert
-9147813
verakworld.com

Algorithm 5.3: Insertion Sort

INSERTIONSORT( numList, n)
Step 1: SET i=1 
Step 2: WHILE i< n REPEAT STEPS 3 to 9
Step 3: temp = numList[i]
Step 4: SET j = i-1
Step 5: WHILE j> = 0 and numList[j]>temp,REPEAT 
STEPS 6 to 7
Step 6: numList[j+1] = numList[j] 
Step 7: SET j=j-1
Step 8: numList[j+1] = temp #insert 
temp at position j
Step 9: set i=i+1
verakworld.com

💻 Program 5-3 — Implementation of Insertion Sort using Python

def insertion_Sort(list3):
    n= len(list3)
    for i in range(n): # Traverse through all elements
        temp = list3[i]
        j = i-1
        while j >=0 and temp< list3[j] :
            list3[j+1] = list3[j] 
            j = j-1
        list3[j+1] = temp

numList = [8, 7, 13, 1, -9, 4]
insertion_Sort(numList)
print (“The sorted list is :”)
for i in range(len(numList)):
    print (numList[i], end=" ")
Output:
The sorted list is :
-9 1 4 7 8 13
⭐ Exam Point: Insertion Sort uses a temporary element and shifts larger elements toward the right before inserting the temporary element.
verakworld.com

Activity 5.4

Consider a list of 10 elements:

Array = [7,11,3,10,17,23,1,4,21,5]

Determine the partially sorted list after three complete passes of insertion sort.

verakworld.com

5.5 Time Complexity of Algorithms

Time Complexity: The amount of time an algorithm takes to process a given data can be called its time complexity.

There can be more than one approach to solve a problem using a computer. Different algorithms for the same problem may require different amounts of processing time.

For a small set of data elements, the difference in time and memory required by different algorithms may not be significant. However, sorting algorithms may have to work with huge amounts of data in real-world situations. In such cases, total time utilisation becomes significant.

Therefore, it is important to consider the time complexity of an algorithm before using it for a real-world data set.

Computer scientists study time complexity to understand how a sorting algorithm behaves when the order of input elements changes or when the number of elements increases or decreases.

Basic Rules for Estimating Time Complexity

Structure of Algorithm Time Complexity Type
No loop 1 Constant time algorithm
A loop, usually 1 to n n Linear time algorithm
A loop within a loop (nested loop) Quadratic time algorithm
A nested loop and also a single loop Estimated based on the nested loop Based on the nested-loop complexity

Time Complexity of the Three Sorting Algorithms

The Python programs of Bubble Sort, Selection Sort and Insertion Sort each contain a nested loop. According to the rules given in the textbook, all three sorting algorithms have a time complexity of .

Sorting Algorithm Time Complexity
Bubble Sort
Selection Sort
Insertion Sort
⭐ Very Important for Exam: Bubble Sort, Selection Sort and Insertion Sort have time complexity according to the basic complexity rules presented in the textbook.
verakworld.com

📌 Summary

  • Sorting is the process of placing or rearranging a collection of elements into a particular order.
  • Bubble Sort is the simplest sorting algorithm that repeatedly swaps adjacent elements when they are unordered in n−1 passes.
  • In Selection Sort, the smallest element is selected from the unsorted array and swapped with the leftmost element.
  • Insertion Sort places an element of a list at its suitable place in each pass. It is similar to placing cards at their right position while playing cards.
  • Complexity analysis is performed to explain how an algorithm will perform when the input grows larger.
verakworld.com

❓ Questions & Answers

1-Mark Questions

1 Mark
1. What is sorting?
Sorting is the process of ordering or arranging a given collection of elements in some particular order.
1 Mark
2. What is a pass in Bubble Sort?
Every iteration through each element of a list in the algorithm is called a pass.
1 Mark
3. How many passes does Bubble Sort make for n elements?
Bubble Sort makes n − 1 passes.
1 Mark
4. What is swapping?
Swapping two elements means changing their positions with each other.
1 Mark
5. What is time complexity?
The amount of time an algorithm takes to process a given data is called its time complexity.
1 Mark
6. What is the time complexity of Bubble Sort, Selection Sort and Insertion Sort according to the chapter?
n².

2-Mark Questions

2 Marks
1. Explain Bubble Sort.
Bubble Sort repeatedly compares adjacent elements and swaps them if they are unordered. In ascending order, the largest element reaches the end after each pass and is therefore considered to be “bubbled up”.
2 Marks
2. What are the two lists considered in Selection Sort?
The list is considered to be divided into a left list containing sorted elements and a right list containing unsorted elements. Initially, the left list is empty and the right list contains all elements.
2 Marks
3. Explain the basic idea of Insertion Sort.
The list is divided into sorted and unsorted parts. Each element of the unsorted part is considered one by one and inserted into its appropriate position in the sorted part. Larger elements are shifted towards the right to make space.
2 Marks
4. What are constant, linear and quadratic time algorithms?
An algorithm without a loop has time complexity 1 and is called a constant time algorithm. An algorithm with a loop generally has time complexity n and is called a linear time algorithm. A nested loop has time complexity n² and is called a quadratic time algorithm.

3-Mark Questions

3 Marks
1. Explain the working of Bubble Sort for ascending order.
Adjacent elements are compared. If the first element is bigger than the second, they are swapped. The comparison continues until the end of the list. After each pass, the largest element reaches its correct position at the end. The sorted element is not considered in the remaining passes.
3 Marks
2. Explain the working of Selection Sort.
Initially the sorted list is empty and the unsorted list contains all elements. The smallest element is selected from the unsorted list and swapped with its leftmost element. The selected element becomes part of the sorted list. The process continues until n−1 smallest elements are placed.
3 Marks
3. Explain the working of Insertion Sort.
The list is divided into sorted and unsorted portions. An element from the unsorted portion is selected and compared with the sorted portion from backward direction. Larger elements are shifted right and the selected element is inserted into its appropriate position.

4/5-Mark Questions

4/5 Marks
1. Write the algorithm for Bubble Sort.
Refer to Algorithm 5.1 given in the chapter and reproduce the steps in the correct order.
4/5 Marks
2. Write a Python program to implement Bubble Sort.
Refer to Program 5-1 in this chapter.
4/5 Marks
3. Write the algorithm for Selection Sort.
Refer to Algorithm 5.2 given in the chapter.
4/5 Marks
4. Write a Python program to implement Selection Sort.
Refer to Program 5-2 in this chapter.
4/5 Marks
5. Write the algorithm for Insertion Sort.
Refer to Algorithm 5.3 given in the chapter.
4/5 Marks
6. Write a Python program to implement Insertion Sort.
Refer to Program 5-3 in this chapter.
verakworld.com

📊 Important Differences

Basis Bubble Sort Selection Sort Insertion Sort
Basic idea Repeatedly compares adjacent elements and swaps unordered elements. Selects the smallest element from the unsorted list and swaps it into position. Inserts an unsorted element into its appropriate position in the sorted list.
Parts of list Sorted elements at the end are excluded from later passes. Left part is sorted and right part is unsorted. List is divided into sorted and unsorted parts.
Important operation Adjacent comparison and swapping. Finding the smallest element and swapping. Shifting and inserting.
Time complexity in this chapter
verakworld.com

📝 Important Questions

1 Mark

  1. Define sorting.
  2. What is swapping?
  3. What is a pass?
  4. How many passes does Bubble Sort make for n elements?
  5. What is time complexity?
  6. What is a constant time algorithm?
  7. What is a linear time algorithm?
  8. What is a quadratic time algorithm?
verakworld.com

2 Marks

  1. Explain why sorting is useful.
  2. Explain Bubble Sort.
  3. Explain the sorted and unsorted lists in Selection Sort.
  4. Explain the basic idea of Insertion Sort.
  5. Explain the basic rules for estimating time complexity.
verakworld.com

3 Marks

  1. Explain the working of Bubble Sort.
  2. Explain the working of Selection Sort.
  3. Explain the working of Insertion Sort.
  4. Explain the importance of time complexity.
verakworld.com

4/5 Marks

  1. Write Algorithm 5.1 for Bubble Sort.
  2. Write the Python program for Bubble Sort.
  3. Write Algorithm 5.2 for Selection Sort.
  4. Write the Python program for Selection Sort.
  5. Write Algorithm 5.3 for Insertion Sort.
  6. Write the Python program for Insertion Sort.
  7. Explain the time complexity rules discussed in the chapter.
verakworld.com

📘 Textbook Exercise

Exercise 1
Consider a list of 10 elements: numList = [7,11,3,10,17,23,1,4,21,5]. Display the partially sorted list after three complete passes of Bubble Sort.
Exercise 2
Identify the number of swaps required for sorting the following list using selection sort and bubble sort and identify which is the better sorting technique with respect to the number of comparisons.

List 1: 63 42 21 9

Exercise 3
Consider the following lists:

List 1: 2 3 5 7 11

List 2: 11 7 5 3 2

If the lists are sorted using Insertion Sort then which of the lists List 1 or List 2 will make the minimum number of comparisons? Justify using diagrammatic representation.

Exercise 4
Write a program using user defined functions that accepts a List of numbers as an argument and finds its median.

Hint: Use bubble sort to sort the accepted list. If there are odd number of terms, the median is the center term. If there are even number of terms, add the two middle terms and divide by 2 to get median.

Exercise 5
All the branches of XYZ school conducted an aptitude test for all the students in the age group 14–16. There were a total of n students. The marks of n students are stored in a list. Write a program using a user defined function that accepts a list of marks as an argument and calculates the xth percentile, where x is any number between 0 and 100.

Note: Percentile is a measure of relative performance. It is calculated based on a candidate’s performance with respect to others. For example, if a candidate’s score is in the 90th percentile, that means she/he scored better than 90% of people who took the test.

Steps to Calculate the xth Percentile

  1. Order all the values in the data set from smallest to largest using Selection Sort. In general, any of the sorting methods can be used.
  2. Calculate index by multiplying x percent by the total number of values, n.
  3. Ensure that the index is a whole number by using math.round().
  4. Display the value at the index obtained in Step 3. The corresponding value in the list is the xth percentile.

Example given: To find 90th percentile for 120 students:

0.90*120 = 108
Exercise 6
During admission in a course, the names of the students are inserted in ascending order. Thus, performing the sorting operation at the time of inserting elements in a list. Identify the type of sorting technique being used and write a program using a user defined function that is invoked every time a name is input and stores the name in ascending order of names in the list.
verakworld.com

⚡ Quick Revision

Important Definitions

  • Sorting: Ordering or arranging a collection of elements in a particular order.
  • Swapping: Changing the positions of two elements.
  • Pass: Every iteration through each element of a list.
  • Time Complexity: Amount of time an algorithm takes to process given data.
verakworld.com

Important Terms

  • Ascending order
  • Descending order
  • Adjacent elements
  • Sorted list
  • Unsorted list
  • Pass
  • Swap
  • Nested loop
  • Constant time
  • Linear time
  • Quadratic time
verakworld.com

Important Concepts

  • Bubble Sort repeatedly compares adjacent elements.
  • Selection Sort selects the smallest element.
  • Insertion Sort inserts an element into its suitable position.
  • All three sorting programs contain nested loops.
  • The chapter gives n² as the time complexity of all three sorting algorithms.
verakworld.com

Important Formulas / Values

  • Bubble Sort passes for n elements = n − 1
  • Selection Sort passes for n elements = n − 1
  • Constant time = 1
  • Linear time = n
  • Quadratic time =
  • Bubble Sort =
  • Selection Sort =
  • Insertion Sort =
verakworld.com

Important Algorithms

  • Algorithm 5.1 — Bubble Sort
  • Algorithm 5.2 — Selection Sort
  • Algorithm 5.3 — Insertion Sort
verakworld.com

Important Programs

  • Program 5-1 — Bubble Sort using Python
  • Program 5-2 — Selection Sort using Python
  • Program 5-3 — Insertion Sort using Python
verakworld.com

Important Figures

  • Figure 5.1 — Bubble Sort comparisons
  • Figure 5.2 — Selection Sort comparisons
  • Figure 5.3 — Insertion Sort comparisons
verakworld.com

Exam Focus

  • Definitions of sorting and time complexity
  • Working of all three sorting techniques
  • Algorithms 5.1, 5.2 and 5.3
  • Python programs 5-1, 5-2 and 5-3
  • Time complexity rules
  • Textbook exercises and activities
verakworld.com

💻 Important Syntax & Code Revision

Bubble Sort — Key Code Structure

for i in range(n):
    for j in range(0, n-i-1):
        if list1[j] > list1[j+1]:
            list1[j], list1[j+1] = list1[j+1], list1[j]
verakworld.com

Selection Sort — Key Code Structure

for i in range(n):
    min = i
    for j in range(i + 1, len(list2)):
        if list2[j] < list2[min]:
            min = j
verakworld.com

Insertion Sort — Key Code Structure

temp = list3[i]
j = i-1
while j >=0 and temp< list3[j]:
    list3[j+1] = list3[j]
    j = j-1
list3[j+1] = temp
verakworld.com

🚀 Final Revision

Last-Minute Revision Checklist

  • Sorting → arranging elements in a particular order.
  • Bubble Sort → adjacent comparison + swapping.
  • Bubble Sort → n−1 passes.
  • Selection Sort → select smallest element from unsorted list.
  • Selection Sort → n−1 passes.
  • Insertion Sort → insert element into suitable position.
  • Insertion Sort → sorted and unsorted parts.
  • Time Complexity → time taken by an algorithm to process given data.
  • No loop → 1 → Constant time.
  • Single loop → n → Linear time.
  • Nested loop → n² → Quadratic time.
  • Bubble Sort → n².
  • Selection Sort → n².
  • Insertion Sort → n².
  • Revise Algorithms 5.1, 5.2 and 5.3.
  • Revise Programs 5-1, 5-2 and 5-3.
  • Revise Figures 5.1, 5.2 and 5.3.
  • Practise the textbook activities and exercises.
🎯 Board-Exam Focus: Be prepared to define, explain, compare and write algorithms/programs for Bubble Sort, Selection Sort and Insertion Sort, along with the basic time complexity rules given in this chapter.
verakworld.com

2nd PUC / Class 12 Computer Science — Chapter 5: Sorting

Complete Short Notes & Exam Preparation Guide

Based on the NCERT textbook PDF.

verakworld.com

Leave a Comment