66 unsigned int t = std::time(0);
71 n = std::stoi(
argv[1]);
74 t = std::stoi(
argv[2]);
83 cout <<
"n must be positive" <<
endl;
89 cout <<
argv[0] <<
" " << n <<
" " << t <<
endl;
96 for (i = n - 1; i >= 0; i--)
106 for (i = 0; i < n; i++)
117 for (i = n - 1; i >= 0; i--)
128 for (i = 0; i < n; i++)
137 for (i = n - 1; i >= 0; i--)
148 for (i = 0; i < n/2; i++)
156 for (i = n - 1; i >= 0; i--)
166 for (i = 0; i < n + n/2; i++)
Core header for the Aleph-w library.
size_t size_t int32_t value
Node * getMin()
Removes the node with the lowest priority from the heap.
Node * insert(Node *p) noexcept
Inserts a node into a heap.
size_t blossom_maximum_cardinality_matching(const GT &g, DynDlist< typename GT::Arc * > &matching, SA sa=SA())
Alias of compute_maximum_cardinality_general_matching().
Main namespace for Aleph-w library functions.
Node heap without virtual destructor.
bool operator<(const Foo &r)
bool operator<=(const Foo &r)
Binary heap implementation using tree structure.
Utility functions for binary tree operations.