Algorithms · অ্যালগরিদম


Sorting Algorithmsসর্টিং অ্যালগরিদম

Introduction

Sorting means arranging a collection of items into a specific order — usually ascending (smallest to largest) or descending (largest to smallest). It is one of the most fundamental operations in computer science: search becomes faster on sorted data (binary search needs sorted input), duplicates and ranges are easy to find, and many other algorithms use sorting as a building block.

For BCS, Bank IT, and IT-officer exams, sorting is a guaranteed favourite. Examiners test whether you know each algorithm's time complexity (best, average, worst), space complexity, whether it is stable and in-place, how the algorithm actually moves data step by step, and small trick facts (e.g. "which sort is best for nearly-sorted data?", "which is the fastest general comparison sort?"). This lesson builds every idea from first principles and drills the exact facts exams ask.

Learning objectives

  • Define sorting and the key properties used to classify sorts: stable/unstable, in-place/out-of-place, comparison/non-comparison.
  • Understand and hand-trace the classic sorts: Bubble, Selection, Insertion, Merge, Quick, Heap, plus the linear-time sorts Counting and Radix.
  • State the best, average, and worst-case time complexity and space complexity of each.
  • Know the Ω(n log n) lower bound for comparison sorts and why counting/radix can beat it.
  • Pick the right sort for a given scenario (small data, nearly sorted, memory-limited, need for stability).
  • Answer exam MCQs and short questions accurately, avoiding common traps.

Continue this lesson free: create an account

You have read the opening of this lesson. The full lesson (2,640 words, in English and Bangla) has worked examples, practice questions with answers and exam tips. A free account opens it and saves your progress.পুরো পাঠটি পড়তে বিনামূল্যে অ্যাকাউন্ট খুলুন।

More on this subject: Algorithms guide: syllabus by chapter and past questions

© 2026 ARBS Academy (Aether Brains). Questions' explanations, model answers and lessons are our original work; copying or republishing is not allowed.

© ২০২৬ এআরবিএস একাডেমি (Aether Brains)। প্রশ্নের ব্যাখ্যা, মডেল উত্তর ও লেসন আমাদের নিজস্ব কাজ; কপি বা পুনঃপ্রকাশ করা নিষেধ।