Next Article in Journal
Lagrangian Partition Functions Subject to a Fixed Spatial Volume Constraint in the Lovelock Theory
Next Article in Special Issue
Some Constructions and Mathematical Properties of Zero-Correlation-Zone Sonar Sequences
Previous Article in Journal
A Unifying Generator Loss Function for Generative Adversarial Networks
Previous Article in Special Issue
The c-Differential-Linear Connectivity Table of Vectorial Boolean Functions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Non-Projective Two-Weight Codes

1
Mathematisches Institut, Universität Bayreuth, D-95440 Bayreuth, Germany
2
Department of Data Science, Friedrich-Alexander-Universitäät Erlangen-Nürnberg, D-91058 Erlangen, Germany
Entropy 2024, 26(4), 289; https://doi.org/10.3390/e26040289
Submission received: 26 February 2024 / Revised: 22 March 2024 / Accepted: 26 March 2024 / Published: 27 March 2024
(This article belongs to the Special Issue Discrete Math in Coding Theory)

Abstract

:
It has been known since the 1970’s that the difference of the non-zero weights of a projective F q -linear two-weight code has to be a power of the characteristic of the underlying field. Here, we study non-projective two-weight codes and, e.g., show the same result under mild extra conditions. For small dimensions we give exhaustive enumerations of the feasible parameters in the binary case.
MSC:
94B05; 05B25; 68R01

1. Introduction

It has been known since the 1970s that the two non-zero weights of a projective F q -linear two-weight code C can be written as w 1 = u p t and w 2 = ( u + 1 ) p t , where u N 1 and p is the characteristic of the underlying finite field F q ; see Corollary 2 [1]. So, especially the weight difference w 2 w 1 is a power of the characteristic p. Here, we want to consider F q -linear two-weight codes C with non-zero weights w 1 < w 2 which are not necessarily projective. In [2], it was observed that if w 2 w 1 is not a power of the characteristic p, then the code C has to be non-projective, which settles a question in [3]. Here, we prove the stronger statement that C is repetitive, i.e., C is the l-fold repetition of a smaller two-weight code C , where l is the largest factor of w 2 w 1 that is coprime to the field size q, if C does not have full support, cf. [4]. Moreover, if a two-weight code C is non-repetitive and does not have full support, then its two non-zero weights can be written as w 1 = u p t and w 2 = ( u + 1 ) p t , where again p is the characteristic of the underlying finite field F q ; see Theorem 3.
Constructions for projective two-weight codes can be found in the classical survey paper [5]. Many research papers considered these objects since they, e.g., yield strongly regular graphs (srgs), and we refer the reader to [6] for a corresponding monograph on srgs. For a few more recent papers on constructions for projective two-weight codes, we refer, e.g., to [7,8,9,10]. In, e.g., [9], the author uses geometric language and speaks of constructions for two-character sets, i.e., sets of points in a projective space PG ( k 1 , q ) with just two different hyperplane multiplicities; call them s and t. In general, each (full-length) linear code is in one-to-one correspondence to a (spanning) multiset of points in some projective space PG ( k 1 , q ) . Here, we will also mainly use the geometric language and consider a few general constructions for two-character multisets of points corresponding to two-weight codes (possibly non-projective). For each subset H ¯ of hyperplanes in PG ( k 1 , q ) we construct a multiset of points M ( H ¯ ) such that all hyperplanes H H ¯ have the same multiplicity, say s, and also all other hyperplanes H H ¯ have the same multiplicity, say t. Actually, we characterize the full set of such multisets with at most two different hyperplane multiplicities given H ¯ ; see Theorems 1 and 2. Using this correspondence we have classified all two-weight codes up to symmetry for small parameters. For projective two-weight codes such enumerations can be found in [11].
Brouwer and van Eupen give a correspondence between arbitrary projective codes and arbitrary two-weight codes via the so-called BvE dual transform. The correspondence can be said to be 1–1, even though there are choices for the involved parameters to be made in both directions. In [12], the dual transform was, e.g., applied to the unique projective [ 16 , 5 , 9 ] 3 -code. For parameters α = 1 3 and β = 3 the result is a [ 69 , 5 , 45 ] 3 two-weight code, and for α = 1 3 and β = 5 the result is a [ 173 , 5 , 108 ] 3 two-weight code. This resembles the fact that we have some freedom when constructing a two-weight code from a given projective code, e.g., we can take complements or add simplex codes of the same dimension. Our obtained results may be rephrased in the language of the BvE dual transform by restricting to a canonical choice of the involved parameters. For further literature on the dual transform, see, e.g., [12,13,14,15]. For a variant that is rather close to our presentation we refer the reader to [16].
With respect to further related studies in the literature we remark that a special subclass of (non-projective) two-weight codes was completely characterized in [17]. A conjecture by Vega [18] states that all two-weight cyclic codes are the “known” ones, cf. [19]. Another stream of the literature considers the problem of whether all projective two-weight codes that have the parameters of partial k-spreads indeed have to be partial k-spreads. Those results can be found in papers considering extendability results for partial k-spreads or classifying minihypers; see, e.g., [20]. Two-weight codes have also been considered over rings instead of finite fields; see, e.g., [21].
The remaining part of this paper is structured as follows. In Section 2, we introduce the necessary preliminaries for linear two-weight codes and their geometric counterpart called two-character multisets in projective spaces. In general, multisets of points, corresponding to general linear codes, can be described via so-called characteristic functions and we collect some of their properties in Section 3. Examples and constructions for two-character multisets are given in Section 4. In Section 5, we present our main results. We close with enumeration of the results for two-character multisets in PG ( k 1 , q ) for small parameters in Section 6. We will mainly use geometric language and arguments. For the ease of the reader we only use elementary arguments and give (almost) all details.

2. Preliminaries

