1#include <gtest/gtest.h>
16 return c1.key ==
c2.key;
53 Clave c = {42, 10, 5};
85 for (
int i = 0; i < 10; ++i)
87 for (
int j = 0; j < 10; ++j)
111 Clave c = {10, 5, -1};
118 Clave c = {1000, 1000000, 500000};
128 std::vector<Clave>
claves;
130 for (
int i = 0; i < 50; ++i)
131 claves.push_back({i, i * 10, i * 5});
133 for (
size_t i = 0; i <
claves.size(); ++i)
137 if (i + 1 <
claves.size())
T & get_key() noexcept
Returns a modifiable reference to the node contents.
TEST_F(GenerateDfTreeTest, ClaveStructure)
int cmp(const __gmp_expr< T, U > &expr1, const __gmp_expr< V, W > &expr2)
Divide_Conquer_DP_Result< Cost > divide_and_conquer_partition_dp(const size_t groups, const size_t n, Transition_Cost_Fn transition_cost, const Cost inf=dp_optimization_detail::default_inf< Cost >())
Optimize partition DP using divide-and-conquer optimization.
Equality comparator for Clave structures.
bool operator()(const Clave &c1, const Clave &c2) const
Key structure for DFS tree nodes.
int key
Original node identifier.
long count
DFS discovery number (pre-order)
long low
Low-link value (minimum reachable via back edges)
General tree (n-ary tree) node.