English

Fast and Compact Graph Cuts for the Boykov-Kolmogorov Algorithm

Computer Vision and Pattern Recognition 2026-05-14 v1 Data Structures and Algorithms

Abstract

Computing a minimum ss-tt cut in a graph is a solution to a wide range of computer vision problems, and is often done using the Boykov-Kolmogorov (BK) algorithm. In this paper, we revisit the BK algorithm from both a theoretical and practical point of view. We improve the analysis of the time complexity of the BK algorithm to O(mnC)O(mn|C|) and propose a new algorithm, the fast and compact BK (fcBK) algorithm, with a time complexity of O(mC)O(m|C|), where mm, nn, and C|C| are the number of edges, number of vertices, and the capacity of the cut, respectively. We additionally propose a compact graph representation that allows our implementation to find a minimum ss-tt cut in a graph with upwards of 10910^9 vertices and 101010^{10} edges on a machine with 128 GB of memory. We find our implementation of the BK algorithm to be the fastest available implementation of the BK algorithm when evaluating on a comprehensive set of benchmark datasets, highlighting the importance of memory-efficient implementations. We make our implementations publicly available for further research and implementation development within minimum ss-tt cut algorithms.

Keywords

Cite

@article{arxiv.2605.13402,
  title  = {Fast and Compact Graph Cuts for the Boykov-Kolmogorov Algorithm},
  author = {Christian Møller Mikkelstrup and Anders Bjorholm Dahl and Philip Bille and Vedrana Andersen Dahl and Inge Li Gørtz},
  journal= {arXiv preprint arXiv:2605.13402},
  year   = {2026}
}

Comments

15 pages, 6 figures, submitted to the IEEE for possible publication