Skip to content

Commit

Permalink
Change magical constants in heuristic based on Game-of-Life
Browse files Browse the repository at this point in the history
  • Loading branch information
SSoelvsten committed Mar 1, 2024
1 parent a8f5a4a commit 1dc033f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adiar/internal/algorithms/quantify.h
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,7 @@ namespace adiar::internal

const double total_arcs = 2.0 * size;
const double weighted_terminals = false_weight * false_terminals + true_weight * true_terminals;
const size_t exponent = 16.0 * (weighted_terminals / total_arcs) + 0.5;
const size_t exponent = 21.0 * (weighted_terminals / total_arcs) + 0.4;

const typename Policy::label_type terminal_threshold =
(1u << std::min<size_t>(exponent, log2(2*Policy::max_label))) - 1u;
Expand Down

0 comments on commit 1dc033f

Please sign in to comment.