GithubHelp home page GithubHelp logo

mapleox / rankinglp Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 19 KB

Code for the paper "Improved Analysis of RANKING for Online Vertex-Weighted Bipartite Matching"

License: MIT License

Jupyter Notebook 70.85% Python 29.15%

rankinglp's Introduction

Improved Analysis of RANKING for Online Vertex-Weighted Bipartite Matching

This repository contains the code for the paper "Improved Analysis of RANKING for Online Vertex-Weighted Bipartite Matching". (https://arxiv.org/abs/2007.12823)

Usage

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.

  1. Run the code in lp.ipynb to generate the file g_values_50.txt, which contains the values of g on a 50x50 discretized grid.
  2. Run the command python fill_g_table_parallel.py 16834 to compute a 16384x16384 table g_table_16384.txt with the values of g on the finer discretized grid.
  3. Run the command python fill_ss_table_parallel.py 16834 1024 to compute a 1024x1024x1024 table ss_table_1024.npy with the values of the inner minimum.
  4. Run the command python evaluate_cr.py 16384 1024 16384 to evaluate the bound in Theorem 1, using the above precomputed tables.

Upper bound

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.

rankinglp's People

Contributors

mapleox avatar

Stargazers

张玉琪 avatar  avatar Ramsey avatar Matthew Fahrbach avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.