Code Monkey home page Code Monkey logo

2015-algorithms's People

Contributors

1nclusion avatar andreg-p avatar annesophiehimmel avatar ay4me avatar julian-upc avatar lovisanderson avatar neosonea avatar raoulschikora avatar robertloewe avatar sawein avatar sybsyb avatar theundertalker avatar

Stargazers

 avatar

Watchers

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

2015-algorithms's Issues

Material for Coxeter group orbits

Dear all,

  • In dancing_links/c++ you can find the material we discussed today;
  • in coxeter_group_orbits/ you can find a specification and some skeleton files for the new project.

Have fun!

An

If I understand the specification correctly, the normal vectors for An have dimension n+1.
Does the input vector still have dimension n? How would that work? Or is it a special case and in this case the vector also has dimension n+1?

flipping and moving pentominos

According to which axis shall we flip pentominos?
Also, when a method moves a pentomino out of our range, what shall we do with that, just leave it where it is? Give an error?

Turning in your code

We need to have a conversation about how everybody can turn in their code without stepping all over other people's code. Having everybody turn in their code into the same directory clearly won't work, so how about setting up some subdirectories?

fixed_pentominos_of(p)

The test uses this function, that our pentomino class does not have, shall we add it?
Also, what should it do? Shall we just hardcode the right numbers, or shall it create TileSets and calculate the size?

TileSets

So I would like to start a discussion about the TileSet definition.
As I see it a pentomino can be in a TileSet multiple times, exactly once per orientation it has.
But two pentominos that have same orientation but different coos, can those be both in one TileSet?

pattern for cell names

How exactly is the pattern to name the cells in the matrix.
I thought it was something like Rowname + Columnname, where the Rowname is like I[4] if this is the forth row added for the pentomino I, but that seems to not fit the pattern used in the tests.

test for TileSet

The test, that wants to check whether the 'Y' pentomino can be added in each orientation does not make deepcopies and therefore also rotates and flips the pentomino already in the set. Thereby the size o fthe set will always be 1.

normalize_coos()

What exactly is this function supposed to do?
There is no testcase from which I could get ideas about this.

turning around which point?

The test wants I to have the same coordinates after turning it twice, that demands one specific turning point.
If we normalize after turning anyway to get legal coordinates, why does it matter whether I moves when turned twice?

hashfunction

Ich bin mir nicht sicher, was hash(self) als Funktion genau ausgeben soll, nehme aber an, dass ein int erfordert wird. Stimmt das so?

std::set problem

It seems the function insert from std::set uses the "<" operator to insert objects and prohibit multiple entries of the same object.
Is there another good container or solution to fix this?

position columns

How should we handle invalid placements, meaning placements including names we do not have as columns?

dimensions

We have in the init-method the code-line self.dim = len(coos[0]).
Does that mean we have to consider that we might get more then 2 dimensions later on?
That would make turning much more difficult.

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.