Changeset 3e46075789 in tspsg for src/tspsolver.h


Ignore:
Timestamp:
Feb 17, 2010, 5:54:05 PM (14 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
8203c075d5
Parents:
e4ae9e95f7
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tspsolver.h

    re4ae9e95f7 r3e46075789  
    6363        SCandidate candidate; //!< A candiadate for branching in the current matrix
    6464        QList<SCandidate> alts; //!< A list of alternative branching candidates
     65        SStep *pNode; //!< Pointer to the parent step
    6566        SStep *plNode; //!< Pointer to the left branch step
    6667        SStep *prNode; //!< Pointer to the right branch step
     
    6970        SStep() {
    7071                price = -1;
    71                 plNode = prNode = NULL;
     72                pNode = plNode = prNode = NULL;
    7273        }
    7374};
     
    7677 * \brief This class solves Travelling Salesman Problem task.
    7778 * \author Copyright &copy; 2007-2010 Lёppa <contacts[at]oleksii[dot]name>
    78  *
    79  * \todo TODO: Deletion of solution tree on destroy and cleanup.
    8079 */
    8180class CTSPSolver
     
    10099        double align(TMatrix &matrix);
    101100        void cleanup();
    102         void deleteNode(SStep *&node);
     101        void deleteTree(SStep *&root);
    103102        QList<SCandidate> findCandidate(const TMatrix &matrix, int &nRow, int &nCol) const;
    104103        double findMinInCol(int nCol, const TMatrix &matrix, int exr = -1) const;
Note: See TracChangeset for help on using the changeset viewer.