This project aims to provide implementations for parameterized streaming algorithms for vertex cover as posed in Chitnis, Cormode, Hajiaghayi, & Monemizadeh, 2014 as well as to provide a basis for further work into parameterized streaming algorithms.
- Classical implementations for small graphs using NetworkX
- Stream implementations using Python's io
- Stream implementations using Apache Kafka and Faust
- Tools for visualising the algorithms
- Runtime analysis and memory profiling
All code has been statically type checked using MyPy. View the docs here or using the link above.
- Python 3.8
- GNU Make (for running demos, alternatively run commands from Makefile manually)
- Docker and Docker Compose (for using Kafka and Zookeeper)
- Imagemagick (for creating GIFs)
- Clone the repo
$ git clone https://github.com/adamjhc/stream-vertex-cover.git
- (Optional) Create a python virtual environment
- Install dependencies
$ pip install -r requirements.txt
If everything has been setup correctly, you should be able to run the demo using
$ make demo_local_stream
python ./src/local_stream/local_stream.py branching-min ./src/test_sets/labelled_edge_lists/florentine_families_labelled.txt
┌Result────────────┬──────────────────────────────┐
│ Graph Name │ florentine_families_labelled │
│ Graph Nodes │ 15 │
│ Graph Edges │ 20 │
│ Min Vertex Cover │ 8 │
└──────────────────┴──────────────────────────────┘
This was my final year project while studying BSc Computer Science at the University of Birmingham.
This project was supervised by Rajesh Chitnis