An [ n , k ] q -code C is a k-dimensional subspace of F q n , i.e., C is assumed to be F q -linear. Here, n is called the length and k is called the dimension of C. Elements c C are called codewords and the weight wt ( c ) of a codeword is given by the number of non-zero coordinates. Clearly, the all-zero vector 0 has weight zero and all other codewords have a positive integer weight. A two-weight code is a linear code with exactly two non-zero weights. A generator matrix for C is a k × n matrix G such that its rows span C. We say that C is of full length if for each index 1 i n there exists a codeword c C whose ith coordinate c i is non-zero, i.e., all columns of a generator matrix of C are non-zero. The dual code C of C is the ( n k )-dimensional code consisting of the vectors orthogonal to all codewords of C with respect to the inner product u , v = i = 1 n u i v i .
Now, let C be a full-length [ n , k ] q -code with generator matrix G. Each column g of G is an element of F q k and since g 0 we can consider g as a point in the projective space PG ( k 1 , q ) . Using the geometric language we call 1-, 2-, 3-, and ( k 1 ) -dimensional subspaces of F q k points, lines, planes, and hyperplanes in PG ( k 1 , q ) . Instead of an l-dimensional space we also speak of an l-space. By P we denote the set of points and by H we denote the set of hyperplanes of PG ( k 1 , q ) whenever k and q are clear from the context. A multiset of points in PG ( k 1 , q ) is a mapping M : P N , i.e., to each point P P we assign its multiplicity M ( P ) N . By # M = P P M ( P ) we denote the cardinality of M . The support supp ( M ) is the set of all points with non-zero multiplicity. We say that M is spanning if the set of points in the support of M span PG ( k 1 , q ) . Clearly permuting columns of a generator matrix G or multiplying some columns with non-zero elements in F q : = F q \ { 0 } yields an equivalent code. In addition to that we obtain a one-to-one correspondence between full-length [ n , k ] q -codes and spanning multisets of points M in PG ( k 1 , q ) with cardinality # M = n . Moreover, two linear [ n , k ] q -codes C and C are equivalent if their corresponding multisets of points M and M are. For details we refer, e.g., to [22]. A linear code C is projective if its corresponding multiset of points satisfies M ( P ) { 0 , 1 } for all P P . We also speak of a set of points in this case. The multisets of points with M ( P ) = 0 for all P P are called trivial.
Geometrically, for a non-zero codeword c C the set c · F q corresponds to a hyperplane H H and wt ( c ) = # M M ( H ) , where we extend the function M additively, i.e., M ( S ) : = P S M ( P ) for every subset S P of points. We call M ( H ) the multiplicity of hyperplane H H and have M ( V ) = # M for the entire ambient space V : = P . The number of hyperplanes # H , as well as the number of points # P , in PG ( k 1 , q ) is given by [ k ] q : = q k 1 q 1 . A two-character multiset is a multiset of points M such that exactly two different hyperplane multiplicities M ( H ) occur. i.e., a multiset of points M is a two-character multiset if its corresponding code C is a two-weight code. If M actually is a set of points, i.e., if we have M ( P ) { 0 , 1 } for all points P P , then we speak of a two-character set. We say that an [ n , k ] q -code C is Δ -divisible if the weights of all codewords are divisible by Δ . A multiset of points M is called Δ -divisible if the corresponding linear code is. More directly, a multiset of points M is Δ -divisible if we have M ( H ) # M ( mod Δ ) for all H H .
A one-weight code is an [ n , k ] q -code C such that all non-zero codewords have the same weight w. One-weight codes have been completely classified in [23] and are given by repetitions of so-called simplex codes. Geometrically, the multiset of points M in PG ( k 1 , q ) corresponding to a one-weight code C satisfies M ( P ) = l for all P P , i.e., we have # M = n = [ k ] q · l , M ( H ) = [ k 1 ] q · l for all H H , and w = # M M ( H ) = q k 1 · l . We say that a linear [ n , k ] q -code C is repetitive if it is the l-fold repetition of an [ n / l , k ] q -code C , where l > 1 , and non-repetitive otherwise. A given multiset of points M is called repeated if its corresponding code is. More directly, a non-trivial multiset of points M is repeated if the greatest common divisor of all point multiplicities is larger than one. We say that a multiset of points M or its corresponding linear code C has full support if supp ( M ) = P , i.e., if M ( P ) > 0 for all P P . So, for each non-repetitive one-weight code C with length n, dimension k, and non-zero weight w we have n = [ k ] q and w = q k 1 . Each non-trivial one-weight code, i.e., one with dimension at least 1, has full support. The aim of this paper is to characterize the possible parameters of non-repetitive two-weight codes (with or without full support). For the correspondence between [ n , k ] q -codes and multisets of points M in PG ( k 1 , q ) we have assumed that M is spanning. If M is not spanning, then there exists a hyperplane containing the entire support, so that M is two-character multiset if M induces a one-character multiset in the span of supp ( M ) , cf. Proposition 1. The structure of the set of all two-character multisets where the larger hyperplane multiplicity is attained for a prescribed subset of the hyperplanes is considered in Section 5.

3. Characteristic Functions

Fixing the field size q and the dimension k of the ambient space, a multiset of points in PG ( k 1 , q ) is a mapping M : P N . By F we denote the Q -vector space consisting of all functions F : P Q , where addition and scalar multiplication is defined pointwise. i.e., ( F 1 + F 2 ) ( P ) : = F 1 ( P ) + F 2 ( P ) and ( x · F 1 ) ( P ) : = x · F 1 ( P ) for all P P , where F 1 , F 2 F , and x Q are arbitrary. For each non-empty subset S P the characteristic function χ S is defined by χ S ( P ) = 1 if P S and χ S ( P ) otherwise. Clearly the set of functions χ P for all P P forms a basis of F for ambient space PG ( k 1 , q ) for all k 1 . Note that there are no hyperplanes if k = 1 and hyperplanes coincide with points for k = 2 . We also extend the functions F F additively, i.e., we set F ( S ) = P S F ( P ) for all S P . Our next aim is to show the well-known fact that also the set of functions χ H for all hyperplanes H H forms a basis of F for ambient space PG ( k 1 , q ) for all k 2 . In other words, also M ( P ) can be reconstructed from the M ( H ) :
Lemma 1. 
Let M F for ambient space PG ( k 1 , q ) , where k 2 . Then, we have
M ( P ) = H H : P H 1 [ k 1 ] q · M ( H ) + H H : P H 1 q k 1 · 1 [ k 1 ] q 1 · M ( H )
for all points P P .
Proof. 
Without loss of generality we assume k 3 . Since each point P P is contained in [ k 1 ] q of the # H = [ k ] q hyperplanes and each point P P is contained in [ k 2 ] q of the [ k 1 ] q hyperplanes that contain P, we have
H H : P H M ( H ) = [ k 2 ] q · | M | + [ k 1 ] q [ k 2 ] q M ( P ) = [ k 2 ] q · | M | + q k 2 M ( P )
so that
H H : P H M ( H ) [ k 2 ] q [ k 1 ] q · H H M ( H ) = q k 2 M ( P )
using [ k 1 ] q · # M = H H M ( H ) . Thus, we can conclude the stated formula using
1 q k 2 · 1 [ k 2 ] q [ k 1 ] q = 1 q k 2 · [ k 1 ] q [ k 2 ] q [ k 1 ] q = 1 [ k 1 ] q
and
[ k 2 ] q [ k 1 ] q · q k 2 = 1 [ k 1 ] q [ k 1 ] q · q k 1 = 1 q k 1 · 1 [ k 1 ] q 1 .
As an example we state that in PG ( 3 1 , 2 ) we have
M ( P ) = 1 3 · H H : P H M ( H ) 1 6 · H H : P H M ( H ) .
Lemma 2. 
Let M F for ambient space PG ( k 1 , q ) , where k 2 . Then, there exist α H Q for all hyperplanes H H such that
M = H H α H · χ H .
Moreover, the coefficients α H are uniquely determined by M .
Proof. 
Each point P P is contained in [ k 1 ] q hyperplanes and for each point Q P there are exactly [ k 2 ] q hyperplanes that contain both P and Q, so that
H H : P H χ H [ k 2 ] q [ k 1 ] q · H H χ H = q k 2 · χ P .
Using
M = P P M ( P ) · χ P
we conclude the existence of the α H Q . Since the functions χ P P P form a basis of the Q -vector space F , which is also generated by the functions χ H H H , counting # P = [ k ] q = # H yields that also χ H H H forms a basis and the coefficients α H are uniquely determined by M . □
If M F is given by the representation
M = P P α P · χ P
with α P Q we can easily decide whether M is a multiset of points. The necessary and sufficient conditions are given by α P N for all P P (including the case of a trivial multiset of points). If a multiset of points is characterized by coefficients α H for all hyperplanes H H , as in Lemma 2, then some α H may be fractional or negative. For two-character multisets we will construct a different unique representation, involving the characteristic functions χ H of hyperplanes; see Theorem 1.
Let us state a few observations about operations for multisets of points that yield multisets of points again.
Lemma 3. 
For two multisets of points M 1 and M 2 of PG ( k 1 , q ) and each non-negative integer n N the functions M 1 + M 2 and n · M 1 are multisets of points of PG ( k 1 , q ) .
In order to say something about the subtraction of multisets of points we denote the minimum point multiplicity of a multiset of points M by μ ( M ) and the maximum point multiplicity by γ ( M ) . Whenever M is clear from the context we also just write μ and γ instead of μ ( M ) and μ ( γ ) .
Lemma 4. 
Let M 1 and M 2 be two multisets of points of PG ( k 1 , q ) . If μ ( M 1 ) γ ( M 2 ) , then M 1 M 2 is a multiset of points of PG ( k 1 , q ) .
Definition 1. 
Let M be a multiset of points in PG ( k 1 , q ) . If l is an integer with l γ ( M ) , then the l-complement M l C of M is defined by M l C ( P ) : = l M ( P ) for all points P P .
One can easily check that M l C is a multiset of points with cardinality l · [ k ] q # M , maximum point multiplicity γ M l C = l μ ( M ) , and minimum point multiplicity μ M l C = l γ ( M ) . Using characteristic functions we can write M l C = l · χ V M , where V = P denotes the set of all points of the ambient space.
Given an arbitrary function M F there always exist α Q \ { 0 } and β Z such that α · M + β · χ V is a multiset of points.

