Giter VIP home page Giter VIP logo

enumerator's Introduction

enumerator

This is the repository for Zach's enumerator of grid graph partitions. For details about the algorithm and an implementation, see the Jupyter notebook.

The enumerations folder contains .zips of the enumerations of the valid partitions. Each zip contains a single text file. The data format is as follows. Each partition is on its own line. Reading off the grid left-to-right, top-to-bottom, a partition appears as a comma-delimited list where each value corresponds to the chunk to which that cell belongs. For example, the partition

1 1 2  
1 2 2  
3 3 3

is represented as 1,1,2,1,2,2,3,3,3.

The file naming convention is [<m>,<n>]_[<p_1>,<p_2>,...,<p_l>]_k_<cont>.zip where m and n are the dimensions of the grid, the p_i are the allowed sizes of the chunks, k is the number of pieces, and cont is either rc for rook contiguity or qc for queen contiguity. The .zip contains a .txt file of the same name.

The table is a reference which contains the sizes of some of the various sets of enumerations.

This is Julia code. If you already have Julia and Jupyter installed, you can set up IJulia by calling Pkg.add("IJulia") in the Julia REPL. If you don't have either of these set up, you can get Julia from the creators at julialang.org and Jupyter from jupyter.org.

Coming soon: a command line version of this tool

enumerator's People

Contributors

zschutzman avatar

Watchers

James Cloos avatar Max Hully avatar  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.