# Minimum Cost Flows, MDPs, and $\ell_1$-Regression in Nearly Linear Time for Dense Instances

• Jan van den Brand
• Yin Tat Lee
• Yang P. Liu
• Thatchaphol Saranurak
• Aaron Sidford
• Zhao Song
• Di Wang
The 53rd ACM Symposium on Theory of Computing (STOC) (2021) (to appear)

## Abstract

In this paper we provide new randomized algorithms with improved runtimes for solving linear programs with two-sided constraints. In the special case of the minimum cost flow problem on $n$-vertex $m$-edge graphs with integer polynomially-bounded costs and capacities we obtain a randomized method which solves the problem in $\tilde{O}(m + n^{1.5})$ time. This improves upon the previous best runtime of $\tilde{O}(m \sqrt{n})$ \cite{ls14} and, in the special case of unit-capacity maximum flow, improves upon the previous best runtimes of $m^{4/3 + o(1)}$ \cite{ls20_focs,kathuria2020potential} and $\tilde{O}(m \sqrt{n})$ \cite{ls14} for sufficiently dense graphs.

    In the case of $\ell_1$-regression in a matrix with $n$-columns and $m$-rows we obtain a randomized method which computes an $\epsilon$-approximate solution in $\tilde&lbrace;O&rbrace;(mn + n^&lbrace;2.5&rbrace;)$ time. This yields a randomized method which computes an $\epsilon$-optimal policy of a discounted Markov Decision Process with $S$ states and, $A$ actions per state in time $\tilde&lbrace;O&rbrace;(S^2 A + S^&lbrace;2.5&rbrace;)$. These methods improve upon the previous best runtimes of methods which depend polylogarithmically on problem parameters, which were $\tilde&lbrace;O&rbrace;(mn^&lbrace;1.5&rbrace;)$ \cite&lbrace;LeeS15&rbrace; and $\tilde&lbrace;O&rbrace;(S^&lbrace;2.5&rbrace; A)$ \cite&lbrace;ls14,SidfordWWY18&rbrace; respectively.

To obtain this result we introduce two new algorithmic tools of possible independent interest. First, we design a new general interior point method for solving linear programs with two sided constraints which combines techniques from \cite&lbrace;lsz19&rbrace; and \cite&lbrace;BrandLN+20&rbrace; to obtain a robust stochastic method with iteration count nearly the square root of the smaller dimension.  Second, to implement this method we provide dynamic data structures for efficiently maintaining approximations to variants of Lewis-weights, a fundamental importance measure for matrices which generalize leverage scores and effective resistances.