CBSE Class 12 Computer Science – Sorting

Previous Chapter Next Chapter

Study Materials

12th

12th - Computer Science

Sorting

Chapter Overview

This chapter introduces the concept of sorting, which is the process of arranging data in a specific order (ascending or descending). Sorting is essential for efficient searching and data organization. The chapter focuses on three popular sorting algorithms—Bubble Sort, Insertion Sort, and Selection Sort—implemented in Python, along with their working principles and comparisons.

Important Keywords

  • Sorting: Arranging elements in a specified order (ascending/descending).
  • Bubble Sort: Repeatedly swaps adjacent elements if they are in the wrong order.
  • Selection Sort: Selects the minimum element and places it at the beginning.
  • Insertion Sort: Builds the final sorted list one item at a time by inserting it in the correct position.
  • Time Complexity: A measure of the time taken by an algorithm for input size n.
  • Stable Sort: Maintains relative order of equal elements.

Detailed Notes

to view full chapter (Sorting - Detailed Notes) resources.