NivaarExam PrepOfficial exam papers ↗

19-Soft-A1 Algorithms & Data Structures: May 2013

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

  1. Question 1 Linked Lists
  2. Question 2 Tree Implementation
  3. Question 3 Heap
  4. Question 4 Spanning Tree
  5. Question 5 Sorting
  6. Question 6 Design an Algorithm — Jerry's Cheapest Flight
  7. Question 7 Algorithm Concepts
  8. Question 8 Complexity

Start with Question 1 →

National Exams — May 2013 — 04-Soft-A1 Algorithms & Data Structures. Three-hour, closed-book exam (Casio or Sharp approved calculator only). Format: eight questions in two parts — candidates choose 4 of the first 5 (10 marks each) and must answer Q6, Q7 and Q8 (20 marks each), with Q7 itself asking for 5 of 6 sub-concepts. All eight questions, and all sub-parts within them, are solved below for completeness.

Reference texts: Cormen, Leiserson, Rivest & Stein, Introduction to Algorithms (3rd ed., MIT Press) — asymptotic analysis, heaps, graph algorithms, divide-and-conquer, NP-completeness; Sedgewick & Wayne, Algorithms (4th ed., Addison-Wesley) — linked-list and array data structures, sorting; Weiss, Data Structures and Algorithm Analysis in C (2nd ed., Pearson) — array-based binary trees and heaps.