[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/heap 5ad96c3 14/31: Updated Package-Version, Package-Re
From: |
Stefan Monnier |
Subject: |
[elpa] externals/heap 5ad96c3 14/31: Updated Package-Version, Package-Requires, and Keywords package headers. |
Date: |
Mon, 14 Dec 2020 12:13:35 -0500 (EST) |
branch: externals/heap
commit 5ad96c39523603aa7b70e8a7e3d488c8844f28fb
Author: Toby S. Cubitt <toby-predictive@dr-qubit.org>
Commit: Toby S. Cubitt <toby-predictive@dr-qubit.org>
Updated Package-Version, Package-Requires, and Keywords package headers.
Made small changes to some Commentary sections.
---
heap.el | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/heap.el b/heap.el
index 2e6d6bc..50161d7 100644
--- a/heap.el
+++ b/heap.el
@@ -1,12 +1,12 @@
-;;; heap.el --- heap (a.k.a. priority queue) data structure package
+;;; heap.el --- heap (a.k.a. priority queue) data structures
;; Copyright (C) 2004-2006, 2008, 2012 Toby Cubitt
;; Author: Toby Cubitt <toby-predictive@dr-qubit.org>
;; Version: 0.2.2
-;; Keywords: heap, priority queue
+;; Keywords: extensions, data structures, heap, priority queue
;; URL: http://www.dr-qubit.org/emacs.php
@@ -37,18 +37,22 @@
;; node will return the data in order of increasing rank. They are often
;; used as priority queues, for scheduling tasks in order of importance.
;;
-;; This package implements a ternary heap, since they are about 12% more
+;; This package implements ternary heaps, since they are about 12% more
;; efficient than binary heaps for heaps containing more than about 10
-;; elements., and for very small heaps the difference is negligible. The
-;; asymptotic complexity of heap operations is the same as for a binary
-;; heap: `add', `delete-root' and `modify' are all O(log n) on a heap
-;; containing n elements.
+;; elements, and for very small heaps the difference is negligible. The
+;; asymptotic complexity of ternary heap operations is the same as for a
+;; binary heap: 'add', 'delete-root' and 'modify' operations are all
+;; O(log n) on a heap containing n elements.
;;
;; Note that this package implements a heap as an implicit data
;; structure on a vector. Therefore, the maximum size of the heap has to
;; be specified in advance. Although the heap will grow dynamically if
-;; it becomes full, this requires copying the entire heap, so
-;; over-filling the heap is O(n) instead of O(log n).
+;; it becomes full, this requires copying the entire heap, so insertion
+;; has worst-case complexity O(n) instead of O(log n), though the
+;; amortized complexity is still O(n). (For applications where the
+;; maximum size of the heap is not known in advance, an implementation
+;; based on binary trees might be more suitable, but is not currently
+;; implemented in this package.)
;;
;; A heap consists of two cons cells, the first one holding the tag
;; 'HEAP in the car cell and the second one having the heap in the car
@@ -62,14 +66,14 @@
;; You create a heap using `heap-create', add elements to it using
;; `heap-add', delete and return the root of the heap using
;; `heap-delete-root', and modify an element of the heap using
-;; `heap-modify'. A number of other convenience functions are also
+;; `heap-modify'. A number of other heap convenience functions are also
;; provided, all with the prefix `heap-'. Functions with prefix `heap--'
;; are for internal use only, and should never be used outside this
;; package.
;;
-;;; Change log:
+;;; Change Log:
;;
;; Version 0.2.2
;; * fixed bug in `heap-copy'
- [elpa] externals/heap e2c16be 06/31: Version 0.10.3 of the predictive completion package., (continued)
- [elpa] externals/heap e2c16be 06/31: Version 0.10.3 of the predictive completion package., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 75b42f4 04/31: Version 0.9.1 of the predictive completion package., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 2d51c84 01/31: Version 0.1 of the predictive completion package., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 227de61 03/31: Version 0.7 of the predictive completion package., Stefan Monnier, 2020/12/14
- [elpa] externals/heap da9637e 25/31: Added heap-clear function., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 4407826 22/31: More minor whitespace and commentary changes., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 7f5ab59 10/31: Add heap-root function., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 304c604 13/31: Fixed bug in heap-copy., Stefan Monnier, 2020/12/14
- [elpa] externals/heap fcf3edd 18/31: Added autoload cookies., Stefan Monnier, 2020/12/14
- [elpa] externals/heap a3ddd78 23/31: Remove ChangeLogs from library headers., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 5ad96c3 14/31: Updated Package-Version, Package-Requires, and Keywords package headers.,
Stefan Monnier <=
- [elpa] externals/heap 11738aa 12/31: Re-filled to 72 chars/line, for mailing to gnu-emacs-sources list, Stefan Monnier, 2020/12/14
- [elpa] externals/heap 596261c 28/31: Implement iterator generators on collection data structures., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 32e75bb 31/31: * heap.el: Fix first line format, Stefan Monnier, 2020/12/14
- [elpa] externals/heap 8a40ef4 08/31: Version 0.12.1 of the predictive completion package., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 8ece2ad 24/31: Enable lexical binding, and fix issues it picks up., Stefan Monnier, 2020/12/14
- [elpa] externals/heap aa998ae 20/31: Updated copyright attribution and license (GPL2 -> GPL3)., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 778a848 26/31: Bump version numbers and copyright years., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 10a68e6 29/31: Bump version numbers since we've added iterator generators., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 04de075 30/31: Tidy up unnecessary macros by making them into defsubst or defun., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 151a314 17/31: Added heap-merge function for merging heaps., Stefan Monnier, 2020/12/14