From ba727f31343ed63dad9ac26e178bb6843185145c Mon Sep 17 00:00:00 2001 From: mugurelionut <mugurelionut@gmail.com> Date: Sat, 28 Dec 2019 22:18:53 +0100 Subject: [PATCH] trying one more time --- r2sol.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/r2sol.cc b/r2sol.cc index 92d8a19..869284f 100644 --- a/r2sol.cc +++ b/r2sol.cc @@ -2025,8 +2025,8 @@ void ReinitDataStructures() { MAX_DONE_AGENTS = 0; MIN_COST = 1e10; for (int aid = 0; aid < N; ++aid) path[aid].tmax = -1000; - xor128[0].reset(20190114U); - for (int tid = 1; tid < MAX_NUM_THREADS; ++tid) xor128[tid].reset(199997U * tid + 29997U); + xor128[0].reset(13U); + for (int tid = 1; tid < MAX_NUM_THREADS; ++tid) xor128[tid].reset(19997U * tid + 997U); for (int tid = 0; tid < MAX_NUM_THREADS; ++tid) { can_reach_idx[tid] = is_covered_idx[tid] = 0; auto& can_reach_tid = can_reach[tid]; @@ -2192,10 +2192,10 @@ void GetMoves(const char* testid, bool replay_mode = false) { updated_paths_ok = AdjustIPaths(); ++num_adjust_ipaths_without_full_plan_regeneration; } - const int kMaxNumAdjustIPathsWithoutFullPlanRegenartion = 4;//5; + const int kMaxNumAdjustIPathsWithoutFullPlanRegenartion = 3;//5; const bool full_regenerate_paths = !updated_paths_ok || num_adjust_ipaths_without_full_plan_regeneration > kMaxNumAdjustIPathsWithoutFullPlanRegenartion; if (full_regenerate_paths) { - RegenerateFullPlan(4, TINIT == 0 ? 20 : /*10*/9); + RegenerateFullPlan(4, TINIT == 0 ? 20 : /*10*/8); num_adjust_ipaths_without_full_plan_regeneration = 0; } else { assert(TINIT >= 1); -- GitLab