# $Id: TODO,v 1.2 2005/09/26 11:44:23 bjobst Exp $

+ Make DGame a derived class.

+ Measure frequency of rejections.  This will change depending on
  whether fair simulation minimization was preceded by direct
  simulation or not.
  1000 formulae
  PMRF/DP  merge -> 10.64% (5/47) arc removal -> 20.07% (117/583)
  PMDRFP   merge -> 0% (0/16) arc removal -> 31.53% (64/203)
  PF/DP    merge -> 4.73% (7/148) arc removal -> 21.04% (218/1036)
  23 Automata
  PMF/DRP  merge -> 25% (4/16) arc removal -> 61.11% (22/36) 
  PMDRFP   merge -> 25% (4/16) arc removal -> 63.63% (21/33)
  PF/DP    merge -> 11.11% (4/36) arc removal -> 62.5% (20/32)

+ Update results by adding PDP for the 1000 formulae.  Also, add their
  initial stats.  Report how many automata have 1 fairness condition
  (465).(refer out)

+ Build complete table for the 23 automata.
PMDRFP    PMDRdP    PMDRP     PMF/DRP   PMd/DRP   PF/DP     Pd/DP     PDP
St Tr Fa  St Tr Fa  St Tr Fa  St Tr Fa  St Tr Fa  St Tr Fa  St Tr Fa  St Tr Fa  
2  3  1   2  4  1   2  4  1   2  4  1   2  4  1   2  4  1   2  4  1   2  4  1 
4  5  1   7  11 1   7  11 1   4  5  1   7  11 1   4  5  1   8  12 1   8  12 1 
8  9  1   14 18 1   14 18 1   8  9  1   24 33 1   8  9  1   13 17 1   13 17 1 
8  12 1   10 16 1   10 16 1   8  12 1   10 16 1   8  12 1   10 16 1   10 16 1 
9  16 1   9  16 1   9  16 1   9  16 1   9  16 1   9  16 1   9  16 1   9  16 1 
3  4  1   6  10 1   6  10 1   3  4  1   6  10 1   3  4  1   6  10 1   6  10 1 
4  5  1   4  5  1   5  6  1   4  5  1   4  5  1   4  5  1   4  5  1   5  6  1 
7  11 1   9  16 1   9  16 1   7  11 1   9  16 1   7  11 1   9  16 1   9  16 1 
2  3  1   3  5  1   3  5  1   2  4  1   3  6  1   2  3  1   4  8  1   3  5  1 
3  4  1   3  4  1   4  7  1   3  4  1   3  4  1   3  4  1   3  4  1   4  7  1 
1  1  0   1  1  0   1  1  0   1  1  0   1  1  0   1  1  0   1  1  0   2  2  1 
4  5  1   7  10 1   7  10 1   4  5  1   7 10  1   4  5  1   7  10 1   7  10 1 
2  3  1   2  3  1   3  6  1   2  3  1   2  3  1   2  3  1   2  3  1   3  6  1 
6  12 1   6  12 1   6  12 1   6  12 1   6  12 1   6  12 1   6  12 1   6  12 1 
4  8  1   4  8  1   4  8  1   4  8  1   4  8  1   4  8  1   4  8  1   4  8  1 
4  8  1   4  8  1   4  8  1   4  7  1   4  8  1   4  8  1   4  8  1   4  8  1 
4  7  1   4  8  1   4  8  1   4  8  1   4  8  1   4  7  1   4  8  1   4  8  1 
5  11 1   5  11 1   5  11 1   5  11 1   5  11 1   5  11 1   5  11 1   5  11 1 
7  10 1   9  14 1   9  14 1   7  10 1   9  14 1   7  10 1   9  14 1   9  14 1 
4  7  1   6  11 1   6  11 1   4  7  1   6  11 1   4  7  1   6  11 1   6  11 1 
6  11 1   6  11 1   6  11 1   6  11 1   6  11 1   6  11 1   6  11 1   6  11 1 
1  1  0   1  1  0   1  1  0   1  1  0   1  1  0   1  1  0   1  1  0   1  1  0 
6  9  1   6  9  1   6  9  1   6  10 1   6  10 1   7  11 1   7  11 1   7  11 1
------------------------------------------------------------------------------
106 165   128 212   131 219   106 167   138 229   133 222   106 168   130 217

Additional Stats
	   Time  initial weak terminal
PMDRFP	   1.05	 25	 4    2
PMDFdP	   1.22	 29	 3    2
PMDRP	   0.49	 29	 3    2
PMF/DRP	   1.38	 25	 4    2
PMd/DRP	   1.4	 29	 3    2
PF/DP	   1.88	 25	 4    2
Pd/DP	   1.42	 30	 3    2
PDP	   0.48	 30	 3    2


+ Check DGame::new for possible causes of inefficiency when compared
  to Game::new.  In particular, the delayed-simulation game automata
  have a four-component state that may lead to some inefficiencies...
  
+ Use profiler (dprofpp) to figure out where time goes.  Pay attention
  to the fact that the tmon.out file created for the 1000 formulae is
  over 200MB, and that dproffpp may take a long time.

Total Elapsed Time = 165.7585 Seconds
         User Time = 30.21691 Seconds
Exclusive Times
%Time ExclSec CumulS #Calls sec/call Csec/c  Name
 17.7   5.369 14.147    474   0.0113 0.0298  Game::new
 15.7   4.749  4.137 408760   0.0000 0.0000  Pair::new
 12.9   3.897  7.146    472   0.0083 0.0151  Buechi::SafetySimulationRelation
 12.4   3.769  3.299 314153   0.0000 0.0000  Set::Push
 8.74   2.640  2.032 405061   0.0000 0.0000  Set::IsMember
 8.01   2.420  2.179 160975   0.0000 0.0000  Set::Clone
 4.96   1.498 30.217   1000   0.0015 0.0302  Buechi::FairSimulationMinimization
 4.26   1.286  3.903    697   0.0018 0.0056  Game::lift
 4.17   1.260  1.543  75574   0.0000 0.0000  Pair::ToString
 3.97   1.201  2.012   1411   0.0009 0.0014  Buechi::InvertDelta
 2.67   0.806  2.376    892   0.0009 0.0027  Game::CloneHashOfSets
 2.32   0.700  0.522 118978   0.0000 0.0000  Set::new
 1.99   0.600  0.328 181558   0.0000 0.0000  Pair::First
 1.99   0.600  0.792  18394   0.0000 0.0000  Game::val
 1.92   0.580  0.496  56031   0.0000 0.0000  Set::Pop


* Implement early termination for lift.

* Implement change list.

* Use SCCs to speed up lift.

* Look at the paper by Voege and Jurdzinski.

* Implement relaxed reverse simulation.

* Go beyond simulation-based minimization.

* Prove relationship between measures for fair simulation and measures
  for delayed simulation.

* Extend fair simulation minimization to generalized Buechi automata.

* Fix Boolean method bug.

* Look at strength classification to solve the apparent paradox that
  further optimization decreases the number of automata declared
  terminal.

* Add ability to read multiple automata from the same file.

* Write man page.

* Integrate Matt Lovell's code.

* Check the effect of optimization on model checking experiments.

* Check whether eliminating the precomputation of the safety
  simulation relation helps.

* Make as many states as possible initial?

* Figure out a clean solution for the current patch that comments out
  the line

  delete $$names{$removed};

