Skip to content

Commit

Permalink
Merge pull request #457 from gmevel/linear-heap-building
Browse files Browse the repository at this point in the history
Improvements to CCHeap
  • Loading branch information
c-cube authored Oct 2, 2024
2 parents 3efaa02 + 3c530f4 commit afb93cf
Show file tree
Hide file tree
Showing 5 changed files with 704 additions and 289 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## main

- `CCHeap`: building a heap from an almost-sorted sequence
- perf: `CCHeap`: building a heap from n elements is now in time O(n)
instead of O(n log n)
- perf: `CCHeap`: `filter` and `delete_all` are now in time O(n)
instead of O(n log n), and they ensure physical equality
(for `delete_all` this is a bugfix)

## 3.14


Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ val h' : IntHeap.t = <abstr>
val x : int = 2
# IntHeap.to_list h' (* see, 2 is removed *);;
- : int list = [4; 6; 8; 10]
- : int list = [4; 8; 10; 6]
```

### IO helpers
Expand Down
Loading

0 comments on commit afb93cf

Please sign in to comment.