# How to linearize your cluster

**URL:** <https://delvingbitcoin.org/t/how-to-linearize-your-cluster/303>\
**Category:** Implementation\
**Tags:** wg-cluster-mempool, mempool\
**Created:** [December 18, 2023, 8:55pm UTC](https://delvingbitcoin.org/t/how-to-linearize-your-cluster/303 "2023-12-18T20:55:14Z")\
**Posts on this page:** 1\
**Showing post:** 28

<div class="post-metadata">

**Author:** ![Lagrang3](https://delvingbitcoin.org/user_avatar/delvingbitcoin.org/lagrang3/32/377_2.png) [@Lagrang3](https://delvingbitcoin.org/u/Lagrang3)\
**Post date:** [February 6, 2025, 8:47pm UTC](https://delvingbitcoin.org/t/how-to-linearize-your-cluster/303/28 "2025-02-06T20:47:07Z")

</div>

> [@sipa](#):
>
> The GGT algorithm is effectively finding a subset xxx which maximizes
> 
> \operatorname{fee}\_x - \lambda \operatorname{size}\_x
> 
> feex−λsizex

That, I think is not accurate to say. For a fixed \lambda finding a subset that maximizes \mathrm{fee}\_x - \lambda \mathrm{size}\_x simply transforms to the “maximum weight closure problem” that can be solved with any min-cut finding algorithm. The “max. weight closure problem” is a subproblem of your original “maximum feerate closure problem”. The novelty of GGT is that you don’t need to do bisection to solve the “maximum feerate closure” and the computation complexity of the feerate problem stays the same as the computational complexity of a single “max. weight closure”.

---

_[View the full topic](https://delvingbitcoin.org/t/how-to-linearize-your-cluster/303)._
