Changeset 60 in tspsg-svn for trunk/src/tspsolver.h


Ignore:
Timestamp:
Sep 2, 2009, 2:37:39 AM (15 years ago)
Author:
laleppa
Message:

+ Warning about possible non-optimal result.

  • Resulting path is now sorted, always starts from City 1 and has "City 1 -> City n -> ... -> City 1" format.
  • Translations updated.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tspsolver.h

    r59 r60  
    4747public:
    4848        CTSPSolver();
     49        QString getSortedPath() const;
     50        bool isOptimal() const;
    4951        sStep *solve(int, tMatrix, QWidget *parent = 0);
    5052
    5153private:
     54        bool mayNotBeOptimal;
    5255        int nCities;
    5356        sStep *root;
     
    5659        double align(tMatrix &);
    5760        void cleanup();
    58         bool findCandidate(tMatrix, int &, int &, double &);
     61        bool findCandidate(tMatrix, int &, int &);
    5962        double findMinInRow(int, tMatrix, int exc = -1);
    6063        double findMinInCol(int, tMatrix, int exr = -1);
Note: See TracChangeset for help on using the changeset viewer.