[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/heap 03a876d 02/31: Version 0.2 of the predictive compl
From: |
Stefan Monnier |
Subject: |
[elpa] externals/heap 03a876d 02/31: Version 0.2 of the predictive completion package. |
Date: |
Mon, 14 Dec 2020 12:13:32 -0500 (EST) |
branch: externals/heap
commit 03a876dbca2be98112d01bd32815e6187cc1e602
Author: Toby Cubitt <toby-predictive@dr-qubit.org>
Commit: Toby Cubitt <toby-predictive@dr-qubit.org>
Version 0.2 of the predictive completion package.
---
heap.el | 79 +++++++++++++++++++++++++++++++++++++++--------------------------
1 file changed, 47 insertions(+), 32 deletions(-)
diff --git a/heap.el b/heap.el
index 648caa3..7b8cb73 100644
--- a/heap.el
+++ b/heap.el
@@ -1,39 +1,51 @@
-;;; Copyright (C) 2004 Toby Cubitt
-;;;
-;;; This file is part of the Emacs Predictive Completion package.
-;;;
-;;; The Emacs Predicive Completion package is free software; you can
-;;; redistribute it and/or modify it under the terms of the GNU
-;;; General Public License as published by the Free Software
-;;; Foundation; either version 2 of the License, or (at your option)
-;;; any later version.
-;;;
-;;; The Emacs Predicive Completion package is distributed in the hope
-;;; that it will be useful, but WITHOUT ANY WARRANTY; without even the
-;;; implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
-;;; PURPOSE. See the GNU General Public License for more details.
-;;;
-;;; You should have received a copy of the GNU General Public License
-;;; along with the Emacs Predicive Completion package; if not, write
-;;; to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
-;;; Boston, MA 02111-1307 USA
+;;; heap.el --- heap (a.k.a. priority queue) data structure package
+
+;; Copyright (C) 2004 Toby Cubitt
+
+;; Author: Toby Cubitt
+;; Version: 0.1
+;; Keywords: heap, priority queue
+
+;; This file is part of the Emacs Predictive Completion package.
+;;
+;; The Emacs Predicive Completion package is free software; you can
+;; redistribute it and/or modify it under the terms of the GNU
+;; General Public License as published by the Free Software
+;; Foundation; either version 2 of the License, or (at your option)
+;; any later version.
+;;
+;; The Emacs Predicive Completion package is distributed in the hope
+;; that it will be useful, but WITHOUT ANY WARRANTY; without even the
+;; implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+;; PURPOSE. See the GNU General Public License for more details.
+;;
+;; You should have received a copy of the GNU General Public License
+;; along with the Emacs Predicive Completion package; if not, write
+;; to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+;; Boston, MA 02111-1307 USA
;;; Commentary:
-;;;
-;;; 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 and the compare
-;;; function in the cdr cell. The compare function must take two arguments of
-;;; the type which is to be stored in the heap and must return non-nil or
-;;; nil. To implement a max-heap, it should return non-nil if the first
-;;; argument is "greater" than the second. To implement a min-heap, it should
-;;; return non-nil if the first argument is "less than" the second.
-;;;
-;;; Note that this package implements a ternary heap, since ternary
-;;; heaps are about 12% more efficient than binary heaps for heaps
-;;; containing more than about 10 elements. And for very small heaps,
-;;; the difference is negligable.
+;;
+;; 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 and the compare
+;; function in the cdr cell. The compare function must take two arguments of
+;; the type which is to be stored in the heap and must return non-nil or
+;; nil. To implement a max-heap, it should return non-nil if the first
+;; argument is "greater" than the second. To implement a min-heap, it should
+;; return non-nil if the first argument is "less than" the second.
+;;
+;; Note that this package implements a ternary heap, since ternary
+;; heaps are about 12% more efficient than binary heaps for heaps
+;; containing more than about 10 elements. And for very small heaps,
+;; the difference is negligable.
+
+
+;;; Change log:
+;;
+;; version 0.1: initial release
+
;;; Code:
@@ -241,3 +253,6 @@ Note that only the match highest up the heap is modified."
)
)
)
+
+
+;;; heap.el ends here
- [elpa] branch externals/heap created (now 32e75bb), Stefan Monnier, 2020/12/14
- [elpa] externals/heap 37bc0e9 05/31: Version 0.10 of the predictive completion package., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 03a876d 02/31: Version 0.2 of the predictive completion package.,
Stefan Monnier <=
- [elpa] externals/heap ceb5dd1 21/31: Trivial whitespace tidying., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 17429ee 07/31: Version 0.12 of the predictive completion package., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 55d47fd 11/31: Fixed ancient but overlooked bug in heap resizing in heap-add., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 9bcd8d3 16/31: Added heap-build function for efficiently building a heap out of a vector., Stefan Monnier, 2020/12/14
- [elpa] externals/heap ed90e4d 09/31: Adding missing 'buffer setting to customization menu for predictive-auto-add-to-dict., Stefan Monnier, 2020/12/14
- [elpa] externals/heap f74c766 15/31: Converted heap data structures to defstructs., Stefan Monnier, 2020/12/14
- [elpa] externals/heap e354b4f 19/31: Revert default heap size to 10., Stefan Monnier, 2020/12/14
- [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