Author Topic: Unique Representation of Cube Configurations  (Read 3334 times)

0 Members and 1 Guest are viewing this topic.

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Unique Representation of Cube Configurations
« on: November 30, 2012, 11:13:54 pm »
In my engineering class our teacher gave us a challenge to draw a sketch of every unique combination of 3,4,5, and 6 cubes. I spent about 30 minutes on that before I realized that I was making lots of duplicates. I wanted to find a way to tell if one would be unique without having to actually make it. I'm not good at rotating it in my head so I wanted something like a formula for uniqueness. I was thinking maybe something like the polynomials, sets, and numbers used to represent knots would work, but I haven't been able to figure out how to do that.

The approaches I have tried are as follows:
Have a set of numbers that just contains how many cubes it touches
Have a set of ordered pairs/trios/etc that are at junctions that say how far it goes in each direction
Have a sets of ordered pairs like above just group them with a number that says what the shortest straight line distance between the junctions are.

I saw that all of these failed. How else could I do this and would a representation allow me to generate all possible cubes without brute forcing it.
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Unique Representation of Cube Configurations
« Reply #1 on: November 30, 2012, 11:22:51 pm »
What do you mean by "Unique Representation of Cube Configurations"?
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline phenomist

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 132
  • Rating: +46/-3
    • View Profile
Re: Unique Representation of Cube Configurations
« Reply #2 on: December 01, 2012, 12:14:06 am »
My guess: http://en.wikipedia.org/wiki/Polycube

Good luck with 6 :P
Level Designer for Graviter

[Disclaimer: I can't program for my life.]

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Unique Representation of Cube Configurations
« Reply #3 on: December 01, 2012, 04:47:02 am »
According to wikipedia there are 112 unique combinations for 6. Have fun.
« Last Edit: December 01, 2012, 04:47:10 am by willrandship »