4. Examples and Constructions for Two-Character Multisets

The aim of this section is to list a few easy constructions for two-character multisets of points M in PG ( k 1 , q ) . We will always abbreviate n = # M and denote the two occurring hyperplane multiplicities by s and t, where we assume s > t by convention.
Proposition 1. 
For integers 1 l < k , let L be an arbitrary l-space in PG ( k 1 , q ) . Then, χ L is a two-character set with n = [ l ] q , γ = 1 , μ = 0 , s = [ l ] q , and t = [ l 1 ] q .
Note that for the case l = k we have the one-character set χ V , which can be combined with any two-character multiset.
Lemma 5. 
Let M be a two-character multiset of points in PG ( k 1 , q ) . Then, for each integer 0 a μ ( M ) , each b N , and each integer c γ ( M ) the functions M a · χ V , M + b · χ V , b · M , and c · χ V M are two-character multisets of points.
For the first and the fourth construction we also spell out the implications for the parameters of a given two-character multiset:
Lemma 6. 
Let M be a multiset of points in PG ( k 1 , q ) such that M ( H ) { s , t } for every hyperplane H H . If M ( P ) l for every point P P , i.e., l μ ( M ) , then M : = M l · χ V is a multiset of points in PG ( k 1 , q ) such that M ( H ) { s [ k 1 ] q · l , t [ k 1 ] q · l } for every hyperplane H H .
Lemma 7. 
Let M be a multiset of points in PG ( k 1 , q ) such that M ( H ) { s , t } for every hyperplane H H . If M ( P ) u , i.e., γ ( M ) for every point P P , then the u-complement M : = u · χ V M of M is a multiset of points in PG ( k 1 , q ) such that M ( H ) u [ k 1 ] s , u [ k 1 ] t for every hyperplane H H .
We can also use two (almost) arbitrary subspaces to construct two-character multisets:
Proposition 2. 
Let a b 1 and 0 i b 1 be arbitrary integers, A be an a-space, and B be a b-space with dim ( A B ) = i in PG ( k 1 , q ) , where k = a + b i . Then, M = χ A + q a b · χ B satisfies M ( H ) { s , t } for all H H , where s = [ a 1 ] q + q a b · [ b 1 ] q and t = s + q a 1 . If i = 0 , then γ = q a b , and γ = q a b + 1 otherwise. In general, we have n = [ a ] q + q a b · [ b ] q and μ = 0 .
Proof. 
For each H H we have M ( H A ) [ a 1 ] q , [ a ] q and M ( H B ) [ b 1 ] q , [ b ] q . Noting that we cannot have both M ( H A ) = [ a ] q and M ( H B ) = [ b ] q , we conclude M ( H ) [ a 1 ] q + q a b · [ b 1 ] q , [ a ] q + q a b · [ b 1 ] q , [ a 1 ] q + q a b · [ b ] q = { s , t } . □
A partial k-spread is a set of k-spaces in PG ( v 1 , q ) with pairwise trivial intersection.
Proposition 3. 
Let S 1 , . . . , S r be a partial parallelism of PG ( 2 k 1 , q ) , i.e., the S i are partial k-spreads that are pairwise disjoint. Then,
M = i = 1 r S S i χ S
is a two-character multiset of PG ( 2 k 1 , q ) with n = r · [ k ] q and hyperplane multiplicities s = r · [ k 1 ] q , t = r · [ k 1 ] q + q k 1 , where r = i = 1 r S i .
Cf. example SU2 in [5]. Field changes work similarly to those explained in Section 6 [5] for two-character sets.
Based on hyperplanes we can construct large families of two-character multisets:
Lemma 8. 
Let H H be a subset of the hyperplanes of PG ( k 1 , q ) , where k 3 , then
M = H H χ H
is a two-character multiset with n = r [ k 1 ] q , s = r [ k 2 ] q + q k 2 , and t = r [ k 2 ] q , where r = # H .
By allowing H to be a multiset of hyperplanes we end up with ( τ + 1 ) -character sets, where τ is the maximum number of occurrences of a hyperplane in H .
Applying Lemma 6 yields:
Lemma 9. 
Let H H be a subset of the hyperplanes of PG ( k 1 , q ) , where k 3 . If each point P P is contained in at least μ N elements of H , then
M = H H χ H μ · χ V
is a two-character multiset with n = r [ k 1 ] q μ [ k ] q , s = r [ k 2 ] q + q k 2 μ [ k 1 ] q and t = r [ k 2 ] q μ [ k 1 ] q , where r = | H | .
In some cases we obtain two-character multisets where all point multiplicities have a common factor g > 1 . Here, we can apply the following general construction:
Lemma 10. 
Let M be a multiset of points in PG ( k 1 , q ) such that M ( H ) { s , t } for every hyperplane H H . If M ( P ) 0 ( mod g ) for every point P P , then M : = 1 g · M is a multiset of points in PG ( k 1 , q ) such that M ( H ) 1 g · s , 1 g · t for every hyperplane H H . Moreover, we have # M = 1 g · # M , μ ( M ) = 1 g · μ ( M ) , and γ ( M ) = 1 g · γ ( M ) .
Interestingly enough, it will turn out that we can construct all two-character multisets by combining Lemma 8 with Lemmas 5 and 10; see Theorems 1 and 2.

5. Geometric Duals and Sets of Feasible Parameters for Two-Character Multisets

