Changeset 9cf98b9bd6 in tspsg for src/tspsolver.h


Ignore:
Timestamp:
Sep 2, 2009, 2:37:39 AM (15 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
41d264adbd
Parents:
244c614c6b
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
  • src/tspsolver.h

    r244c614c6b r9cf98b9bd6  
    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.