This repository contains the code for the paper "Improved Analysis of RANKING for Online Vertex-Weighted Bipartite Matching". (https://arxiv.org/abs/2007.12823)
Warning: With the values of the parameters below, the code may take a long time to run. You can replace them with smaller numbers to experiment.
- Run the code in
lp.ipynb
to generate the fileg_values_50.txt
, which contains the values of g on a 50x50 discretized grid. - Run the command
python fill_g_table_parallel.py 16834
to compute a 16384x16384 tableg_table_16384.txt
with the values of g on the finer discretized grid. - Run the command
python fill_ss_table_parallel.py 16834 1024
to compute a 1024x1024x1024 tabless_table_1024.npy
with the values of the inner minimum. - Run the command
python evaluate_cr.py 16384 1024 16384
to evaluate the bound in Theorem 1, using the above precomputed tables.
The file LP Upper Bound.ipynb
contains the code to create and solve the LP described in Section 7 of the paper, which provides an upper bound on the best competitive ratio obtainable using our methods.