To each two-character multiset M in PG ( k 1 , q ) , i.e., M ( H ) : H H = { s , t } for some s , t N , we can assign a set of points M ¯ by using the geometric dual, i.e., interchanging hyperplanes and points. More precisely, fix a non-degenerated billinear form ⊥ and consider pairs of points and hyperplanes ( P , H ) that are perpendicular with respect to ⊥ (different choices of ⊥ lead to isomorphic configurations). We write H = P for the geometric dual of a point. We define M ¯ via M ¯ ( P ) = 1 if M ( H ) = s , where H = P , and M ¯ ( P ) = 0 otherwise, i.e., if M ( H ) = t (a generalization of the notion of the geometric dual has been introduced by Brouwer and van Eupen [12] for linear codes and formulated for multisets of points by Dodunekov and Simonis [22]). Of course we have some freedom in how we order s and t. So, we may also write M ¯ ( P ) = M ( H ) t / ( s t ) { 0 , 1 } for all P P , where H = P . Noting the asymmetry in s and t we may also interchange the role of s and t or replace M ¯ by its complement. Note that in principle several multisets of points with two hyperplane multiplicities can have the same corresponding point set M ¯ .
For the other direction we can start with an arbitrary set of points M ¯ , i.e., M ¯ ( P ) { 0 , 1 } for all P P . The multiset of points with two hyperplane multiplicities M is then defined via M ( H ) = s if M ¯ ( P ) = 1 , where H = P , and M ( H ) = t if M ¯ ( P ) = 0 . i.e., we may set
M ( H ) = t + ( s t ) · M ¯ ( H ) .
While we have M ( H ) N for all s , t N , the point multiplicities M ( P ) induced by the hyperplane multiplicities M ( H ) (see Lemma 1) are not integral or non-negative in general. For suitable choices of s and t they are, while for others they are not.
Definition 2. 
Let M ¯ be a set of points in PG ( k 1 , q ) . By L ( M ¯ ) N 2 we denote the set of all pairs ( s , t ) N 2 with s t such that a multiset of points M in PG ( k 1 , q ) exists with M ( H ) = s if M ¯ ( H ) = 1 and M ( H ) = t if M ¯ ( H ) = 0 for all hyperplanes H H .
Directly from Lemma 5 we can conclude:
Lemma 11. 
Let M ¯ be a set of points in PG ( k 1 , q ) . If ( s , t ) L ( M ¯ ) , then we have
( s , t ) N + [ k 1 ] q , [ k 1 ] q N = u s + v [ k 1 ] q , u t + v [ k 1 ] q : u , v N L ( M ¯ ) .
Before we study the general structure of L ( M ¯ ) and show that it can be generated by a single element s 0 , t 0 in the above sense, we consider all non-isomorphic examples in PG ( 3 1 , 2 ) (ignoring the constraint s t ).
Example 1. 
Let M be a multiset of points in PG ( 2 , 2 ) uniquely characterized by M ( L ) = s N for some line L and M ( L ) = t N for all other lines L L . For each point P L , we have
M ( P ) = s + 2 t 3 4 t 6 = s 3
and for each point Q L , we have
M ( Q ) = 3 t 3 s + 3 t 6 = 3 t s 6 .
Since M ( P ) , M ( Q ) N we set x : = M ( P ) = s 3 and y : = M ( Q ) = 3 t s 6 , so that s = 3 x and t = 2 y + x . With this we have n = 3 x + 4 y , γ = max { x , y } , and s t = 2 ( x y ) . If x y , then we can write M = y · χ E + ( x y ) · χ L . If x y , then we can write M = y · χ E ( y x ) · χ L .
For Example 1 the set of all feasible ( s , t ) -pairs, assuming s t , is given by ( 3 , 1 ) N + ( 3 , 3 ) N . If we assume t s , then the set of feasible ( s , t ) -pairs is given by ( 0 , 2 ) N + ( 3 , 3 ) N . The vector ( 0 , 2 ) can be computed from ( 3 , 1 ) by computing a suitable complement.
Due to Lemma 6 we can always assume the existence of a point of multiplicity 0 as a normalization. So, in Example 1 we may assume x = 0 or y = 0 , so that M = y · χ E y · χ L or M = x · χ L .
Due to Lemma 10 we can always assume that the greatest common divisor of all point multiplicities is 1 as a normalization (excluding the degenerated case of an empty multiset of points). Applying both normalizations to the multisets of points in Example 1 leaves the two possibilities χ L and χ E χ L , i.e., point sets.
Due to Lemma 7 we always can assume # M γ ( M ) · [ k ] q / 2 . Applying also the third normalization to the multisets of points in Example 1 leaves only the possibility χ L , i.e., a subspace construction; see Proposition 1, where s = 3 , t = 1 , n = 3 , and s t = 2 .
Example 2. 
Let M be a multiset of points in PG ( 2 , 2 ) uniquely characterized by M ( L 1 ) = M ( L 2 ) = s N for two different lines L 1 , L 2 and M ( L ) = t N for all other lines L L 1 , L 2 . For P : = L 1 L 2 , we have
M ( P ) = 2 s + t 3 4 t 6 = 2 s t 3 ,
for each point Q L 1 L 2 \ { P } , we have
M ( Q ) = s + 2 t 3 s + 3 t 6 = s + t 6 ,
and for each point R L 1 L 2 , we have
M ( R ) = 3 t 3 2 s + 2 t 6 = 2 t s 3 .
Since M ( Q ) , M ( R ) N we set x : = M ( Q ) = s + t 6 and y : = M ( R ) = 2 t s 3 , so that s = 4 x y and t = 2 x + y . With this we have n = 6 x + 7 y and s t = 2 ( x y ) . Of course we need to have y 2 x so that M ( P ) 0 , which implies s 0 .
  • M ( P ) = 0 : y = 2 x , so that M ( P ) = 0 , M ( Q ) = x , M ( R ) = 2 x , and the greatest common divisor of M ( P ) , M ( Q ) , and M ( R ) is equal to x. Thus, we can assume x = 1 , y = 2 , so that s = 2 , t = 4 , n = 8 , γ = 2 , t s = 2 , and M = 2 χ E χ L 1 χ L 2 for two different lines L 1 , L 2 .
  • M ( Q ) = 0 : x = 0 , so that also y = 0 and M is the empty multiset of points.
  • M ( R ) = 0 : y = 0 , M ( P ) = 2 x , M ( Q ) = x , so that gcd ( M ( P ) , M ( Q ) , M ( R ) ) = x and we can assume x = 1 . With this we have s = 4 , t = 2 , n = 6 , γ = 2 , s t = 2 , and M = χ L 1 + χ L 2 for two different lines L 1 , L 2 .
So, Example 2 can be explained by the construction in Proposition 2.
Example 3. 
Let M be a multiset of points in PG ( 2 , 2 ) uniquely characterized by M ( L 1 ) = M ( L 2 ) = M ( L 3 ) = s N for three different lines L 1 , L 2 , L 3 with a common intersection point P = L 1 L 2 L 3 and M ( L ) = t N for all other lines. We have
M ( P ) = 3 s 3 4 t 6 = s 2 t 3
and
M ( Q ) = s + 2 t 3 2 s + 2 t 6 = t 3
for all points Q P . Since M ( P ) , M ( Q ) N we set x : = M ( P ) = s 2 t 3 and y : = M ( Q ) = t 3 , so that s = x + 2 y and t = 3 y . With this we have n = x + 6 y and s t = x y .
  • M ( P ) = 0 : x = 0 , so that we can assume y = 1 , which implies s = 2 , t = 3 , γ = 1 , n = 6 , t s = 1 , and M = χ E χ P for some point P.
  • M ( Q ) = 0 : y = 0 , so that we can assume x = 1 , which implies s = 1 , t = 0 , γ = 1 , n = 1 , s t = 1 , and M = χ P for some point P.
So, also Example 3 can be explained by the subspace construction in Proposition 1.
Example 4. 
Let M be a multiset of points in PG ( 2 , 2 ) uniquely characterized by M ( L 1 ) = M ( L 2 ) = M ( L 3 ) = s N for three different lines L 1 , L 2 , L 3 without a common intersection point, i.e., L 1 L 2 L 3 = , and M ( L ) = t N for all other lines. For each point P that is contained on exactly two lines L i , we have
M ( P ) = 2 s + t 3 s + 3 t 6 = 3 s t 6 ,
for each point Q that is contained on exactly one line L i , we have
M ( Q ) = s + 2 t 3 2 s + 2 t 6 = t 3 ,
and for the unique point R that is contained on none of the lines L i , we have
M ( R ) = 3 t 3 3 s + t 6 = 5 t 3 s 6 .
Since M ( P ) , M ( Q ) N , we set x : = M ( P ) = 3 s t 6 and y : = M ( Q ) = t 3 , so that s = 2 x + y and t = 3 y . With this we have n = 2 x + 5 y and s t = 2 ( x y ) .
  • M ( P ) = 0 : x = 0 , so that we can assume y = 1 , which implies s = 1 , t = 3 , t s = 2 , γ = 2 , n = 5 , and M = χ L + 2 χ P for some line L and some point P L .
  • M ( Q ) = 0 : y = 0 , so that x = 0 and M is the empty multiset of points.
  • M ( R ) = 0 : x = 2 y , so that we can assume y = 1 , which implies x = 2 , s = 4 , t = 6 , t s = 2 , γ = 2 , n = 9 , and the 2-complement of M equals M = χ L + 2 χ P for some line L and some point P L ; see the case M ( P ) = 0 .
