Changeset 3922 for branches/f4grobner
- Timestamp:
- 2016-05-29T21:59:49-07:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/pair-queue.lisp
r3921 r3922 53 53 first second)))) 54 54 55 56 (defun make-pair-queue () 55 (defun make-pair-queue (pair-key-fn pair-order-fn) 57 56 "Constructs a priority queue for critical pairs." 58 57 (make-priority-queue 59 :element-type ' pair60 :element-key #'(lambda (pair) (funcall *pair-key-function* (pair-first pair) (pair-second pair)))61 :test *pair-order*))58 :element-type 'critical-pair 59 :element-key #'(lambda (pair) (funcall pair-key-fn (critical-pair-first pair) (critical-pair-second pair))) 60 :test pair-order-fn)) 62 61 63 62 (defun pair-queue-initialize (pq f start … … 87 86 (priority-queue-empty-p b)) 88 87 89 (defun set-pair-heuristic (method) 90 "Sets up variables *PAIR-KEY-FUNCTION* and *PAIR-ORDER* used 91 to determine the priority of critical pairs in the priority queue." 88 (defclass selection-strategy () 89 (:documentation "Sets up variables *PAIR-KEY-FUNCTION* and *PAIR-ORDER* used 90 to determine the priority of critical pairs in the priority queue.") 91 ((pair-key-fn :initform nil :accessor pair-key-fn) 92 (pair-order-fn :initform nil : 93 92 94 (ecase method 93 95 ((minimal-lcm :minimal-lcm $minimal_lcm)
Note:
See TracChangeset
for help on using the changeset viewer.