- Timestamp:
- 2016-05-29T23:33:00-07:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/pair-queue.lisp
r3932 r3933 76 76 with the minimal LCM of leading monomials is selected.")) 77 77 78 (defclass min-total-degree-strategy (selection-strategy) 79 ((pair-key-fn :initform #'(lambda (p q) (total-degree (universal-lcm (leading-monomial p) (leading-monomial q))))) 80 (pair-order* #'<)) 81 (:documentation "Make a selection strategy where a pair with a 82 minimum total degree of LCM of leading monomials is selected.")) 83 84 (defclass minimal-length-strategy (selection-strategy) 85 ((pair-key-fn #'(lambda (p q) (+ (poly-length p) (poly-length q)))) 86 (pair-order #'<)) 87 (:documentation "Make a selection strategy where a pair with the minimum combined length of both 88 polynomials is selected.")) 89 90 78 91 79 92 (defclass critical-pair-queue () … … 111 124 112 125 113 (defun make-min-total-degree-strategy ()114 "Make a selection strategy where a pair with a minimum total degree of LCM115 of leading monomials is selected."116 (make-instance 'selection-strategy117 :pair-key-fn #'(lambda (p q) (total-degree (universal-lcm (leading-monomial p) (leading-monomial q))))118 :pair-order* #'<))119 126 120 (defun make-minimal-length-strategy ()121 "Make a selection strategy where a pair with the minimum combined length of both122 polynomials is selected."123 (make-instance 'selection-strategy124 :pair-key-fn #'(lambda (p q) (+ (poly-length p) (poly-length q)))125 :pair-order #'<))126
Note:
See TracChangeset
for help on using the changeset viewer.