Coder Social home page Coder Social logo

max_clique's Introduction

Description

Realisation of branch and bound algorithm for solving Maximum clique problem using greedy coloring heuristic to estimate upper bound and greedy clique heuristic for lower bound on each step.

Details: http://www.m-hikari.com/ams/ams-2014/ams-1-4-2014/mamatAMS1-4-2014-3.pdf

Instructions

This is Python 3.5.2 realization with usage of NetworkX library

To run script you should specify following parameters:

  • --path - path to DIMACS-format graph
  • --time - time limit in seconds
  • --test - path to folder with graphs, generates excel-table with results on exit. (still need to specify --path just for nothing)

Test results

Graph name #Nodes #Edges Found clique length Time (ms)
miles250.col 128 774 8 1.001
anna.col 138 986 11 355.994
homer.col 561 3258 13 1198.999
huck.col 74 602 11 70.997
le450_5a.col 450 5714 5 11773.576
le450_5b.col 450 5734 5 11867.003
le450_5c.col 450 9803 5 19642.002
le450_5d.col 450 9757 5 18900.578
le450_15b.col 450 8169 15 7223.001
le450_15c.col 450 16680 15 46407.516
le450_15d.col 450 16750 15 50872.791
le450_25a.col 450 8260 25 340.000
le450_25c.col 450 17343 25 44315.806
le450_25d.col 450 17425 25 40426.008
johnson8-2-4.clq 28 210 4 114.503
hamming6-4.clq 64 704 4 300.501
c-fat200-1.clq 200 1534 12 1389.498
c-fat200-2.clq 200 3235 24 1475.499
c-fat200-5.clq 200 8473 58 7305.004
c-fat500-1.clq 500 4459 14 5257.009
c-fat500-2.clq 500 9139 26 20467.029
c-fat500-5.clq 500 23191 64 52392.166
c-fat500-10.clq 500 46627 126 65.000

All this graphs are placed in samples folder.
More of them you can find here: http://mat.gsia.cmu.edu/COLOR/instances.html
Huge ones: http://iridia.ulb.ac.be/~fmascia/maximum_clique/DIMACS-benchmark#detC125.9

max_clique's People

Contributors

donfaq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

max_clique's Issues

Error running

Please show me an example of how to specify the parameters for file? This is what i use : '--C:/Users/shawa/Downloads/max_clique-master/clq/brock200_1.clq.txt'

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.