GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Algebra
  • Applied Mathematics
  • Calculus and Analysis
  • Discrete Mathematics
  • Foundations of Mathematics
  • Geometry
  • History and Terminology
  • Number Theory
  • Probability and Statistics
  • Recreational Mathematics
  • Topology
  • Alphabetical Index
  • Random Entry
  • New in MathWorld

This view

  • Original page
  • New address

GeezerVison is showing mathworld.wolfram.com — Two-Distance Code -- from Wolfram MathWorld

Search

Two-Distance Code


A two-distance code is a set of equal-length words whose distinct pairs have Hamming distance in a prescribed two-element set. Write A_q(n,{2,4}) for the largest size of such a code of length n over a q-symbol alphabet when the permitted distances are 2 and 4 (Djaljapayan et al. 2026ab). No linearity or finite field structure is assumed.

Djaljapayan et al. (2026b) proved that

 A_q(n,{2,4})=1+(n; 2)

for q=3 or 4 and every n>=6. For every integer q>=5, Djaljapayan et al. (2026a) proved the same formula when

 n>=[max(2q+1,(17+sqrt(8q^2+96q-95))/2)],

where [x] is the ceiling function. The optimal threshold is the least N for which the formula holds for every n>=N. For q>=26 it lies between 2q-1 and 2q+1. Djaljapayan et al. (2026b) report ChatGPT assistance with constructing independent verification software.

For distances measured in Euclidean space, the corresponding objects are Euclidean two-distance sets. Their cardinality bounds differ from those for Hamming-space codes (Bu et al. 2026).


See also

Codeword, Error-Correcting Code, Hamming Distance

Explore with Wolfram|Alpha

WolframAlpha

More things to try:

  • 10 by 10 addition table
  • d/dx[ x f(x^2) ]
  • lim (x^2 + 2x + 3)/(x^2 - 2x - 3) as x->3

References

Bu, B.; Lee, C.-Y.; Sheng, Y.-H.; Tsai, M.-T.; Yi, H.; and Yu, W.-H. "Johnson Optimality and Uniqueness for Distance Ratio 1:sqrt(2)." 29 Oct 2026. https://arxiv.org/abs/2610.40367.Djaljapayan, V.; Lin, Y.-C. R.; and Yu, W.-H. "Asymptotically Sharp Length Thresholds for q-ary Codes with Distances 2 and 4." 22 Oct 2026a. https://arxiv.org/abs/2610.30613.Djaljapayan, V.; Yu, W.-H.; and Lin, Y.-C. R. "The Ternary and Quaternary Cases of the {2,4}-Distance Code Conjecture." 22 Oct 2026b. https://arxiv.org/abs/2610.30615.

Cite this as:

Weisstein, Eric W. "Two-Distance Code." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Two-DistanceCode.html

Subject classifications

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.