So, also Example 4 can be explained by the construction in Proposition 2.
In Examples 1–4 we have considered all cases of 1 # M ¯ 3 up to symmetry. The cases # M ¯ { 0 , 7 } give one-character multisets. By considering the complement M = χ V M ¯ we see that examples for 4 # M ¯ 6 do not give anything new. Since the dimension of the ambient space is odd, we cannot apply the construction in Proposition 3.
Now, let us consider the general case. Given the set M ¯ of hyperplanes with multiplicity s we obtain an explicit expression for the multiplicity M ( P ) of every point P P depending on the two unknown hyperplane multiplicities s and t.
Lemma 12. 
Let M ¯ be a set of points in PG ( k 1 , q ) , where k 3 , and M be a multiset of points in PG ( k 1 , q ) such that M ( H ) = s if M ¯ ( H ) = 1 and M ( H ) = t if M ¯ ( H ) = 0 for all hyperplanes H H . Denoting the number of hyperplanes H P with M ( H ) = s by φ ( P ) and setting r : = # M ¯ , Δ : = s t Z , we have
M ( P ) = t + Δ · φ ( P ) [ k 1 ] q Δ q k 2 · [ k 2 ] q [ k 1 ] q · r φ ( P ) .
Proof. 
Counting gives that [ k 1 ] q φ ( P ) hyperplanes through P have multiplicity t, from the q k 1 hyperplanes not containing P exactly r φ ( P ) have multiplicity M ( H ) = s and q k 1 r + φ ( P ) have multiplicity M ( H ) = t . With this we can use Lemma 1 to compute
M ( P ) = H H : P H 1 [ k 1 ] q · M ( H ) + H H : P H 1 q k 1 · 1 [ k 1 ] q 1 · M ( H ) = H H : P H 1 [ k 1 ] q · M ( H ) H H : P H 1 q k 1 · q [ k 2 ] q [ k 1 ] q · M ( H ) = t + Δ [ k 1 ] q · φ ( P ) q [ k 2 ] q [ k 1 ] q · t Δ q k 1 · q [ k 2 ] q [ k 1 ] q · r φ ( P ) = t + Δ · φ ( P ) [ k 1 ] q Δ q k 2 · [ k 2 ] q [ k 1 ] q · r φ ( P ) .
Note that φ ( P ) = M ¯ ( P ) for all P P .
Lemma 13. 
Let M ¯ be a set of points in PG ( k 1 , q ) , where k 3 , and M be a multiset of points in PG ( k 1 , q ) such that M ( H ) = s if M ¯ ( H ) = 1 and M ( H ) = t if M ¯ ( H ) = 0 for all hyperplanes H H . Denote the number of hyperplanes H P with M ( H ) = s by φ ( P ) and uniquely choose m N , I N with 0 I such that φ ( P ) : P P = m + i : i I . If s > t and there exists a point Q P with M ( Q ) = 0 , then we have
t = Δ q k 2 · [ k 2 ] q · r m Δ · m
and
M ( P ) = Δ · i q k 2
for all points P P where i : = φ ( P ) m , r : = # M ¯ , and Δ : = s t N 1 . If M is non-repetitive, then Δ divides q k 2 .
Proof. 
Using Δ > 0 we observe that the expression for M ( P ) in Equation (17) is increasing in φ ( P ) . So, we need to choose a point Q P which minimizes φ ( Q ) to normalize using M ( Q ) = 0 , since otherwise we will obtain points with negative multiplicity. So, choosing a point Q P with φ ( Q ) = m we require
0 = M ( Q ) = t + Δ · m [ k 1 ] q Δ q k 1 · q [ k 2 ] q [ k 1 ] q · r m ,
which yields Equation (18). Using i : = φ ( P ) m and the expression for t we compute
M ( P ) = t + Δ · ( m + i ) [ k 1 ] q Δ q k 2 · [ k 2 ] q [ k 1 ] q · r m i = Δ q k 2 · [ k 2 ] q [ k 1 ] q · r m Δ · m [ k 1 ] q + Δ · ( m + i ) [ k 1 ] q Δ q k 2 · [ k 2 ] q [ k 1 ] q · r m i = Δ · i [ k 1 ] q + Δ · i q k 2 · [ k 2 ] q [ k 1 ] q = Δ · i q k 2
for all P P . Note that if f > 1 is a divisor of Δ that is coprime to q, then all point multiplicities of M are divisible by f. If Δ = q k 2 · f for an integer f > 1 , then all point multiplicities of M are divisible by f. Thus, we have that Δ divides q k 2 . □
Note that I = M ¯ ( H ) M ¯ ( H ) : H H , where H H is a minimizer of M ¯ ( H ) .
Lemma 14. 
Let M ¯ be a set of points in PG ( k 1 , q ) , where k 3 and M be a multiset of points in PG ( k 1 , q ) such that M ( H ) = s if M ¯ ( H ) = 1 and M ( H ) = t if M ¯ ( H ) = 0 for all hyperplanes H H . Using the notation from Lemma 13 we set
g = g c d { i I } { q k 2 } ,
Δ 0 = q k 2 / g ,
t 0 = 1 g · [ k 2 ] q · r m Δ 0 · m , and
s 0 = t + Δ 0 .
If s > t , then we have
L ( M ¯ ) = ( s 0 , t 0 ) N + ( [ k 1 ] q , [ k 1 ] q ) N .
Proof. 
Setting μ = μ ( M ) N we have that M : = M μ · χ V is a two-character multiset corresponding to ( s , t ) : = ( s μ [ k 1 ] q , t μ [ k 1 ] q ) L ( M ¯ ) and there exists a point Q P with M ( Q ) = 0 . Clearly, we have ( s , t ) N 2 and s > t . From Lemma 13 we conclude the existence of an integer Δ N 1 such that t = Δ q k 2 · [ k 2 ] q · r m Δ · m , s = t + Δ , and M ( P ) = Δ · i q k 2 for all P P . Since M ( P ) N for all P P we have that q k 2 divides Δ · g , so that Δ 0 N divides Δ . For f : = Δ / Δ 0 N 1 we observe that M ( P ) is divisible by f and we set M : = 1 f · M . With this, we can check that M is a two-character multiset corresponding to ( s 0 , t 0 ) L ( M ¯ ) . □
Note that it is not necessary to explicitly check t 0 N since M ( P ) N is sufficient to this end.
Before we consider the problem whether L ( M ¯ ) N 2 contains an element ( s , t ) with s > t , we treat the so-far-excluded case k = 2 separately.
Lemma 15. 
Let M ¯ be a set of points in PG ( 1 , q ) . Then, we have
L ( M ¯ ) = ( s 0 , 0 ) N + ( q + 1 , q + 1 ) N ,
where s 0 = 0 if # M ¯ { 0 , q + 1 } and s 0 = 1 otherwise.
Proof. 
If # M ¯ { 0 , q + 1 } , then a two-character multiset M corresponding to ( s , t ) M ¯ actually is a one-character multiset and there exists some integer x N such that M = x · χ v .
Otherwise, we observe that in PG ( 1 , q ) points and hyperplanes coincide and the image of M ¯ is { 0 , 1 } . Note that we have M = t · χ V + P P ( s t ) · M ¯ ( P ) · χ P for each two-character multiset M corresponding to ( s , t ) L ( M ¯ ) by definition. We can easily check ( s , t ) ( 1 , 0 ) N + ( q + 1 , q + 1 ) N . The proof is completed by choosing s = 1 and t = 0 in our representation of M . □
Theorem 1. 
Let M ¯ be a set of points in PG ( k 1 , q ) with # M ¯ 0 , [ k ] q , where k 2 . Then,
M : = H H M ¯ ( H ) · χ H
is a two-character multiset corresponding to ( s , t ) L ( M ¯ ) with n = # M = r [ k 1 ] q , where r : = # M ¯ , t = r [ k 2 ] q , and s = r [ k 2 ] q + q k 2 . Setting μ : = μ ( M ) and g : = gcd ( M ( P ) μ : P P ) the function
M : = 1 g · μ · χ V + H H M ¯ ( H ) · χ H = 1 g · M μ · χ V
is a two-character multiset corresponding to ( s 0 , t 0 ) L ( M ¯ ) with n = # M = 1 q · r [ k 1 ] q μ [ k ] q , where r : = # M ¯ , t 0 = 1 g · r [ k 2 ] q μ [ k 1 ] q , and s 0 = 1 g · r [ k 2 ] q μ [ k 1 ] q + q k 2 , and g divides q k 2 . Moreover, we have
L ( M ¯ ) = ( s 0 , t 0 ) N + ( [ k 1 ] q , [ k 1 ] q ) N .
Proof. 
We can easily check M ( H ) = r [ k 2 ] q = t if M ( H ) = 0 and M ( H ) = r [ k 2 ] q + q k 2 = s if M ( H ) = 1 for all H H as well as # M = r [ k 1 ] q directly from the definition of M . Using Lemmas 6 and 10 we conclude that M is a two-character multiset with the stated parameters.
For k = 2 , Lemma 15 is our last statement. For k 3 we can apply Lemma 13 to conclude g = gcd ( { i I } ) and use the proof of Lemma 14 to conclude our last statement. Since s , t N and s > t we have that g divides g ( s t ) = q k 2 . □
Using the notation from Lemma 13 applied to the multiset of points M μ · χ V from Theorem 1 we observe # I 2 for # M ¯ 0 , [ k ] q . Using the facts that g : = gcd ( M ( P ) μ : P P ) , that g divides q k 2 , and Equation (19) we conclude
g = g c d { i I } = g c d M ¯ ( H ) M ¯ ( H ) : H H ,
where H H is a minimizer of M ¯ ( H ) .
Using the classification of one-character multisets we conclude from Theorem 1:
Corollary 1. 
Let M ¯ be a set of points in PG ( k 1 , q ) , where k 2 . Then, there exist s 0 , t 0 N 2 such that L ( M ¯ ) = ( s 0 , t 0 ) N + ( [ k 1 ] q , [ k 1 ] q ) N .
Theorem 2. 
Let M ˜ be a two-character multiset in PG ( k 1 , q ) , where k 2 . Then, there exist unique u , v N such that M ˜ = u · M + v · χ V , where M is given by Equation (25).
Proof. 
Let s > t be the two hyperplane multiplicities of M ˜ . With this, define M ¯ such that M ¯ ( H ) = 1 if M ˜ ( H ) = s and M ¯ ( H ) = 0 if M ˜ ( H ) = t for all H H . So, ( s , t ) L ( M ¯ ) and Theorem 1 yields the existence of u , v N with ( s , t ) = u · ( s 0 , t 0 ) + v · ( [ k 1 ] q , [ k 1 ] q ) , where s 0 , t 0 are as in Theorem 1. From Lemma 1 we then conclude M ˜ = u · M + v · χ V . Note that μ ( M ) and μ ( χ V ) = 1 imply μ ( M ˜ ) = v , so that u can be computed from γ ( M ˜ ) = u · γ ( M ) + v , i.e., u and v are uniquely determined. □
Note that for a one-character multiset M ˜ there exists a unique v N such that M ˜ = v · χ V . Given a set of points M ¯ we call M the canonical representant of the set of two-character multisets M corresponding to ( s , t ) L ( M ¯ ) . If M = M we just say that M is the canonical two-character multiset.
Theorem 3. 
Let w 1 < w 2 be the non-zero weights of a non-repetitive [ n , k ] q two-weight code C without full support. Then, there exist integers f and u such that w 1 = u p f and w 2 = ( u + 1 ) p f , where p is the characteristic of the underlying field F q .
Proof. 
Let M be the two-character multiset in PG ( k 1 , q ) corresponding to C. Choose unique u , v N such that M = u · M + v · χ V , as in Theorem 2. Since C does not have full support, we have v = 0 and since C is non-repetitive we have u = 1 . With this we can use Theorem 1 to compute
w 1 = n s = 1 g · r · q k 2 μ · q k 1 q k 2 = ( r q μ 1 ) · p f
and
w 2 = n t = 1 g · r · q k 2 μ · q k 1 = ( r q μ ) · p f ,
where f is chosen such that q k 2 g = p f , i.e., we can choose u = r q μ 1 . □
We have seen in Equation (27) that we can compute the parameter g directly from the set of points M ¯ . If we additionally assume that M ¯ is spanning, then we can consider the corresponding projective [ n , k ] q -code C ¯ , where n = # M ¯ (if M ¯ is not spanning, then we can consider the lower-dimensional subspace spanned by supp ( M ¯ ) ). Note that we have M ¯ ( H ) m ( mod g ) for all H H and that g is maximal with this property. If m n ( mod g ) , then g would simply be the maximal divisibility constant of the weights of C ¯ . From theorem 7 in [24] or theorem 3 in [25] we can conclude m n ( mod g ) . Thus, we have
g = gcd wt ( c ) : c C ¯ .
The argument may also be based on the following lemma (using the fact that C ¯ is projective):
Lemma 16. 
Let C be an [ n , k ] q -code of full length such that we have wt ( c ) m ( mod Δ ) for all non-zero codewords c C . If Δ is a power of the characteristic of the underlying field F q , then we have m 0 ( mod min { Δ , q } ) . Moreover, if additionally q divides Δ and k 2 , then the non-zero weights in each residual code are congruent to m / q modulo Δ / q .
Proof. 
Let M be the multiset of points in PG ( k 1 , q ) corresponding to C. For each hyperplane H we have n M ( H ) m ( mod Δ ) , which is equivalent to M ( H ) n m ( mod Δ ) . The weight of a non-zero codeword in a residual code is given by a subspace K of codimension 2 and a hyperplane H with K H . With this, the weight is given by M ( H ) M ( K ) n m M ( K ) ( mod Δ ) . Counting the hyperplane multiplicities of the q + 1 hyperplanes that contain K yields
H H : K H M ( H ) = # M + q · M ( K ) = # M + q · M ( K )
and
H H : K H M ( H ) ( q + 1 ) ( n m ) ( mod Δ ) ,
so that
m q · n m M ( K ) ( mod Δ ) .
Given Equation (30) we might be interested in projective divisible codes (with a large divisibility constant). For enumerations for the binary case we refer the reader to [26] and for a more general survey we refer the reader to, e.g., [27]. Note that the only point sets M in PG ( k 1 , q ) that are q k 1 -divisible are given by # M 0 , [ k ] q , i.e., the empty and the full set. All other point sets are at most q k 2 -divisible, as implied by Theorem 1.

