An open API service indexing awesome lists of open source software.

https://github.com/almogtavor/mergeable-heap

Solutions to Introduction to Algorithms Third Edition 10-2 - mergeable heaps using linked lists
https://github.com/almogtavor/mergeable-heap

c clrs introduction-to-algorithms

Last synced: about 1 month ago
JSON representation

Solutions to Introduction to Algorithms Third Edition 10-2 - mergeable heaps using linked lists

Awesome Lists containing this project

README

          

# Mergeable heap using linked lists implementation in C

The solution to problem 10-2 from the book "Introduction to Algorithms" by CLRS.

The problem is:
```
A mergeable heap supports the following operations:
MAKE-HEAP (which creates an empty mergeable heap), INSERT, MINIMUM, EXTRACT-MIN, and UNION.
Show how to implement mergeable heaps using linked lists in each of the following cases.
Try to make each operation as efficient as possible.
Analyze the running time of each operation in terms of the size of the dynamic set(s) being operated on.

Lists are sorted.
Lists are unsorted.
Lists are unsorted, and dynamic sets to be merged are disjoint.```