| 34 | } |
| 35 | |
| 36 | struct TDistrTreeCmpCost { |
| 37 | float SendTime; |
| 38 | TDistrTreeCmpCost(float sendTime) |
| 39 | : SendTime(sendTime) |
| 40 | { |
| 41 | } |
| 42 | bool operator()(const TDistrTree& a, const TDistrTree& b) const { |
| 43 | return CalcTreeCost(a, SendTime) > CalcTreeCost(b, SendTime); |
| 44 | } |
| 45 | }; |
| 46 | |
| 47 | struct TDistrTreeConstructor { |
| 48 | TVector<int> Group2parent; |