Skip to content

feat(heap): add linear time bulk construction - #40

Merged
orxfun merged 3 commits into
mainfrom
feat(heap)--add-linear-time-bulk-construction
Aug 28, 2026
Merged

orxfun merged 3 commits into
mainfrom
feat(heap)--add-linear-time-bulk-construction

Conversation

@orxfun

@orxfun orxfun commented Aug 28, 2026

Copy link
Copy Markdown
Owner

Adds linear-time bulk construction for d-ary priority queues.

  • DaryHeap and DaryHeapWithMap implement FromIterator<(N, K)>.
  • DaryHeapOfIndices adds from_iter_with_index_bound.
  • Bottom-up heapification builds the heap in O(n) while preserving position tracking.
  • Adds tests for ordering and decrease-key position lookups.

@orxfun
orxfun force-pushed the feat(heap)--add-linear-time-bulk-construction branch from 31c1580 to 402361a Compare August 28, 2026 12:45
@orxfun
orxfun force-pushed the feat(heap)--add-linear-time-bulk-construction branch from 402361a to 5790dbd Compare August 28, 2026 12:50
@orxfun
orxfun merged commit 4b4791a into main Aug 28, 2026
2 checks passed
@orxfun
orxfun deleted the feat(heap)--add-linear-time-bulk-construction branch August 28, 2026 13:15
@github-actions github-actions Bot mentioned this pull request Aug 28, 2026
orxfun pushed a commit that referenced this pull request Aug 28, 2026
## 🤖 New release

* `orx-priority-queue`: 1.8.0 -> 1.9.0 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[1.9.0](v1.8.0...v1.9.0)
- 2026-08-28

### Added

- *(heap)* add linear time bulk construction
([#40](#40))

### Other

- Upgrade checkout action from v4 to v5
- Update GitHub Actions checkout action version
- *(release)* automate crate releases
([#41](#41))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant