A Python+Julia package to compute Expected Delivery Time in Kleinberg's augmented grid model.
Project description
Kleinberg's Grid Ultimate
Great Trilogies Come in Threes.
-
Kleinberg's Grid Reloaded proposed a new dynamic rejection sampling approach to simulate Kleinberg's small world model on very large graphs.
-
Kleinberg's Grid Unchained introduced double rejection sampling, enabling computations on virtual grids the size of the universe (yes, that's big).
-
Kleinberg's Grid Ultimate proposes an improved version of the simulator that isn't afraid with universe to the square! And it is nicely packaged for everyone to use.
-
Free software: MIT license
-
Documentation: https://balouf.github.io/kleinberg-grid-simulator/.
Features
- Provides a Python frontend with possibility to use Julia or Python backend.
- Julia backend improved with fixed-size big ints (
int256
,int512
,int1024
) to speed up computation. - Provides tools to parallelize, estimate complexity bounds, estimate reasonable shortcut distributions.
- Provides notebooks to benchmark the performance and reproduce the results from previous papers.
Installation
Pip installation preferred.
pip install kleinberg-grid-simulator
Usage
from kleinberg_grid_simulator import compute_edt
compute_edt(n=1000, r=2, p=1, q=1)
Credits
Céline Comte, co-author of Kleinberg's Grid Unchained.
This package was created with Cookiecutter and the Package Helper 3 project template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kleinberg_grid_simulator-0.1.0.tar.gz
.
File metadata
- Download URL: kleinberg_grid_simulator-0.1.0.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62613d3a0796b50a422df1cb98e44808b2392002dc72883f6dce61d97ca09b4c |
|
MD5 | 70772716d5b7fef3ebd3530ebc188b03 |
|
BLAKE2b-256 | 17b3f5880d0036febac0e17f119c84a5134f53d2330187893af38c29b9be0c5c |
File details
Details for the file kleinberg_grid_simulator-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: kleinberg_grid_simulator-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96257e097d6a9f62b1ce5ca6e14e1dc87d0d66aacfc7be9cd9f6e342197d55f2 |
|
MD5 | 49fa56f22d0f8d8273ae516ebcce41bb |
|
BLAKE2b-256 | c65738002f0946508f2dae6415336a84a0a56a8cb07aaecdba0aa55c4e6ba2a4 |