Changeset 0179d5 in git for kernel/f5lists.cc


Ignore:
Timestamp:
Jul 16, 2009, 9:47:51 AM (15 years ago)
Author:
Christian Eder
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
4feee0a979cff0b1422136e2611e127a8267eb8d
Parents:
d4f44f4f228fbb8258ce8e9927141d37d4470719
Message:
options for switching between F5, F5R and F5C: "0" = F5, "1" = F5R, "2" = F5C, ""(no option set at all) = F5C
this version only produces top reductions


git-svn-id: file:///usr/local/Singular/svn/trunk@11981 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/f5lists.cc

    rd4f44f r0179d5  
    212212
    213213// deletes the first elements of the list with the same degree
    214 // only used for the S-polys, which are already sorted by increasing degree by CList
     214// only used for the S-polys, which are already sorted by increasing degree by CListOld
    215215LNode*  LNode::deleteByDeg() {
    216216    return this;
     
    583583}
    584584
    585 CNode::CNode(CPair* c) {
     585CNode::CNode(CPairOld* c) {
    586586    data    =   c;   
    587587    next    =   NULL;   
    588588}
    589589
    590 CNode::CNode(CPair* c, CNode* n) {
     590CNode::CNode(CPairOld* c, CNode* n) {
    591591    data    =   c;   
    592592    next    =   n;   
     
    601601// working only with linked, but not doubly linked lists due to memory usage we have to check the
    602602// insertion around the first element separately from the insertion around all other elements in the list
    603 CNode* CNode::insert(CPair* c) {
     603CNode* CNode::insert(CPairOld* c) {
    604604    if(NULL == this) {
    605605        CNode* newElement   =   new CNode(c, this);
     
    695695}
    696696
    697 // get the first elements from CList which by the above sorting have minimal degree
     697// get the first elements from CListOld which by the above sorting have minimal degree
    698698CNode* CNode::getMinDeg() {
    699699    CNode* temp = this;
     
    703703        }
    704704        CNode* returnCNode  =   temp->next;   
    705         // every CList should end with a (NULL,NULL) element for a similar behaviour
     705        // every CListOld should end with a (NULL,NULL) element for a similar behaviour
    706706        // using termination conditions throughout the algorithm
    707707        temp->next          =   NULL;
     
    711711}
    712712
    713 CPair* CNode::getData() {
     713CPairOld* CNode::getData() {
    714714    return data;
    715715}
     
    800800/*
    801801====================================
    802 functions working on the class CList
     802functions working on the class CListOld
    803803====================================
    804804*/
    805 // for initialization of CLists, last element alwas has data=NULL and next=NULL
    806 CList::CList() {
     805// for initialization of CListOlds, last element alwas has data=NULL and next=NULL
     806CListOld::CListOld() {
    807807    first   =   NULL;
    808808}
    809809
    810 CList::CList(CPair* c) {
     810CListOld::CListOld(CPairOld* c) {
    811811    first   =   new CNode(c);
    812812}
    813813
    814 CList::~CList() {
     814CListOld::~CListOld() {
    815815    CNode* temp;
    816816    while(NULL != first) {
     
    823823// insert sorts the critical pairs firstly by increasing total degree, secondly by increasing label
    824824// note: as all critical pairs have the same index here, the second sort is done on the terms of the labels
    825 void CList::insert(CPair* c) {
     825void CListOld::insert(CPairOld* c) {
    826826    first = first->insert(c);
    827827}
    828828
    829 CNode* CList::getFirst() {
     829CNode* CListOld::getFirst() {
    830830    return first;
    831831}
    832832
    833 // get the first elements from CList which by the above sorting have minimal degree
     833// get the first elements from CListOld which by the above sorting have minimal degree
    834834// returns the pointer on the first element of those
    835 CNode* CList::getMinDeg() {
     835CNode* CListOld::getMinDeg() {
    836836    CNode* temp     =   first;
    837837    first           =   first->getMinDeg();
     
    839839}
    840840
    841 void CList::print() {
     841void CListOld::print() {
    842842    first->print();
    843843}
Note: See TracChangeset for help on using the changeset viewer.