Code Monkey home page Code Monkey logo

grid-reductions's People

Contributors

jeffdshen avatar sierangho avatar

Watchers

 avatar  avatar  avatar

grid-reductions's Issues

Post-GridPlacer compressor

Input: GadgetConfiguration
Output: GadgetConfiguration

Description:

  1. Check if there's a path from top to bottom that only goes through the side of wires when going down, or empty spaces when going left <-> right.
  2. If so, then for each wire gadget, check if the wire gadget is a part of a larger wire, get the total wire length.
  3. See if each wire can be shrunk by 1 to produce a smaller valid wire.

Solved state post processor

Given a mapping of (input, gadget) -> (output, solved gadget), substitute the final state to get a solved state

Planarizer optimizations

Improve on: 081f0c4

Description:

  1. Create an accurate cost function: sum_over_rows_and_cols(max_over_cells_in_row_or_col(cell_cost_in_direction))
    (a) Handle large nodes
    (b) One way to test: generate some test planarizations, check if cost function is close to the LP gadget placer results.
  2. Pick a set of nodes (1 to 2) to re-place, delete them, and then re-place them in the place with the min cost.
  3. Remember the best cost + configuration, repeat until convergence
  4. (optional) randomly allow worse configurations: https://en.wikipedia.org/wiki/Simulated_annealing

Code pointers:

  1. GadgetPlanarizerInstance
  2. AbstractCostFunction

Rotatable gadgets

Allow user to allow or provide multiple orientations of the same gadget. Then the planarizer can use this to generate more optimal configurations.

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.