Snake-in-the-box
From Wikipedia, the free encyclopedia
The snake-in-the-box problem in graph theory and computer science deals with finding a certain kind of path along the edges of a hypercube. This path starts at one corner and travels along the edges to as many corners as it can reach. After it gets to a new corner, the previous corner and all of its neighbors must be marked as unusable. The path should never travel to a corner after it's been marked unusable.
In graph theory terminology, this is called finding the longest possible induced path in a hypercube; it can be viewed as a special case of the induced subgraph isomorphism problem. There is a similar problems of finding long induced cycles in hypercubes is called the coil-in-the-box problem.
The snake-in-the-box problem was first described by Kautz (1958), motivated by the theory of error-correcting codes. The vertices of a solution to the snake or coil in the box problems can be used as a Gray code that can detect single-bit errors. Such codes have applications in electrical engineering, coding theory, and computer network topologies. In these applications, it is important to devise as long a code as is possible for a given dimension of hypercube. The longer the code, the more effective are its capabilities.
Finding the longest snake or coil becomes notoriously difficult as the dimension number increases and the search space suffers a serious combinatorial explosion. Some techniques for determining the upper and lower bounds for the snake-in-the-box problem include proofs using discrete mathematics and graph theory, exhaustive search of the search space, and heuristic search utilizing evolutionary techniques.
Contents |
[edit] Known lengths and bounds
The maximum length for the snake-in-the-box problem is known for dimensions one through seven; it is
Beyond that length, the exact length of the longest snake is not known; the best lengths found so far for dimensions eight through twelve are
- 97, 188, 363, 680, 1260.
For cycles (the coil-in-the-box problem), a cycle cannot exist in a hypercube of dimension less than two. Starting at that dimension, the lengths of the longest possible cycles are
Beyond that length, the exact length of the longest cycle is not known; the best lengths found so far for dimensions eight through twelve are
- 96, 180, 344, 630, 1238.
For both the snake and the coil in the box problems, it is known that the maximum length is proportional to 2n for an n-dimensional box, asymptotically as n grows large. However the constant of proportionality is not known.[1]
[edit] Notes
- ^ For asymptotic lower bounds, see Evdokimov (1961), Wojciechowski (1989), and Abbot & Katchalski (1991). For upper bounds, see Douglas (1969), Deimer (1985), Solov'eva (1987), Abbot & Katchalski (1988), Snevily (1994), and Zémor (1997).
[edit] References
- Abbot, H. L. & Katchalski, M. (1988), “On the snake in the box problem”, Journal of Combinatorial Theory, Series B 44: 12–24.
- Abbot, H. L. & Katchalski, M. (1991), “On the construction of snake-in-the-box codes”, Utilitas Mathematica 40: 97–116.
- Bitterman, D. S. (2004), New Lower Bounds for the Snake-In-The-Box Problem: A Prolog Genetic Algorithm and Heuristic Search Approach, MSAI thesis, Univ. of Georgia, <http://www.cs.uga.edu/~potter/CompIntell/bitterman_derrick_s_200412_ms.pdf>.
- Blaum, Mario & Etzion, Tuvi (2002), Use of snake-in-the-box codes for reliable identification of tracks in servo fields of a disk drive, U.S. Patent 6,496,312.
- Casella, D. A. & Potter, W. D. (2005), “Using Evolutionary Techniques to Hunt for Snakes and Coils”, 2005 IEEE Congress on Evolutionary Computation (CEC2005), vol. 3, pp. 2499–2504.
- Casella, D. A. (2005), New Lower Bounds for the Snake-in-the-Box and the Coil-in-the-Box Problems, Univ. of Georgia, <http://www.cs.uga.edu/~potter/CompIntell/casella_darren_a_200505_ms.pdf>.
- Danzer, L. & Klee, V. (1967), “Length of snakes in boxes”, Journal of Combinatorial Theory 2: 258–265.
- Davies (1965), “Longest 'separated' paths and loops in an N-cube”, IEEE Trans. Electron. Comput. EC-14: 261.
- Deimer, Knut (1985), “A new upper bound for the length of snakes”, Combinatorica 5 (2): 109–120.
- Douglas, Robert J. (1969), “Upper bounds on the length of circuits of even spread in the d-cube”, J. Combinatorial Theory 7: 206–214.
- Evdokimov, A. A. (1969), “Maximal length of a chain in a unit n-dimensional cube”, Mat. Zametki 6: 309–319.
- Kautz, W. H. (1958), “Unit-distance error-checking codes”, IRE Trans. Elect. Comput. 7: 177–180.
- Kim, S. & Neuhoff, D. L. (2000), “Snake-in-the-box codes as robust quantizer index assignments”, Proceedings of the IEEE International Symposium on Information Theory, pp. 402, DOI 10.1109/ISIT.2000.866700.
- Klee, V. (1970), “What is the maximum length of a d-dimensional snake?”, American Mathematical Monthly 77: 63–65.
- Kochut, K. J. (1996), “Snake-in-the-box codes for dimension 7”, Journal of Combinatorial Mathematics and Combinatorial Computing 20: 175–185.
- Lukito, A. & van Zanten, A. J. (2001), “A new non-asymptotic upper bound for snake-in-the-box codes”, Journal of Combinatorial Mathematics and Combinatorial Computing 39: 147–156.
- Paterson, Kenneth G. & Tuliani, Jonathan (1998), “Some new circuit codes”, IEEE Trans. Inform. Theory 44 (3): 1305–1309.
- Potter, W. D.; Robinson, R. W.; Miller, J. A.; Kochut, K. J.; Redys, D. Z. (1994). "Using the genetic algorithm to find snake in the box codes". Proceedings of the Seventh International Conference on Industrial & Engineering Applications of Artificial Intelligence and Expert Systems, Austin, Texas: 421–426.
- Snevily, H. S. (1994), “The snake-in-the-box problem: a new upper bound”, Discrete Mathematics 133: 307–314.
- Solov'eva, F. I. (1987), “An upper bound on the length of a cycle in an n-dimensional unit cube”, Metody Diskret. Analiz. 45: 71–76 and 96–97.
- Tuohy, D.R.; Potter, W.D.; Casella, D.A. (2007). "Searching for Snake-in-the-Box Codes with Evolved Pruning Models". Proceedings of the 2007 Int. Conf. on Genetic and Evolutionary Methods (GEM'2007), Las Vegas, Nevada: 3-9.
- Wojciechowski, J. (1989), “A new lower bound for snake-in-the-box codes”, Combinatorica 9 (1): 91–99.
- Yang, Yuan Sheng; Sun, Fang; Han, Song (2000). "A backward search algorithm for the snake in the box problem". J. Dalian Univ. Technol. 40 (5): 509–511.
- Zémor, Gilles (1997), “An upper bound on the size of the snake-in-the-box”, Combinatorica 17 (2): 287–298.
- Zinovik, I.; Kroening, D. & Chebiryak, Y. (2008), “Computing binary combinatorial gray codes via exhaustive search with SAT solvers”, IEEE Transactions on Information Theory 54 (4): 1819–1823, DOI 10.1109/TIT.2008.917695.
[edit] External links
- Potter, W. D. (2006). Current Records for the Snake-in-the-Box Problem.