6. Enumeration of Two-Character Multisets in PG ( k 1 , q ) for Small Parameters

Since all two-character multisets in PG ( 1 , q ) can be parameterized as M = b · χ V + P P ( a b ) · M ¯ ( P ) · χ P for integers a > b 0 and a set of points M ¯ in PG ( k 1 , q ) (see Lemma 15 and its proof), we assume k 3 in the following. Due to Theorem 2, every two-character multiset in PG ( k 1 , q ) can be written as u · M + v · χ V , where u , v N and M is characterized in Theorem 1. So, we further restrict out considerations on canonical two-character multisets where we have u = 1 and v = 0 . For k = 2 , all canonical two-character multisets in PG ( k 1 , q ) are indeed sets of points and given by the construction in Proposition 3 (with r = 1 ).
It can be easily checked that two isomorphic sets of points in PG ( k 1 , q ) yield isomorphic canonical two-character multisets M . So, for the full enumeration of canonical two-character multisets in PG ( k 1 , q ) we just need to loop over all non-isomorphic sets of points M ¯ in PG ( k 1 , q ) and use Theorem 1 to determine M , M , and their parameters. We remark that the numbers of non-isomorphic projective codes per length, dimension, and field size are, e.g., listed in tables 6.10–6.12 in [28] (for small parameters). For the binary case and at most six dimensions some additional data can be found in [29]. Here, we utilize the software package LinCode [30] to enumerate these codes.
In Table 1 and Table 2 we list the feasible parameters for canonical two-character multisets in PG ( 2 , 2 ) and in PG ( 3 , 2 ) , respectively, where n : = # M and γ : = γ ( M ) . The two hyperplane multiplicities for M are denoted by s 0 , t 0 and those of M by s , t . The parameters g, μ , r are as in (25) and n = # M . For PG ( 2 , 2 ) we can also state more direct constructions:
  • ( n , s 0 , t 0 , γ ) = ( 1 , 1 , 0 , 1 ) : characteristic function of a point (not spanning);
  • ( n , s 0 , t 0 , γ ) = ( 3 , 3 , 1 , 1 ) : characteristic function of a line (not spanning);
  • ( n , s 0 , t 0 , γ ) = ( 4 , 2 , 0 , 1 ) : complement of the characteristic function of a line;
  • ( n , s 0 , t 0 , γ ) = ( 6 , 3 , 2 , 1 ) : complement of the characteristic function of a point;
  • ( n , s 0 , t 0 , γ ) = ( 5 , 3 , 1 , 2 ) : χ L + 2 χ P for a line L and a point P with P L ;
  • ( n , s 0 , t 0 , γ ) = ( 6 , 4 , 2 , 2 ) : χ L + χ L for two different lines L and L ;
  • ( n , s 0 , t 0 , γ ) = ( 8 , 4 , 2 , 2 ) : χ V χ L χ L for two different lines L and L ;
  • ( n , s 0 , t 0 , γ ) = ( 9 , 5 , 3 , 2 ) : 2 χ V χ L + χ P for a line L and a point P with P L .
