Code Monkey home page Code Monkey logo

ccli's Introduction

ccli

A command-line interface for Culberson’s colouring programs.

Requirements

To use the expect scripts directly (see the Appendix) requires

apt-get install expect

and

Using ccli also requires:

cd /opt
git clone https://github.com/docopt/docopts.git
cd docopts
./get_docopts.sh
cp docopts /usr/local/bin

ccli

greedy

export PATH=$PATH:./bin

ccli greedy --type="simple"\
            --ordering="decdeg"\
            --seed=42\
            --kempe\
            ../queen-colouring/queen16_16.col
#> spawn greedy ../queen-colouring/queen16_16.col
#> J. Culberson's Implemenation of
#>      GREEDY
#> A program for coloring graphs.
#> For more information visit the webpages at: 
#> 
#>  http://www.cs.ualberta.ca/~joe/Coloring/index.html
#> 
#> This program is available for research and educational purposes only.
#> There is no warranty of any kind.
#> 
#>  Enjoy!
#> 
#> Do you wish to use the cheat if present? (0-no, 1-yes) 
#> 0
#> ASCII format
#> number of vertices = 256
#> p edge 256 12640
#> Number of edges = 12640 edges read = 12640
#> GRAPH SETUP cpu =  0.00
#> Enter seed for search randomization: 42
#>  42
#> Process pid = 4366
#> GREEDY TYPE SELECTION
#>  1   Simple Greedy
#>  2   Largest First Greedy
#>  3   Smallest First Greedy
#>  4   Random Sequence Greedy
#>  5   Reverse Order Greedy
#>  6   Stir Color Greedy
#> Which for this program 0� �1
#> 1
#> Initial Vertex Ordering:
#>  1 -- inorder
#>  2 -- random
#>  3 -- decreasing degree
#>  4 -- increasing degree
#>  5 -- LBFS random
#>  6 -- LBFS decreasing degree
#>  7 -- LBFS increasing degree
#> Using: 3
#> 3
#> Use kempe reductions y/n y
#> y
#> CLRS =24 CLRSUM = 8701
#> Coloring Verified
#> Coloring time cpu =  0.00

dsatur

export PATH=$PATH:.

ccli dsatur --ordering="random"\
            --seed=42\
            ../queen-colouring/queen16_16.col
#> spawn dsatur ../queen-colouring/queen16_16.col
#> J. Culberson's Implemenation of
#>      DSATUR
#> A program for coloring graphs.
#> For more information visit the webpages at: 
#> 
#>  http://www.cs.ualberta.ca/~joe/Coloring/index.html
#> 
#> This program is available for research and educational purposes only.
#> There is no warranty of any kind.
#> 
#>  Enjoy!
#> 0
#> 
#> Do you wish to use the cheat if present? (0-no, 1-yes) 
#> ASCII format
#> number of vertices = 256
#> p edge 256 12640
#> Number of edges = 12640 edges read = 12640
#> GRAPH SETUP cpu =  0.00
#> Enter seed for search randomization: 42
#>  42
#> Process pid = 4388
#> 
#>  DSATUR COLORING
#> Initial Vertex Ordering:
#>  1 -- inorder
#>  2 -- random
#>  3 -- decreasing degree
#>  4 -- increasing degree
#> Using: 2
#> 2
#> CLRS =21 CLRSUM = 7867
#> Coloring Verified
#> Coloring time cpu =  0.00

maxis

export PATH=$PATH:.

ccli maxis --seed=42\
           ../queen-colouring/queen16_16.col
#> spawn maxis ../queen-colouring/queen16_16.col
#> J. Culberson's Implemenation of
#>      MAXIS
#> A program for coloring graphs.
#> For more information visit the webpages at: 
#> 
#> 0
#>  http://www.cs.ualberta.ca/~joe/Coloring/index.html
#> 
#> This program is available for research and educational purposes only.
#> There is no warranty of any kind.
#> 
#>  Enjoy!
#> 
#> Do you wish to use the cheat if present? (0-no, 1-yes) 
#> ASCII format
#> number of vertices = 256
#> p edge 256 12640
#> Number of edges = 12640 edges read = 12640
#> GRAPH SETUP cpu =  0.00
#> Enter seed for search randomization: 42
#> 13 3� �� �� �2 3
#> 6 2
#> 0 4
#>  42
#> Process pid = 4409
#> 
#>  MAXIS COLORING
#> Vertex Num, Cutlim in decreasing order to 0
#> 12 3
#> 6 2
#> 0 4
#> Backtrack limit = 0 means no limit to backtrack
#> Backtrack limit = k means do not backtrack over first k
#> Upsort limit(U) and Midsort limit(M) with |G| =N
#>  if NumRem > (U*N)/100 then sort by decreasing degree
#>  else if NumRem > (M*N)/100 then sort by medium degree
#>  else sort by increasing degree
#> Enter Backtrack Limit, UpSort Limit, Midsort Limit0� �0, 2, 4
#> 0 0 0
#> Independent Set for clr 1 bcindex = 15 CPU =  0.04
#> Independent Set for clr 2 bcindex = 15 CPU =  0.03
#> Independent Set for clr 3 bcindex = 15 CPU =  0.02
#> Independent Set for clr 4 bcindex = 16 CPU =  0.02
#> Independent Set for clr 5 bcindex = 15 CPU =  0.02
#> Independent Set for clr 6 bcindex = 15 CPU =  0.02
#> Independent Set for clr 7 bcindex = 15 CPU =  0.01
#> Independent Set for clr 8 bcindex = 15 CPU =  0.01
#> Independent Set for clr 9 bcindex = 15 CPU =  0.01
#> Independent Set for clr 10 bcindex = 15 CPU =  0.01
#> Independent Set for clr 11 bcindex = 14 CPU =  0.00
#> Independent Set for clr 12 bcindex = 14 CPU =  0.00
#> Independent Set for clr 13 bcindex = 14 CPU =  0.00
#> Independent Set for clr 14 bcindex = 14 CPU =  0.00
#> Independent Set for clr 15 bcindex = 13 CPU =  0.00
#> Independent Set for clr 16 bcindex = 12 CPU =  0.00
#> Independent Set for clr 17 bcindex = 11 CPU =  0.00
#> Independent Set for clr 18 bcindex = 11 CPU =  0.00
#> Independent Set for clr 19 bcindex = 2 CPU =  0.00
#> CLRS =19 CLRSUM = 7203
#> Coloring Verified
#> Coloring time cpu =  0.20

ccli's People

Contributors

mhenderson avatar

Watchers

 avatar

ccli's Issues

Fix broken Makefile workflow

Run make test
ccli --help
make: ccli: No such file or directory
make: *** [Makefile:11: test] Error 127
Error: Process completed with exit code 2.

Output from the install dependencies target holds a clue

rm -rf docopts
export PATH=ATH:./bin:./src/lib

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.