Table of Contents
Fetching ...

The Exchange Problem

Mohit Garg, Suneel Sarswat

TL;DR

The paper studies two call-auction matching tasks: (i) maximizing total traded volume (Task 1) and (ii) maximizing volume with a uniform transaction price (Task 2). It establishes a tight separation: any algorithm for Task 1 requires $\Omega(n \log n)$ time in the comparison model (and $\Omega(n \sqrt{\log n})$ in the binary-query model), while Task 2 admits an $O(n)$-time linear algorithm; moreover, a linear-time linear-time fair uniform-price matching is achieved. The approach hinges on a stronger demand-supply inequality, a reduction from Element Distinctness to prove lower bounds, and a medians-based strategy that bypasses sorting to obtain linear time for Task 2. These results advance understanding of foundational complexity for exchange-style matching and have potential implications for real-world market mechanisms and decentralized exchanges.

Abstract

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 $Ω(n \log n)$ on the running time, thereby proving that the currently known best algorithm is time-optimal.

The Exchange Problem

TL;DR

The paper studies two call-auction matching tasks: (i) maximizing total traded volume (Task 1) and (ii) maximizing volume with a uniform transaction price (Task 2). It establishes a tight separation: any algorithm for Task 1 requires time in the comparison model (and in the binary-query model), while Task 2 admits an -time linear algorithm; moreover, a linear-time linear-time fair uniform-price matching is achieved. The approach hinges on a stronger demand-supply inequality, a reduction from Element Distinctness to prove lower bounds, and a medians-based strategy that bypasses sorting to obtain linear time for Task 2. These results advance understanding of foundational complexity for exchange-style matching and have potential implications for real-world market mechanisms and decentralized exchanges.

Abstract

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 time to match requests. For dynamic price matching, we establish a lower bound of on the running time, thereby proving that the currently known best algorithm is time-optimal.
Paper Structure (13 sections, 14 theorems, 11 equations, 7 algorithms)

This paper contains 13 sections, 14 theorems, 11 equations, 7 algorithms.

Key Result

Theorem 1.1

Any algorithm for Task 1 requires $\Omega(n \log n)$ time in the worst-case, where $n$ is the number of trade requests.

Theorems & Definitions (23)

  • Theorem 1.1
  • Theorem 1.2
  • Definition 1.3: tradable, traded quantity $\mathsf{Qty}$, volume $\mathsf{Vol}$, matching
  • Definition 1.4: Competitiveness $\succ$, Fair
  • Theorem 1.5: Theorem 15 and Page 13 of RSS21
  • Remark 1.6
  • Remark 1.7
  • Theorem 1.8: Result 1
  • Theorem 1.9: demand-supply inequality
  • Theorem 1.10: Result 2
  • ...and 13 more