diff options
author | Jan Huwald <jh@sotun.de> | 2013-06-25 12:55:15 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2013-06-25 12:55:15 (GMT) |
commit | 98117566229c24d84dc15f1d794fba88dd40da4a (patch) | |
tree | ffb2195d3fd89425c57593477869d92f4a342667 | |
parent | 53fefbf1505e0a28b37534a6e17b2a61cef58a0a (diff) |
use ordered map in cycleStat() to get sorted result
-rw-r--r-- | cacount.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cacount.cpp b/cacount.cpp index 368e325..72134e1 100644 --- a/cacount.cpp +++ b/cacount.cpp @@ -7,8 +7,8 @@ #include <functional> #include <iostream> #include <list> -#include <unordered_map> -#include <unordered_set> +#include <map> +#include <set> #include <thread> #include <boost/integer.hpp> @@ -127,9 +127,9 @@ void cycleStat(Trans &t, Color &c, pbitset &reachable) { struct Stat { StateIter basin, len, eden, totalBasin; explicit Stat() : basin(0), len(0), eden(0), totalBasin(0) {} - }; - unordered_map<State, Stat> cycStat; - unordered_set<State> redCycleCounted; + } __attribute__((packed)); + map<State, Stat> cycStat; + set<State> redCycleCounted; // Is this cycle the canonical one? // How big is the basin of attraction? |