MCPcopy Create free account
hub / github.com/Gecode/gecode / cost

Method cost

gecode/int/gcc/val.hpp:74–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73 template<class Card>
74 PropCost
75 Val<Card>::cost(const Space&, const ModEventDelta&) const {
76 /*
77 * Complexity depends on the time needed for value lookup in \a k
78 * which is O(n log n).
79 */
80 return PropCost::linear(PropCost::HI,x.size());
81 }
82
83 template<class Card>
84 void

Callers

nothing calls this directly

Calls 2

linearFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected