Advertisement
tryashtar

Block Info

Dec 15th, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.91 KB | None | 0 0
  1. You have a list of commands, each represented by a 1 or a 0.
  2. 0 means unconditional block, 1 means conditional block.
  3. You also have a length, width and height.
  4. You build a rectangular prism with those dimensions out of command blocks, so that the signal travels all the way through.
  5. The signal goes in the X direction first (length), then the Z direction (width), then the Y direction (height).
  6. For any list of commands, there exists a length, width, and height that accommodates every command with the least surface area.
  7.  
  8. This list is an attempt to find such dimensions.
  9. The first item on each line is the command list.
  10. The second item is the smallest possible surface area for that list.
  11. The third item is one of the dimension combos (LWH) that provides that surface area.
  12.  
  13. The question is: is it without flaw?
  14. These numbers all assume you put the commands directly after another.
  15. It discounts any LWH combos where a conditional block would be placed on a turn, because it would not behave properly.
  16. However, there is another way to do it.
  17. You could insert empty blocks before the conditionals.
  18. If a conditional was going to be on a turn, you could just leave empty blocks until it wouldn't be on a turn.
  19.  
  20. Would using the above method ever lead to a more efficient result?
  21. Is it possible to accommodate a command list shown here with a smaller surface area than the value I already have?
  22. What convoluted method of packing commands into a rectangular prism could you use to be more efficient than these?
  23.  
  24. ---------------+
  25. 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?
  26. Are these values here the best dimensions of boxes to support the commands specified?
  27.  
  28. 0 : 6 : 1*1*1
  29. 00 : 10 : 1*1*2
  30. 01 : 10 : 2*1*1
  31. 000 : 14 : 1*1*3
  32. 001 : 14 : 3*1*1
  33. 010 : 14 : 3*1*1
  34. 011 : 14 : 3*1*1
  35. 0000 : 16 : 1*1*4
  36. 0001 : 16 : 2*1*2
  37. 0010 : 18 : 4*1*1
  38. 0011 : 18 : 4*1*1
  39. 0100 : 18 : 3*1*2
  40. 0101 : 18 : 4*1*1
  41. 0110 : 18 : 4*1*1
  42. 0111 : 18 : 4*1*1
  43. 00000 : 22 : 1*1*5
  44. 00001 : 22 : 3*1*2
  45. 00010 : 22 : 5*1*1
  46. 00011 : 22 : 5*1*1
  47. 00100 : 22 : 4*1*2
  48. 00101 : 22 : 5*1*1
  49. 00110 : 22 : 5*1*1
  50. 00111 : 22 : 5*1*1
  51. 01000 : 22 : 3*1*2
  52. 01001 : 22 : 3*1*2
  53. 01010 : 22 : 5*1*1
  54. 01011 : 22 : 5*1*1
  55. 01100 : 22 : 4*1*2
  56. 01101 : 22 : 5*1*1
  57. 01110 : 22 : 5*1*1
  58. 01111 : 22 : 5*1*1
  59. 000000 : 22 : 1*1*6
  60. 000001 : 22 : 2*1*3
  61. 000010 : 22 : 3*1*2
  62. 000011 : 22 : 3*1*2
  63. 000100 : 26 : 5*1*2
  64. 000101 : 26 : 6*1*1
  65. 000110 : 26 : 6*1*1
  66. 000111 : 26 : 6*1*1
  67. 001000 : 26 : 4*1*2
  68. 001001 : 26 : 4*1*2
  69. 001010 : 26 : 6*1*1
  70. 001011 : 26 : 6*1*1
  71. 001100 : 26 : 5*1*2
  72. 001101 : 26 : 6*1*1
  73. 001110 : 26 : 6*1*1
  74. 001111 : 26 : 6*1*1
  75. 010000 : 22 : 3*1*2
  76. 010001 : 22 : 3*1*2
  77. 010010 : 22 : 3*1*2
  78. 010011 : 22 : 3*1*2
  79. 010100 : 26 : 5*1*2
  80. 010101 : 26 : 6*1*1
  81. 010110 : 26 : 6*1*1
  82. 010111 : 26 : 6*1*1
  83. 011000 : 26 : 4*1*2
  84. 011001 : 26 : 4*1*2
  85. 011010 : 26 : 6*1*1
  86. 011011 : 26 : 6*1*1
  87. 011100 : 26 : 5*1*2
  88. 011101 : 26 : 6*1*1
  89. 011110 : 26 : 6*1*1
  90. 011111 : 26 : 6*1*1
  91. 0000000 : 24 : 1*1*7
  92. 0000001 : 28 : 4*1*2
  93. 0000010 : 28 : 4*1*2
  94. 0000011 : 28 : 4*1*2
  95. 0000100 : 30 : 3*1*3
  96. 0000101 : 30 : 7*1*1
  97. 0000110 : 30 : 7*1*1
  98. 0000111 : 30 : 7*1*1
  99. 0001000 : 30 : 5*1*2
  100. 0001001 : 30 : 5*1*2
  101. 0001010 : 30 : 7*1*1
  102. 0001011 : 30 : 7*1*1
  103. 0001100 : 30 : 6*1*2
  104. 0001101 : 30 : 7*1*1
  105. 0001110 : 30 : 7*1*1
  106. 0001111 : 30 : 7*1*1
  107. 0010000 : 28 : 4*1*2
  108. 0010001 : 28 : 4*1*2
  109. 0010010 : 28 : 4*1*2
  110. 0010011 : 28 : 4*1*2
  111. 0010100 : 30 : 6*1*2
  112. 0010101 : 30 : 7*1*1
  113. 0010110 : 30 : 7*1*1
  114. 0010111 : 30 : 7*1*1
  115. 0011000 : 30 : 5*1*2
  116. 0011001 : 30 : 5*1*2
  117. 0011010 : 30 : 7*1*1
  118. 0011011 : 30 : 7*1*1
  119. 0011100 : 30 : 6*1*2
  120. 0011101 : 30 : 7*1*1
  121. 0011110 : 30 : 7*1*1
  122. 0011111 : 30 : 7*1*1
  123. 0100000 : 28 : 3*1*3
  124. 0100001 : 28 : 4*1*2
  125. 0100010 : 28 : 4*1*2
  126. 0100011 : 28 : 4*1*2
  127. 0100100 : 30 : 3*1*3
  128. 0100101 : 30 : 7*1*1
  129. 0100110 : 30 : 7*1*1
  130. 0100111 : 30 : 7*1*1
  131. 0101000 : 30 : 5*1*2
  132. 0101001 : 30 : 5*1*2
  133. 0101010 : 30 : 7*1*1
  134. 0101011 : 30 : 7*1*1
  135. 0101100 : 30 : 6*1*2
  136. 0101101 : 30 : 7*1*1
  137. 0101110 : 30 : 7*1*1
  138. 0101111 : 30 : 7*1*1
  139. 0110000 : 28 : 4*1*2
  140. 0110001 : 28 : 4*1*2
  141. 0110010 : 28 : 4*1*2
  142. 0110011 : 28 : 4*1*2
  143. 0110100 : 30 : 6*1*2
  144. 0110101 : 30 : 7*1*1
  145. 0110110 : 30 : 7*1*1
  146. 0110111 : 30 : 7*1*1
  147. 0111000 : 30 : 5*1*2
  148. 0111001 : 30 : 5*1*2
  149. 0111010 : 30 : 7*1*1
  150. 0111011 : 30 : 7*1*1
  151. 0111100 : 30 : 6*1*2
  152. 0111101 : 30 : 7*1*1
  153. 0111110 : 30 : 7*1*1
  154. 0111111 : 30 : 7*1*1
  155. 00000000 : 24 : 1*1*8
  156. 00000001 : 24 : 2*1*4
  157. 00000010 : 28 : 4*1*2
  158. 00000011 : 28 : 4*1*2
  159. 00000100 : 28 : 4*1*2
  160. 00000101 : 28 : 4*1*2
  161. 00000110 : 28 : 4*1*2
  162. 00000111 : 28 : 4*1*2
  163. 00001000 : 30 : 3*1*3
  164. 00001001 : 30 : 3*1*3
  165. 00001010 : 34 : 8*1*1
  166. 00001011 : 34 : 8*1*1
  167. 00001100 : 34 : 7*1*2
  168. 00001101 : 34 : 8*1*1
  169. 00001110 : 34 : 8*1*1
  170. 00001111 : 34 : 8*1*1
  171. 00010000 : 34 : 5*1*2
  172. 00010001 : 34 : 5*1*2
  173. 00010010 : 34 : 5*1*2
  174. 00010011 : 34 : 5*1*2
  175. 00010100 : 34 : 7*1*2
  176. 00010101 : 34 : 8*1*1
  177. 00010110 : 34 : 8*1*1
  178. 00010111 : 34 : 8*1*1
  179. 00011000 : 34 : 6*1*2
  180. 00011001 : 34 : 6*1*2
  181. 00011010 : 34 : 8*1*1
  182. 00011011 : 34 : 8*1*1
  183. 00011100 : 34 : 7*1*2
  184. 00011101 : 34 : 8*1*1
  185. 00011110 : 34 : 8*1*1
  186. 00011111 : 34 : 8*1*1
  187. 00100000 : 28 : 4*1*2
  188. 00100001 : 28 : 4*1*2
  189. 00100010 : 28 : 4*1*2
  190. 00100011 : 28 : 4*1*2
  191. 00100100 : 28 : 4*1*2
  192. 00100101 : 28 : 4*1*2
  193. 00100110 : 28 : 4*1*2
  194. 00100111 : 28 : 4*1*2
  195. 00101000 : 34 : 6*1*2
  196. 00101001 : 34 : 6*1*2
  197. 00101010 : 34 : 8*1*1
  198. 00101011 : 34 : 8*1*1
  199. 00101100 : 34 : 7*1*2
  200. 00101101 : 34 : 8*1*1
  201. 00101110 : 34 : 8*1*1
  202. 00101111 : 34 : 8*1*1
  203. 00110000 : 34 : 5*1*2
  204. 00110001 : 34 : 5*1*2
  205. 00110010 : 34 : 5*1*2
  206. 00110011 : 34 : 5*1*2
  207. 00110100 : 34 : 7*1*2
  208. 00110101 : 34 : 8*1*1
  209. 00110110 : 34 : 8*1*1
  210. 00110111 : 34 : 8*1*1
  211. 00111000 : 34 : 6*1*2
  212. 00111001 : 34 : 6*1*2
  213. 00111010 : 34 : 8*1*1
  214. 00111011 : 34 : 8*1*1
  215. 00111100 : 34 : 7*1*2
  216. 00111101 : 34 : 8*1*1
  217. 00111110 : 34 : 8*1*1
  218. 00111111 : 34 : 8*1*1
  219. 01000000 : 28 : 3*1*3
  220. 01000001 : 28 : 3*1*3
  221. 01000010 : 28 : 4*1*2
  222. 01000011 : 28 : 4*1*2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement