UNIVERSITY EXAMINATIONS · 2024/2025
YEAR III · SEMESTER II
CCS 3201: Data Structures & Algorithms
QUESTION ONE (30 MARKS)
a) Explain the difference between a stack and a queue, giving one real-world use of each. (6 marks)
comes every year!!
b) Insert 45, 12, 78, 3, 50 into an empty binary search tree. Show each step. (8 marks)
c) State the worst-case time complexity of quicksort and explain when it occurs. (6 marks)