It is the week before the paper. You remember that binary search is "log n" and that quick sort is fast "usually". But is quick sort stable? Does Dijkstra survive a negative edge? What must you show before a problem counts as NP-complete? You studied it all once, and the details have gone soft.
This sheet gives the course back in about twenty-five minutes. Read a block, and when a line feels unfamiliar, tap its link and re-read that part of the lesson. Each part ends with a short check, to see what stayed. The sheet only recalls; the lessons teach.
Why it matters: Algorithms is a steady part of the bank, BCS and BPSC ICT papers. The past questions our fourteen lessons cite come to 253 (104 MCQ and 149 written), from 137 papers between 2013 and 2026, and 73 of them are from papers of 2024 or later. They are not spread evenly, and Part 4 shows where they cluster.
Question (49th BCS Written (Special); Subject Code: ICT-281; Exam: 10.10.2025): In the worst case, the number of comparisons in the Insertion sort algorithm is:
a) n(n+1)
b) n logₑ n
c) n(n-1)/2
d) n(n-1)/4