Of course, also for PG ( 3 , 2 ) some of the examples have nicer descriptions:
  • ( n , s 0 , t 0 , γ ) = ( 1 , 1 , 0 , 1 ) : characteristic function of a point (not spanning);
  • ( n , s 0 , t 0 , γ ) = ( 3 , 3 , 1 , 1 ) : characteristic function of a line (not spanning);
  • ( n , s 0 , t 0 , γ ) = ( 7 , 7 , 3 , 1 ) : characteristic function of a plane (not spanning);
  • ( n , s 0 , t 0 , γ ) = ( 5 , 3 , 1 , 1 ) : projective base; spanning projective 2-weight code;
  • ( n , s 0 , t 0 , γ ) = ( 6 , 4 , 2 , 1 ) : characteristic function of two disjoint lines; spanning projective 2-weight code;
  • ( n , s 0 , t 0 , γ ) = ( 14 , 10 , 6 , 2 ) : characteristic function of two different planes;
  • ( n , s 0 , t 0 , γ ) = ( 21 , 13 , 9 , 3 ) : characteristic function of three planes intersecting in a common point but not a common line.
Note that we may restrict our considerations to r < [ k ] q / 2 , since if M is the a canonical two-character multiset for a set of points M ¯ with # M ¯ = r , then the complement of M is the a canonical two-character multiset for a set of points which is the complement of M ¯ and has cardinality [ k ] q r .
From the data in Table 1 and Table 2 we can guess the maximum possible point multiplicity γ ( M ) of M :
Proposition 4. 
Let M be a canonical two-character multiset in PG ( k 1 , q ) , where k 2 . Then, we have γ ( M ) q k 2 .
Proof. 
Choose a suitable set H H and g , ν N such that
M = 1 g · H H χ H μ · χ V .
Let P P be a point with M ( P ) = γ and Q P be a point with M ( Q ) = 0 . With this we have λ H H : Q H . Since P is contained in [ k 1 ] q hyperplanes in H and P , Q is contained in [ k 2 ] q hyperplanes in H , we have M ( P ) q k 2 . □
We can easily construct an example showing that the stated upper bound is tight. To this end, let P, Q be two different points in PG ( k 1 , q ) , where k 3 , and H be an arbitrary hyperplane neither containing P nor Q. With this, we choose H as the set of all q k 2 hyperplanes that contain P but do not contain Q and additionally the hyperplane H . For the corresponding multiset of points M we then have M ( P ) = q k 2 and M ( Q ) = 0 , so that μ ( M ) = 0 . For an arbitrary point R H we have M ( R ) = q k 2 q k 3 + 1 = ( q 1 ) q k 3 + 1 , so that gcd ( M ( R ) , M ( P ) ) = 1 if k 4 or k = 3 and q 2 . For ( k , q ) = ( 3 , 2 ) we have already seen examples of canonical two-character multisets with maximum point multiplicity 2.
In Table 3 and Table 4, we list the feasible parameters for canonical two-character multisets in PG ( 4 , 2 ) with point multiplicity at most 4.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

