Giter VIP home page Giter VIP logo

stream-vertex-cover's Introduction

Stream Vertex Cover

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.

Features

  • 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

Code

All code has been statically type checked using MyPy. View the docs here or using the link above.

Setup

Requirements

  • 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)

Installation

  1. Clone the repo
$ git clone https://github.com/adamjhc/stream-vertex-cover.git
  1. (Optional) Create a python virtual environment
  2. Install dependencies
$ pip install -r requirements.txt

Demo

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                            │
└──────────────────┴──────────────────────────────┘

About

This was my final year project while studying BSc Computer Science at the University of Birmingham.

This project was supervised by Rajesh Chitnis

stream-vertex-cover's People

Contributors

adamjhc avatar

Stargazers

 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.