Jump to content
BrainDen.com - Brain Teasers

superprismatic

Moderator
  • Posts

    1267
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by superprismatic

  1. superprismatic

    presented by Wikipedia): - For each 15-bit string a denote a1...a15 it's bits. - Choose A such that all the bits except a1, a2, a4 and a8 can be chosen freely and bits a1,a2,a4,a8 are bound to the following equations: a1=a3+a5+a7+a9+a11+a13+a15 a2=a3+a6+a7+a10+a11+a14+a15 a4=a5+a6+a7+a12+a13+a14+a15 a8=a9+a10+a11+a12+a13+a14+a15 Visual matrix representation: a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a1 X X X X X X X a2 X X X X X X X a4 X X X X X X X a8 X X X X X X X - Approaches of type II are what Carbon1nTheRough had in mind. Choose a minimum number of seeds (11010001000000 in his case, which is actual easy to remember 1 if position is a power of 2 and 0 otherwise) and choose addition between elements in A and multiplication between one element in A and any other element as generating mechanisms i.e. generating a cyclic code as an ideal in a certain ring. As I said, choosing rotation/cyclic shift as a generating mechanism is not enough since rotation/cyclic shift is only multiplication by a particular element - polynomial p(X)=X or 0100..00. So you basically need at least an additive group (e.g. additive group generated by 4 strings with only one bit as 1, on positions 1,2,4 and 8) as seeds and then allow for full-multiplication (modulo 2) to grow/generate the set A. Rotation/cyclic shift is not sufficient. I think the different viewpoints come from different interpretations for the n=3 case. n=3=2^2-1 so 2 balls are in the Hamming partition. There are also 2-partitions of the same space which do not follow construction by Hamming distance one of which is given as example. The following are different 2-partitions with a "center (set of elements graviting the center)" notation for Hamming : - Linear/Hamming: 000 (100, 010, 001) and 111 (011, 101, 110). - Cyclic partition: (110, 101, 011, 000) and mirror (001, 010, 110, 111). All Hamming codes are notorios to being closed under addition (as any linear code) and although not all Hamming code presentations are cyclic themselves, they are equivalent to a Hamming code presentation that is a cyclic code. In my opinion, the cyclic view is much harder to grasp for n>3. Although such a cyclic partition does exist (as Hamming codes are equivalent to a cyclic code), it's not that simple as choosing a minimal seed and reconstructing the rest with rotation/mirroring/addition as it looks like for n=3. For n=7, one can indeed construct such a (cyclic) set easily (roughly following Carbon1nTheRough ideas) using mirroring and rotation. For n=15 and above, I don't see an easy construction (for n=15, a partition has 2048 elements so less than log(2048) would sound as a nice seed set). I personally like a star/planets analogy view on Hamming partitions which I will use in the following. Assume a finite universe of size 2^n in which all points are either stars or planets. All centers in the Hamming partition are stars and all points not in A are planets which revolve around exactly one star. Recall some of the previous notes on how centers in A relate to one another: 1) (Local sparsity) Two centers are at a distance of at least 2 from one another: The 2 centers cannot be at distance 1 from one another i.e. one "graviting" around another one since the radius-1 balls around each other would collide. Moreover, since the balls don't touch, two centers cannot be at distance 2 from one another. In that case, the balls would share at least a string (two strings in fact) that can be found in the middle of the two-step flipping transition which gets us from one center to another (definition of distance 2). 2) (Global density) Two centers cannot be too much apart either or more precisely, for each center there must be at least one center at distance 3 from it (for n>=2). Just imagine center A - a string B gravitating around A (at distance 1) and a string C obtained by flipping another bit from B (not the one that differentiates between A and B). Distance between A and C is 2 so C is not a center. However, C must gravitate around a center since this a partition after all. 3) The Hamming distance is also a metric on the n-bit space - the triangle inequality d(A,C) <= d(A,B) + d(B,C) holds for the Hamming distance. It's easy to see that equality is reached if and only if the set of positions in which A and B are different is disjoint from the set of positions in which B and C are different. So, starting from s=null-string which has 0 1-bits (call it our Sun), we find all strings with 1 1-bit graviting around this center (call them planets) and the all 2 1-bit strings (planets in another solar system) graviting around other centers (stars). Since these neighbor stars cannot have one 1-bit, then reaching them from one of the 2 1-bit planets means flipping one of the other bits from them - a bit which is 0 for planets. Hence these neighboring stars have 3 1-bits = are at distance 3 from our sun (seed). However not all 3-bit strings can be stars since for example 11100..0 and 01110..0 are at distance 2 from one another. Choosing a set of stars from these 3-bit strings is certainly not unique, since rotation/shifting for example can lead to alternative partitions. There are nC3 combinations of 3 1-bit strings. First, let's see how many we need. For n=7, m=3 so we need 2^(7-3)=16 stars in A. Taking s=0000000 and non-s=1111111 in A, 14 pairs remain. nC3=7C3=7*6*5/2*3=35 points at distance 3 from s. Similarly, only 35 points have 4 1-bits and thus lie at distance 3 from non-s and therefore distance n-3=4 from s. It is then clear that the only stars other than s and non-s must lie at either distance 3 or 4 from s, otherwise they would be too close from s or non-s. The symmetry involved in the Hamming hypercube shows that there are as many stars at distance 3 from s as stars at distance 4 from non-s so 14/2=7=n stars are in each category. Moreover, choosing 7 stars at distance 3 from s (which lie at least at distance 3 from each other) forces us to consider their mirrors as the other set of stars. Note that if you get lucky and choose a stars whose rotations are all at distance at least 3 from one another, your job is finished since there are 7 rotations possible. Since these are stars with 3 1-bit, achieving a distance of at least 3 means that when rotating, no more than 1 pair of these 3 1-bits can overlap (2 pairs of 1-bits overlapping determine a Hamming distance of 2 - remaining 1-bits can be flipped to go from one star to another - as seen in the following counter example: 1110000 and 01110000). A beautiful (easier to prove) seed for the 3-bit stars is the one involved in all strategies in the other posts - one in which the 1-bits are on positions that are powers of 2. For n=3 this means 1101000. So, for n=3 a simple set A can be found by taking s=0000000, p=1101000, all the strings that can be obtained from p by shifting (1+1+6=8 so far) and all their mirror strings (totaling 16 so far). For n=15 the problem is not that simple. Consider Carbon1nTheRough's partial solution. He chooses s=000000000000000, p=110100010000000 and their mirrors and cyclic shifts (because he does not consider a predetermined fixed position i.e. a leader). Problem is that d(s,p)=4 and no shifting modifies the number of 1's (1-bits) in a string. So there is no star at distance 3 from s which contradicts the Global density property of Hamming partitions. Therefore it is at best incomplete/partial in achieving a Hamming code/Hamming partition, no matter how you look at it. For n=15, I do not see such an easy-to-explain construction using mirroring/shifting and maybe addition (n=15=2^4-1, m=4, 2^(n-m)=2^11=2048 stars needed). From an algebraic point of view, a binary linear cyclic code can be generated by the polynomial g(x)=1+x+x^4. Completely classifying/constructing 1-error correcting codes of length n is not so simple as it may seem. If one defines two codes to be equivalent if one can turn one code into the other by permuting the coordinates and adding a constant vector, then characterization of equivalence clases is non-trivial for n>=15. For example there are 5983 non-equivalent perfect codes of length 15 (while there is a unique perfect code for n=3, n=7). Several recent results can be found here and here . n=31 is still an open challenge I think. Thanks, araver, I was confused by the solution comments made by Carbon1nTheRough, bushindo, and Kornrade. They obviously understood something which I missed somewhere along the line. I very much appreciate your excellent explanation. I now understand the other's comments on solution. I also wish to thank Kornrade for this beautiful problem. But without your lengthy explanation, araver, I would be spending at least several more hours pondering this (possibly without success).
  2. Let A, B, C, D, and E be statements. Consider the following four statements made from these using the usual five sentential connectives ~, ∨, &, →, and ↔ (explained below): I: (((A&B)∨(B↔A))∨E)↔(((C↔(C∨&A)∨(E&A)) II: ((~((D∨((A&(D→∨((~C∨A)∨)∨E)∨E)&A)↔A III: ((~A∨(C→A))&~C)→(B→(B→((((A∨B)&A)∨E)&A))) IV: (A&(E→((E∨A)→E)))→((((E→A)↔D)↔(E↔C))∨E) [/code] Which of the following statements are derivable from the above set of four statements, and which are not? [code] Statement 1: B∨(C∨(E&(D&(E∨((~E→A)&(A∨(E↔(C&)))))) Statement 2: (((((A↔D)↔(B→D))&D)↔(((C∨E)→D)∨∨A)↔B Statement 3: (~(((C&B)∨A)&C)→A)∨(A&(E→(C∨(E→(B∨C))))) Statement 4: B∨(E↔(A↔(~(B&((E∨((E∨A)→A))↔∨(A&D)))) Statement 5: A↔(((B↔C)&E)∨((D&B)&(D∨((A&D)&(E↔A))))) Statement 6: (((((E∨~A)∨C)↔D)→((B↔D)↔D))∨A)&(E↔(E&A)) The five sentential connectives are: 1. ~ (not) ~X is true when X is false and ~X is false when X is true. 2. ∨ (or) X∨Y is true when at least one of X and Y is true, otherwise it is false. 3. & (and) X&Y is true when both X and Y are true; otherwise it is false. 4. → (implication) X→Y is true unless X is true and Y is false, in which case it is false. 5. ↔ (equivalence) X↔Y is true when X and Y have the same truth value, otherwise it is false. In case someone would rather have the RPN version of the statements, I include them below: I: AB&BA↔∨E∨CCB∨↔A&EA&∨↔ II: DADB→&C~A∨B∨∨∨E∨~E∨A&A↔ III: A~CA→∨C~&BBAB∨A&E∨A&→→→ IV: AEEA∨E→→&EA→D↔EC↔↔E∨→ Statement 1: BCEDEE~A→AECB&↔∨&∨&&∨∨ Statement 2: AD↔BD→↔D&CE∨D→B∨↔A∨B↔ Statement 3: CB&A∨C&~A→AECEBC∨→∨→&∨ Statement 4: BEABEEA∨A→∨B↔&~AD&∨↔↔∨ Statement 5: ABC↔E&DB&DAD&EA↔&∨&∨↔ Statement 6: EA~∨C∨D↔BD↔D↔→A∨EEA&↔& [/code]
  3. superprismatic

    I can't even find 12 different colors that EE is the way to be was able to distinguish, let alone the 24 you claim are there! I don't think anybody will bother working on it unless the 24 colors are more clearly distinguishable. This color problem is keeping me from doing anything on the problem. I expect this may be true for others as well. Please fix the colors so that we can work on it.
  4. And yes, math is very cool!
  5. Bother me? No! On the contrary, I enjoy your puzzles very much. If I am unsure about some parts of a puzzle, I'll do what Bushindo did and simply ask about it. I don't understand why anyone would do otherwise. Please keep your puzzles coming.
  6. Recursive functions? I just noticed that! I only summed the terms of a simple series. I understand that you could do this with recursive functions, but it seems like overkill in this case. I guess we all have our different ways of approaching things. I suppose that's why maths are so cool!
  7. Nice Puzzle! I don't know where you get them, but keep them coming.
  8. Oh...OK. I guess I'm done. Thanks for the puzzle!
  9. Evaluate 2 *|* 1 please.
  10. Please give the value of 14 *|* 14
  11. Bushindo's nice "Find the permutation" problem, which intermingled a binary array with permutations, inspired me to strike out in a similar vein. Here's the outcome. Consider the permutation on 16 things: 1 -> 13 2 -> 5 3 -> 14 4 -> 3 5 -> 12 6 -> 9 7 -> 11 8 -> 10 9 -> 16 10 -> 6 11 -> 1 12 -> 15 13 -> 7 14 -> 4 15 -> 2 16 -> 8 [/code] This can be written in [b]cyclic form[/b] like this: (1,13,7,11)(2,5,12,15)(3,14,4)(6,9,16,8,10) so that the cyclic structure of the permutation is easily seen. (1,13,7,11) is just shorthand for 1 -> 13 -> 7 -> 11 -> 1 ..., and is seen to be a 4-long cycle. We will use this cyclic form for permutations in this problem. We will assign a score to any permutation of 16 elements by using the 16×16 array of integers below (the rows and columns are numbered for ease of reference). The permutation will decide which elements of this array will be added together to form the score. If i -> j in the permutation (or, equivalently, if j follows i in the cyclic form of it), then the element in the i[sup]th[/sup] row and j[sup]th[/sup] column is chosen to be in the sum. For example, the score for the above permutation is seen to be 3277 because [code] 219 from row 1, column 13 +226 from row 2, column 5 +131 from row 3, column 14 +136 from row 4, column 3 +218 from row 5, column 12 +230 from row 6, column 9 +254 from row 7, column 11 +203 from row 8, column 10 +245 from row 9, column 16 +241 from row 10, column 6 +185 from row 11, column 1 +201 from row 12, column 15 +246 from row 13, column 7 +135 from row 14, column 4 +157 from row 15, column 2 +250 from row 16, column 8 ----- 3277 total The array: [code] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 -155 -107 94 45 -34 -19 -7 111 -45 -64 233 -97 219 251 28 254 2 -199 96 4 42 226 -101 -64 -223 31 155 -132 119 164 -50 -109 -57 3 -202 99 -218 -91 239 84 121 -62 18 24 208 35 -174 131 -250 106 4 66 11 136 -230 141 -99 -136 134 3 -63 88 -2 95 74 -37 39 5 -180 109 -23 -32 -141 -50 141 62 98 76 -248 218 112 -147 194 -105 6 188 92 65 5 116 -28 196 -150 230 141 41 -142 -56 130 59 -218 7 47 -153 -59 -102 246 60 -158 -125 -172 55 254 223 107 -235 -208 234 8 94 174 127 7 106 -160 159 -194 -98 203 -208 129 -5 250 62 240 9 231 -136 183 -21 229 -221 -82 -1 -240 189 75 -73 13 -43 -70 245 10 4 -180 51 33 -94 241 231 -133 -191 -224 145 227 -17 65 -69 212 11 185 -129 -74 152 -145 4 0 59 -143 30 112 193 172 -21 -59 -205 12 -239 -121 60 -174 154 -155 -150 -8 -147 -146 -107 -231 -137 -133 201 59 13 -97 -113 -73 13 141 204 246 -68 193 190 -110 205 -130 32 44 -54 14 -109 -176 -125 135 184 167 152 156 -228 248 142 155 168 17 -183 -240 15 -131 157 19 -2 117 83 206 247 -100 -10 -193 -93 149 -31 -96 66 16 -61 -21 152 -22 35 136 180 250 81 199 182 -27 87 5 89 -166 The problem is in 3 parts: 1. Find the highest scoring permutation which has one 16-long cycle 2. Find the highest scoring permutation which has two 8-long cycles 3. Find the highest scoring permutation which has four 4-long cycles
×
×
  • Create New...