Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- You have a list of commands, each represented by a 1 or a 0.
- 0 means unconditional block, 1 means conditional block.
- You also have a length, width and height.
- You build a rectangular prism with those dimensions out of command blocks, so that the signal travels all the way through.
- The signal goes in the X direction first (length), then the Z direction (width), then the Y direction (height).
- For any list of commands, there exists a length, width, and height that accommodates every command with the least surface area.
- This list is an attempt to find such dimensions.
- The first item on each line is the command list.
- The second item is the smallest possible surface area for that list.
- The third item is one of the dimension combos (LWH) that provides that surface area.
- The question is: is it without flaw?
- These numbers all assume you put the commands directly after another.
- It discounts any LWH combos where a conditional block would be placed on a turn, because it would not behave properly.
- However, there is another way to do it.
- You could insert empty blocks before the conditionals.
- If a conditional was going to be on a turn, you could just leave empty blocks until it wouldn't be on a turn.
- Would using the above method ever lead to a more efficient result?
- Is it possible to accommodate a command list shown here with a smaller surface area than the value I already have?
- What convoluted method of packing commands into a rectangular prism could you use to be more efficient than these?
- ---------------+
- To simplify the question, what is the best method to put a chain of command blocks in a box so that the box has the least possible surface area while allowing the blocks to function?
- Are these values here the best dimensions of boxes to support the commands specified?
- 0 : 6 : 1*1*1
- 00 : 10 : 1*1*2
- 01 : 10 : 2*1*1
- 000 : 14 : 1*1*3
- 001 : 14 : 3*1*1
- 010 : 14 : 3*1*1
- 011 : 14 : 3*1*1
- 0000 : 16 : 1*1*4
- 0001 : 16 : 2*1*2
- 0010 : 18 : 4*1*1
- 0011 : 18 : 4*1*1
- 0100 : 18 : 3*1*2
- 0101 : 18 : 4*1*1
- 0110 : 18 : 4*1*1
- 0111 : 18 : 4*1*1
- 00000 : 22 : 1*1*5
- 00001 : 22 : 3*1*2
- 00010 : 22 : 5*1*1
- 00011 : 22 : 5*1*1
- 00100 : 22 : 4*1*2
- 00101 : 22 : 5*1*1
- 00110 : 22 : 5*1*1
- 00111 : 22 : 5*1*1
- 01000 : 22 : 3*1*2
- 01001 : 22 : 3*1*2
- 01010 : 22 : 5*1*1
- 01011 : 22 : 5*1*1
- 01100 : 22 : 4*1*2
- 01101 : 22 : 5*1*1
- 01110 : 22 : 5*1*1
- 01111 : 22 : 5*1*1
- 000000 : 22 : 1*1*6
- 000001 : 22 : 2*1*3
- 000010 : 22 : 3*1*2
- 000011 : 22 : 3*1*2
- 000100 : 26 : 5*1*2
- 000101 : 26 : 6*1*1
- 000110 : 26 : 6*1*1
- 000111 : 26 : 6*1*1
- 001000 : 26 : 4*1*2
- 001001 : 26 : 4*1*2
- 001010 : 26 : 6*1*1
- 001011 : 26 : 6*1*1
- 001100 : 26 : 5*1*2
- 001101 : 26 : 6*1*1
- 001110 : 26 : 6*1*1
- 001111 : 26 : 6*1*1
- 010000 : 22 : 3*1*2
- 010001 : 22 : 3*1*2
- 010010 : 22 : 3*1*2
- 010011 : 22 : 3*1*2
- 010100 : 26 : 5*1*2
- 010101 : 26 : 6*1*1
- 010110 : 26 : 6*1*1
- 010111 : 26 : 6*1*1
- 011000 : 26 : 4*1*2
- 011001 : 26 : 4*1*2
- 011010 : 26 : 6*1*1
- 011011 : 26 : 6*1*1
- 011100 : 26 : 5*1*2
- 011101 : 26 : 6*1*1
- 011110 : 26 : 6*1*1
- 011111 : 26 : 6*1*1
- 0000000 : 24 : 1*1*7
- 0000001 : 28 : 4*1*2
- 0000010 : 28 : 4*1*2
- 0000011 : 28 : 4*1*2
- 0000100 : 30 : 3*1*3
- 0000101 : 30 : 7*1*1
- 0000110 : 30 : 7*1*1
- 0000111 : 30 : 7*1*1
- 0001000 : 30 : 5*1*2
- 0001001 : 30 : 5*1*2
- 0001010 : 30 : 7*1*1
- 0001011 : 30 : 7*1*1
- 0001100 : 30 : 6*1*2
- 0001101 : 30 : 7*1*1
- 0001110 : 30 : 7*1*1
- 0001111 : 30 : 7*1*1
- 0010000 : 28 : 4*1*2
- 0010001 : 28 : 4*1*2
- 0010010 : 28 : 4*1*2
- 0010011 : 28 : 4*1*2
- 0010100 : 30 : 6*1*2
- 0010101 : 30 : 7*1*1
- 0010110 : 30 : 7*1*1
- 0010111 : 30 : 7*1*1
- 0011000 : 30 : 5*1*2
- 0011001 : 30 : 5*1*2
- 0011010 : 30 : 7*1*1
- 0011011 : 30 : 7*1*1
- 0011100 : 30 : 6*1*2
- 0011101 : 30 : 7*1*1
- 0011110 : 30 : 7*1*1
- 0011111 : 30 : 7*1*1
- 0100000 : 28 : 3*1*3
- 0100001 : 28 : 4*1*2
- 0100010 : 28 : 4*1*2
- 0100011 : 28 : 4*1*2
- 0100100 : 30 : 3*1*3
- 0100101 : 30 : 7*1*1
- 0100110 : 30 : 7*1*1
- 0100111 : 30 : 7*1*1
- 0101000 : 30 : 5*1*2
- 0101001 : 30 : 5*1*2
- 0101010 : 30 : 7*1*1
- 0101011 : 30 : 7*1*1
- 0101100 : 30 : 6*1*2
- 0101101 : 30 : 7*1*1
- 0101110 : 30 : 7*1*1
- 0101111 : 30 : 7*1*1
- 0110000 : 28 : 4*1*2
- 0110001 : 28 : 4*1*2
- 0110010 : 28 : 4*1*2
- 0110011 : 28 : 4*1*2
- 0110100 : 30 : 6*1*2
- 0110101 : 30 : 7*1*1
- 0110110 : 30 : 7*1*1
- 0110111 : 30 : 7*1*1
- 0111000 : 30 : 5*1*2
- 0111001 : 30 : 5*1*2
- 0111010 : 30 : 7*1*1
- 0111011 : 30 : 7*1*1
- 0111100 : 30 : 6*1*2
- 0111101 : 30 : 7*1*1
- 0111110 : 30 : 7*1*1
- 0111111 : 30 : 7*1*1
- 00000000 : 24 : 1*1*8
- 00000001 : 24 : 2*1*4
- 00000010 : 28 : 4*1*2
- 00000011 : 28 : 4*1*2
- 00000100 : 28 : 4*1*2
- 00000101 : 28 : 4*1*2
- 00000110 : 28 : 4*1*2
- 00000111 : 28 : 4*1*2
- 00001000 : 30 : 3*1*3
- 00001001 : 30 : 3*1*3
- 00001010 : 34 : 8*1*1
- 00001011 : 34 : 8*1*1
- 00001100 : 34 : 7*1*2
- 00001101 : 34 : 8*1*1
- 00001110 : 34 : 8*1*1
- 00001111 : 34 : 8*1*1
- 00010000 : 34 : 5*1*2
- 00010001 : 34 : 5*1*2
- 00010010 : 34 : 5*1*2
- 00010011 : 34 : 5*1*2
- 00010100 : 34 : 7*1*2
- 00010101 : 34 : 8*1*1
- 00010110 : 34 : 8*1*1
- 00010111 : 34 : 8*1*1
- 00011000 : 34 : 6*1*2
- 00011001 : 34 : 6*1*2
- 00011010 : 34 : 8*1*1
- 00011011 : 34 : 8*1*1
- 00011100 : 34 : 7*1*2
- 00011101 : 34 : 8*1*1
- 00011110 : 34 : 8*1*1
- 00011111 : 34 : 8*1*1
- 00100000 : 28 : 4*1*2
- 00100001 : 28 : 4*1*2
- 00100010 : 28 : 4*1*2
- 00100011 : 28 : 4*1*2
- 00100100 : 28 : 4*1*2
- 00100101 : 28 : 4*1*2
- 00100110 : 28 : 4*1*2
- 00100111 : 28 : 4*1*2
- 00101000 : 34 : 6*1*2
- 00101001 : 34 : 6*1*2
- 00101010 : 34 : 8*1*1
- 00101011 : 34 : 8*1*1
- 00101100 : 34 : 7*1*2
- 00101101 : 34 : 8*1*1
- 00101110 : 34 : 8*1*1
- 00101111 : 34 : 8*1*1
- 00110000 : 34 : 5*1*2
- 00110001 : 34 : 5*1*2
- 00110010 : 34 : 5*1*2
- 00110011 : 34 : 5*1*2
- 00110100 : 34 : 7*1*2
- 00110101 : 34 : 8*1*1
- 00110110 : 34 : 8*1*1
- 00110111 : 34 : 8*1*1
- 00111000 : 34 : 6*1*2
- 00111001 : 34 : 6*1*2
- 00111010 : 34 : 8*1*1
- 00111011 : 34 : 8*1*1
- 00111100 : 34 : 7*1*2
- 00111101 : 34 : 8*1*1
- 00111110 : 34 : 8*1*1
- 00111111 : 34 : 8*1*1
- 01000000 : 28 : 3*1*3
- 01000001 : 28 : 3*1*3
- 01000010 : 28 : 4*1*2
- 01000011 : 28 : 4*1*2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement