Changeset 3e46075789 in tspsg for src/tspsolver.h
- Timestamp:
- Feb 17, 2010, 5:54:05 PM (14 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- 8203c075d5
- Parents:
- e4ae9e95f7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tspsolver.h
re4ae9e95f7 r3e46075789 63 63 SCandidate candidate; //!< A candiadate for branching in the current matrix 64 64 QList<SCandidate> alts; //!< A list of alternative branching candidates 65 SStep *pNode; //!< Pointer to the parent step 65 66 SStep *plNode; //!< Pointer to the left branch step 66 67 SStep *prNode; //!< Pointer to the right branch step … … 69 70 SStep() { 70 71 price = -1; 71 p lNode = prNode = NULL;72 pNode = plNode = prNode = NULL; 72 73 } 73 74 }; … … 76 77 * \brief This class solves Travelling Salesman Problem task. 77 78 * \author Copyright © 2007-2010 Lёppa <contacts[at]oleksii[dot]name> 78 *79 * \todo TODO: Deletion of solution tree on destroy and cleanup.80 79 */ 81 80 class CTSPSolver … … 100 99 double align(TMatrix &matrix); 101 100 void cleanup(); 102 void delete Node(SStep *&node);101 void deleteTree(SStep *&root); 103 102 QList<SCandidate> findCandidate(const TMatrix &matrix, int &nRow, int &nCol) const; 104 103 double findMinInCol(int nCol, const TMatrix &matrix, int exr = -1) const;
Note: See TracChangeset
for help on using the changeset viewer.