No new data were created or analyzed in this study. Data sharing is not applicable to this article.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Delsarte, P. Weights of linear codes and strongly regular normed spaces. Discret. Math. 1972, 3, 47–64. [Google Scholar] [CrossRef]
  2. Brouwer, A.E. Two-weight codes. In Concise Encyclopedia of Coding Theory; Chapman and Hall/CRC: Boca Raton, FL, USA, 2021; pp. 449–462. [Google Scholar]
  3. Luo, G.; Cao, X. A construction of linear codes and strongly regular graphs from q-polynomials. Discret. Math. 2017, 340, 2262–2274. [Google Scholar] [CrossRef]
  4. Boyvalenkov, P.; Delchev, K.; Zinoviev, D.V.; Zinoviev, V.A. On two-weight codes. Discret. Math. 2021, 344, 112318. [Google Scholar] [CrossRef]
  5. Calderbank, R.; Kantor, W.M. The geometry of two-weight codes. Bull. Lond. Math. Soc. 1986, 18, 97–122. [Google Scholar] [CrossRef]
  6. Brouwer, A.E.; Maldeghem, H.V. Strongly Regular Graphs; Cambridge University Press: Cambridge, UK, 2022; Volume 182. [Google Scholar]
  7. Heng, Z.; Li, D.; Du, J.; Chen, F. A family of projective two-weight linear codes. Des. Codes Cryptogr. 2021, 89, 1993–2007. [Google Scholar] [CrossRef]
  8. Kohnert, A. Constructing two-weight codes with prescribed groups of automorphisms. Discret. Appl. Math. 2007, 155, 1451–1457. [Google Scholar] [CrossRef]
  9. Pavese, F. Geometric constructions of two-character sets. Discret. Math. 2015, 338, 202–208. [Google Scholar] [CrossRef]
  10. Zhu, C.; Liao, Q. Two new classes of projective two-weight linear codes. Finite Fields Their Appl. 2023, 88, 102186. [Google Scholar] [CrossRef]
  11. Bouyukliev, I.; Fack, V.; Willems, W.; Winne, J. Projective two-weight codes with small parameters and their corresponding graphs. Des. Codes Cryptogr. 2006, 41, 59–78. [Google Scholar] [CrossRef]
  12. Brouwer, A.E.; Eupen, M.V. The correspondence between projective codes and 2-weight codes. Des. Codes Cryptogr. 1997, 11, 261–266. [Google Scholar] [CrossRef]
  13. Bouyukliev, I.; Bouyuklieva, S. Dual transform and projective self-dual codes. Adv. Math. Commun. 2024, 18, 328–341. [Google Scholar] [CrossRef]
  14. Bouyukliev, I.G. Classification of Griesmer codes and dual transform. Discret. Math. 2009, 309, 4049–4068. [Google Scholar] [CrossRef]
  15. Takenaka, M.; Okamoto, K.; Maruta, T. On optimal non-projective ternary linear codes. Discret. Math. 2008, 308, 842–854. [Google Scholar] [CrossRef]
  16. Bouyuklieva, S.; Bouyukliev, I. Dual transform through characteristic vectors. In Proceedings of the International Workshop OCRT, Sofia, Bulgaria, 7–8 December 2017; pp. 43–48. [Google Scholar]
  17. Jungnickel, D.; Tonchev, V.D. The classification of antipodal two-weight linear codes. Finite Fields Their Appl. 2018, 50, 372–381. [Google Scholar] [CrossRef]
  18. Vega, G.; Vázquez, C.A. The weight distribution of a family of reducible cyclic codes. In Arithmetic of Finite Fields, Proceedings of the 4th International Workshop, WAIFI 2012, Bochum, Germany, 16–19 July 2012; Springer: Berlin/Heidelberg, Germany, 2012; Proceedings 4; pp. 16–28. [Google Scholar]
  19. Duc, T.D. Non-projective cyclic codes whose check polynomial contains two zeros. arXiv 2019, arXiv:1903.07321. [Google Scholar]
  20. Govaerts, P.; Storme, L. On a particular class of minihypers and its applications. I. The result for general q. Des. Codes Cryptogr. 2003, 28, 51–63. [Google Scholar] [CrossRef]
  21. Byrne, E.; Greferath, M.; Honold, T. Ring geometries, two-weight codes, and strongly regular graphs. Des. Codes Cryptogr. 2008, 48, 1–16. [Google Scholar] [CrossRef]
  22. Dodunekov, S.; Simonis, J. Codes and projective multisets. Electron. J. Comb. 1998, 5, R37. [Google Scholar] [CrossRef]
  23. Bonisoli, A. Every equidistant linear code is a sequence of dual Hamming codes. In ARS Combinatoria; Charles Babbage Research Centre: Manitoba, ON, Canada, 1984; Volume 18, pp. 181–186. [Google Scholar]
  24. Honold, T.; Kiermaier, M.; Kurz, S. Partial spreads and vector space partitions. In Network Coding and Subspace Designs; Greferath, M., Pavčević, M.O., Silberstein, N., Vázquez-Castro, M.Á., Eds.; Springer: Berlin/Heidelberg, Germany, 2018; pp. 131–170. [Google Scholar]
  25. Ward, H.N. An introduction to divisible codes. Des. Codes Cryptogr. 1999, 17, 73–79. [Google Scholar] [CrossRef]
  26. Heinlein, D.; Honold, T.; Kiermaier, M.; Kurz, S.; Wassermann, A. Projective divisible binary codes. In Proceedings of the 10th International Workshop on Coding and Cryptography, Saint Petersburg, Russia, 18–22 September 20017; pp. 1–10. [Google Scholar]
  27. Kurz, S. Divisible codes. arXiv 2021, arXiv:2112.11763. [Google Scholar]
  28. Betten, A.; Braun, M.; Fripertinger, H.; Kerber, A.; Kohnert, A.; Wassermann, A. Error-Correcting Linear Codes: Classification by Isometry and Applications; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2006; Volume 18. [Google Scholar]
  29. Bouyukliev, I. On the binary projective codes with dimension 6. Discret. Appl. Math. 2006, 154, 1693–1708. [Google Scholar] [CrossRef]
  30. Bouyukliev, I.; Bouyuklieva, S.; Kurz, S. Computer classification of linear codes. IEEE Trans. Inf. Theory 2021, 67, 7807–7814. [Google Scholar] [CrossRef]
Table 1. Feasible parameters for canonical two-character multisets in PG ( 2 , 2 ) .
Table 1. Feasible parameters for canonical two-character multisets in PG ( 2 , 2 ) .
g μ rn γ st s 0 t 0 n γ
21393531011
10131313131
126183862041
204122643261
114123643152
10262424262
115153754282
10392535392
Table 2. Feasible parameters for canonical two-character multisets in PG ( 3 , 2 ) .
Table 2. Feasible parameters for canonical two-character multisets in PG ( 3 , 2 ) .
g μ rn γ st s 0 t 0 n γ
43749725211011
2132131393131
241070634303151
22642422184261
10171737371
161498746424081
23963531275391
215353191564101
2412846403664121
408564282476141
228566282475132
102142106106142
204284161286142
1513917433984162
2311777373386162
217495252197172
114284161295133
1411777373395173
1396363127106183
1274952521117193
1153541915128203
103213139139213
14128474036128243
13107063430139253
12856528241410263
11642422181511273
10428316121612283
131177637331612323
138567282473114
126426221884124
1396373127106184
1274962521117194
1153551915128204
13107073430139254
12856628241410264
11642522181511274
12963631271713334
11749525211814344
10535419151915354
121070634302016404
11856528242117414
10642422182218424
11963531272420484
10749425212521494
Table 3. Feasible parameters for canonical two-character multisets in PG ( 4 , 2 ) with γ 4 —part 1.
Table 3. Feasible parameters for canonical two-character multisets in PG ( 4 , 2 ) with γ 4 —part 1.
g μ rn γ st s 0 t 0 n γ
8715225151131051011
437105757493131
21345329217371
101151157157151
114304501521821080161
2122842014204196128241
4824360121761681412281
801624081201121514301
2269065042106142
251319599991128202
23913577163139212
21575543351410222
2820300121481401410262
2616240101201121511272
2412180892841612282
228120664561713292
408120864561614302
20460436281814302
10230222142214302
4723345151691611614322
21127405151971891612322
1132943515211203168322
2923345131691611713332
2719285111411331814342
251522591131051915352
2311165785772016362
21026390141901822016402
2822330121621542117412
2618270101341262218422
2925375131831752420482
241015010787095133
292131515155147106183
23913597163139213
2616240121201121511273
24121801092841612283
228120864561713293
11460436282113293
2719285131411331814343
2515225111131051915353
2311165985772016363
217105757492117373
2618270121341262218423
241421010106982319433
2210150878702420443
10345329212921453
11228420152041962416483
2721315131551472521493
Table 4. Feasible parameters for canonical two-character multisets in PG ( 4 , 2 ) with γ 4 —part 2.
Table 4. Feasible parameters for canonical two-character multisets in PG ( 4 , 2 ) with γ 4 —part 2.
g μ rn γ st s 0 t 0 n γ
2517255111271192622503
2313195999912723513
2824360141761682824563
2620300121481402925573
2416240101201123026583
2212180892843127593
11127405141971893224643
2723345131691613228643
2519285111411333329653
231522591131053430663
2622330121621543632723
2010150678703935753
2521315111551474036803
24121801292841612284
12690650422012284
23111651185772016364
241421012106982319434
127105657492719434
11575543352820444
11126390151901822517494
11024360141761682618504
1922330131621542719514
1820300121481402820524
1718270111341262921534
15142109106983123554
2620300141481402925574
1310150778703325574
2416240121201123026584
128120664563426584
11690550423527594
10460436283628604
11127405151971893224644
11025375141831753325654
2315225111131053430664
1923345131691613426664
2111165985773531674
1821315121551473527674
1617255101271193729694
1413195899913931714
1311165785774032724
129135671634133734
117105557494234744
10575443354335754
11026390141901824032804
2317255111271194137814
1924360131761684133814
2420300121481404440884
2319285111411334844964
1925375131831754840964
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Kurz, S. Non-Projective Two-Weight Codes. Entropy 2024, 26, 289. https://doi.org/10.3390/e26040289

AMA Style

Kurz S. Non-Projective Two-Weight Codes. Entropy. 2024; 26(4):289. https://doi.org/10.3390/e26040289

Chicago/Turabian Style

Kurz, Sascha. 2024. "Non-Projective Two-Weight Codes" Entropy 26, no. 4: 289. https://doi.org/10.3390/e26040289

APA Style

Kurz, S. (2024). Non-Projective Two-Weight Codes. Entropy, 26(4), 289. https://doi.org/10.3390/e26040289

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop