The Exchange Problem
<|reference_start|>The Exchange Problem: Auctions are widely used in exchanges to match buy and sell requests. Once the buyers and sellers place their requests, the exchange determines how these requests are to be matched. The two most popular objectives used while determining the matching are maximizing volume at a uniform price and maximizing volume with dynamic pricing. In this work, we study the algorithmic complexity of the problems arising from these matching tasks.   We present a linear time algorithm for uniform price matching which is an improvement over the previous algorithms that take $O(n\log n)$ time to match $n$ requests. For dynamic price matching, we establish a lower bound of $\Omega(n \log n)$ on the running time, thereby proving that the currently known best algorithm is time-optimal.<|reference_end|>
@article{garg2024the,
    title={The Exchange Problem},
    author={Mohit Garg and Suneel Sarswat},
    journal={arXiv preprint arXiv:2403.03046},
    year={2024},
    archivePrefix={arXiv},
    eprint={2403.03046},
    primaryClass={cs.DS cs.GT}
}