[PR #1529] [CLOSED] Add Min Binary Heap implementation in C #2138

Open
opened 2026-01-29 15:29:23 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/1529
Author: @ABHIRANJAN-KUMAR1
Created: 11/14/2025
Status: Closed

Base: masterHead: min-binary-heap


📝 Commits (1)

  • 096b376 Add Min Binary Heap implementation

📊 Changes

1 file changed (+134 additions, -0 deletions)

View changed files

data_structures/heap/MinBinaryHeap.c (+134 -0)

📄 Description

Description of Change

This Pull Request adds a Min Binary Heap implementation in C under the data_structures/heap directory.

The Min Binary Heap is a tree-based data structure that keeps the smallest element at the root, enabling efficient retrieval of the minimum element in O(1) time.
This implementation supports the following operations: insertion (with heapify-up), extraction of the minimum element (with heapify-down), search (linear), and display of elements in array order. It also includes dynamic memory management and accepts user input for inserting multiple elements.

This contribution is part of Hacktoberfest 2025.

References

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass (You may add tests later if needed)
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:
Added user-input driven Min Binary Heap implementation in C for efficient minimum element retrieval and heap operations.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/1529 **Author:** [@ABHIRANJAN-KUMAR1](https://github.com/ABHIRANJAN-KUMAR1) **Created:** 11/14/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `min-binary-heap` --- ### 📝 Commits (1) - [`096b376`](https://github.com/TheAlgorithms/C/commit/096b376e2d5b10306960a5292e3e98125b4bb2ae) Add Min Binary Heap implementation ### 📊 Changes **1 file changed** (+134 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `data_structures/heap/MinBinaryHeap.c` (+134 -0) </details> ### 📄 Description #### Description of Change This Pull Request adds a Min Binary Heap implementation in C under the `data_structures/heap` directory. The Min Binary Heap is a tree-based data structure that keeps the smallest element at the root, enabling efficient retrieval of the minimum element in O(1) time. This implementation supports the following operations: insertion (with heapify-up), extraction of the minimum element (with heapify-down), search (linear), and display of elements in array order. It also includes dynamic memory management and accepts user input for inserting multiple elements. This contribution is part of Hacktoberfest 2025. #### References - Related discussions: #<issue_number_if_any> - Similar implementations: max_heap.c in the same directory - Official contributor guidelines: https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md #### Checklist - [x] Added description of change - [x] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#File-Name-guidelines) - [ ] Added tests and example, test must pass *(You may add tests later if needed)* - [x] Relevant documentation/comments is changed or added - [x] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#Commit-Guidelines) - [x] Search previous suggestions before making a new one, as yours may be a duplicate. - [x] I acknowledge that all my contributions will be made under the project's license. Notes: Added user-input driven Min Binary Heap implementation in C for efficient minimum element retrieval and heap operations. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:29:23 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#2138