close Warning: Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.

Changeset 161 for branches


Ignore:
Timestamp:
2015-06-05T13:38:54-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/grobner.lisp

    r135 r161  
    193193(defun reduced-grobner (ring f &optional (start 0) (top-reduction-only $poly_top_reduction_only))
    194194  (reduction ring (grobner ring f start top-reduction-only)))
    195 
    196 (defun set-pair-heuristic (method)
    197   "Sets up variables *PAIR-KEY-FUNCTION* and *PAIR-ORDER* used
    198 to determine the priority of critical pairs in the priority queue."
    199   (ecase method
    200     ((sugar :sugar $sugar)
    201      (setf *pair-key-function* #'sugar-pair-key
    202            *pair-order* #'sugar-order))
    203 ;     ((minimal-mock-spoly :minimal-mock-spoly $minimal_mock_spoly)
    204 ;      (setf *pair-key-function* #'mock-spoly
    205 ;          *pair-order* #'mock-spoly-order))
    206     ((minimal-lcm :minimal-lcm $minimal_lcm)
    207      (setf *pair-key-function* #'(lambda (p q)
    208                                    (monom-lcm (poly-lm p) (poly-lm q)))
    209            *pair-order* #'reverse-monomial-order))
    210     ((minimal-total-degree :minimal-total-degree $minimal_total_degree)
    211      (setf *pair-key-function* #'(lambda (p q)
    212                                    (monom-total-degree
    213                                     (monom-lcm (poly-lm p) (poly-lm q))))
    214            *pair-order* #'<))
    215     ((minimal-length :minimal-length $minimal_length)
    216      (setf *pair-key-function* #'(lambda (p q)
    217                                    (+ (poly-length p) (poly-length q)))
    218            *pair-order* #'<))))
    219195
    220196
Note: See TracChangeset for help on using the changeset viewer.