Model Question Paper (as circulated)Part B · Q16a6 marksCO4Module 3
Question 16a
You are given k sorted linked lists. Your task is to merge them into one sorted list. Use a min-heap (priority queue) to optimize the merging process. Always insert the smallest available element into the result list by extracting it from the heap and then pushing the next element from the same source list, if it exists.
Transcription notes:
- Open-ended design/programming task beyond the syllabus wording.
Topics: Binary heaps and priority queues
Solution not published yet
We only publish answers that have been checked. Study the linked topic meanwhile.