This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Partially Ordered Sets Corresponding to the Partition Problem

Susumu Kubo
Abstract

The partition problem is a well-known basic NP-complete problem. We mainly consider the optimization version of it in this paper. The problem has been investigated from various perspectives for a long time and can be solved efficiently in practice. Hence, we might say that the only remaining task is to decide whether the problem can be solved in polynomial time in the number nn of given integers.

We propose two partially ordered sets (posets) and present a novel methodology for solving the partition problem. The first poset is order-isomorphic to a well-known poset whose structures are related to the solutions of the subset sum problem, while the second is a subposet of the first and plays a crucial role in this paper. We first show several properties of the two posets, such as size, height and width (the largest size of a subset consisting of incomparable elements). Both widths are the same and O(2n/n3/2)O(2^{n}/n^{3/2}) for nn congruent to 0 or 33 (mod 44). This fact indicates the hardness of the partition problem. We then prove that in general all the candidate solutions correspond to the elements of the second poset, whose size is 2n2(nn/2)2^{n}-2\binom{n}{\lfloor n/2\rfloor}. Since a partition corresponds to two elements of the poset, the number of the candidate partitions is half of it, that is, 2n1(nn/2)2^{n-1}-\binom{n}{\lfloor n/2\rfloor}. We finally prove that the candidate solutions can be reduced based on the partial order. In particular, we give several polynomially solvable cases by considering the minimal elements of the second poset.

Our approach offers a valuable tool for structural analysis of the partition problem and provides a new perspective on the P versus NP problem.

1 Introduction

The partition problem is formulated as follows: given positive integers c1,,cnc_{1},\ldots,c_{n}, the objective is to decide whether there exists a subset SS of {1,,n}=:[n]\{1,\ldots,n\}=:[n] such that Δ(S)=0\Delta(S)=0, where

Δ(S):=iScii[n]Sci.\Delta(S):=\sum_{i\in S}c_{i}-\sum_{i\in[n]\setminus S}c_{i}. (1)

In this paper, we mainly consider the optimization version of it: to find a subset SS of [n][n] that minimizes the absolute value |Δ(S)||\Delta(S)|. Without loss of generality, we can assume that the integers are indexed in non-increasing order, that is,

c1c2cn,c_{1}\geq c_{2}\geq\cdots\geq c_{n},

and that cn0c_{n}\geq 0 for the simplicity of proof though originally cn>0c_{n}>0.

The partition problem is one of Karp’s 21 NP-complete problems [11] and is also one of Garey and Johnson’s six basic NP-complete problems [5]. Therefore, the optimization version is known to be NP-hard. It has important applications such as task scheduling [3, 21], and is equivalent to the two-identical-parallel-machine scheduling problem to minimize the makespan.

The problem has been investigated from various perspectives. Several optimal algorithms give exact solutions in exponential time in nn [5, 8, 12, 17]. Moreover, a variety of heuristic and metaheuristic algorithms have been developed [1, 4, 9, 10, 16]. Thus, we can solve the problem efficiently in practice. An “easy-hard” phase transition was observed and the solution structure has been studied based on the notion and tools from statistical mechanics [2, 6, 7, 15]. An algebraic expression was presented based on the max-plus algebra [13]. We might say that the only remaining task is to decide whether the problem can be solved in polynomial time in nn.

Furthermore, the number of solutions to the subset sum problem, a special case of which is the partition problem, has been studied. The subset sum problem with positive inputs is to decide whether there exists a subset SS of [n][n] such that

iSci=t,\sum_{i\in S}c_{i}=t,

where tt is a given constant, a target. Let N({c1,,cn},t)N(\{c_{1},...,c_{n}\},t) denote the number of the solutions. It is known that

N({c1,,cn},t)N([n],n(n+1)4)N\left(\{c_{1},...,c_{n}\},t\right)\leq N\left([n],\left\lfloor\frac{n(n+1)}{4}\right\rfloor\right)

[14, 19]. The number N([n],n(n+1)/4)N\left([n],\lfloor n(n+1)/4\rfloor\right) is Sequence A025591 in the On-Line Encyclopedia of Integer Sequences [22] and is known to be O(2n/n3/2)O(2^{n}/n^{3/2}) for nn congruent to 0 or 33 (mod 44)[20]. The inequality is established using the properties of a partially ordered set (poset).

The poset is a well-known poset, denoted by M(n)M(n) in Stanley’s paper [19, Subsection 4.1.2]. The elements of M(n)M(n) are all the subsets of [n][n]. Let AA and BB be two subsets of [n][n] with elements a1,a2,,aja_{1},a_{2},\ldots,a_{j} and b1,b2,,bkb_{1},b_{2},\ldots,b_{k}, respectively, and assume that the elements of AA and BB are indexed in decreasing order. The partial order is defined as follows: ABA\leqslant B if and only if jkj\leq k and aibia_{i}\leq b_{i} for i[j]i\in[j].

To the best of our knowledge, there is no work applying the poset to the partition problem in terms of optimization.

Main results

To define two posets that correspond to the partition problem, we first consider the set n\mathbb{R}^{n} of nn-dimensional vectors of real numbers. Let 𝐱=(x1,,xn)n\mathbf{x}=(x_{1},\ldots,x_{n})\in\mathbb{R}^{n} and 𝐲=(y1,yn)n\mathbf{y}=(y_{1},\ldots y_{n})\in\mathbb{R}^{n}, and define a partial order on the set: 𝐱𝐲\mathbf{x}\preceq\mathbf{y} if and only if

x1\displaystyle x_{1} y1,\displaystyle\leq y_{1},
x1+x2\displaystyle x_{1}+x_{2} y1+y2,\displaystyle\leq y_{1}+y_{2},
\displaystyle\;\;\vdots
x1+x2++xn\displaystyle x_{1}+x_{2}+\cdots+x_{n} y1+y2++yn.\displaystyle\leq y_{1}+y_{2}+\cdots+y_{n}.

In other words, 𝐱𝐲\mathbf{x}\preceq\mathbf{y} means that any entry of the cumulative sum of 𝐱\mathbf{x} is less than or equal to the corresponding one of 𝐲\mathbf{y}.

Let us define a poset P(n)P(n) that corresponds to the partition problem. Let P(n)P(n) be the set of all nn-dimensional vectors with entries in {1,1}\{1,-1\}. The size of P(n)P(n) is of course 2n2^{n}. The partial order is defined to be the restriction of \preceq on P(n)P(n), denoted by P\preceq_{P}. The poset is order-isomorphic to M(n)M(n) under the mapping ff from P(n)P(n) to M(n)M(n) defined by the following rule: Given 𝐯=(v1,,vn)P(n)\mathbf{v}=(v_{1},\dots,v_{n})\in P(n), we have that if(𝐯)i\in f(\mathbf{v}) if and only if vn+1i=1v_{n+1-i}=1.

Example.

The Hasse diagrams of M(5)M(5) and P(5)P(5) are shown in Figures 1 and 2 respectively. We can see that the two posets are order-isomorphic under ff. For example, f((1,1,1,1,1))={5,3}f((1,-1,1,-1,-1))=\{5,3\}. Note that a partial order is shown horizontally due to space limitation, though it is usually shown vertically. The horizontal position indicates rank.

Refer to caption
Figure 1: The Hasse diagram of M(5)M(5).
Refer to caption
Figure 2: The Hasse diagram of P(5)P(5).

Let us define another poset Q(n)Q(n) to be the subset of P(n)P(n) obtained by deleting from P(n)P(n) the elements that are less than or greater than 𝟎\mathbf{0}, that is, Q(n)=P(n){𝐯P(n):𝐯𝟎or 𝟎𝐯},Q(n)=P(n)\setminus\{{\mathbf{v}\in P(n)}\colon{\mathbf{v}\preceq\mathbf{0}}\allowbreak\text{or }{\mathbf{0}\preceq\mathbf{v}}\}, where 𝟎=(0,,0)\mathbf{0}=(0,\dots,0). The partial order is defined to be the restriction of P\preceq_{P} on Q(n)Q(n), denoted by Q\preceq_{Q}. The poset Q(n)Q(n) can be constructed by truncating the upper part and lower part of P(n)P(n). The size of Q(n)Q(n) is proved to be 2n2(nn/2)2^{n}-2\binom{n}{\lfloor n/2\rfloor}.

Example.

Let us consider Q(n)Q(n) for n6n\leq 6. We can easily see that Q(1)=Q(2)=Q(1)=Q(2)=\emptyset and Q(3)={(1,1,1),(1,1,1)}Q(3)=\{(1,-1,-1),(-1,1,1)\}, the elements of which are incomparable. The Hasse diagrams of Q(4),Q(5)Q(4),Q(5) and Q(6)Q(6) are shown in Figure 3.

Refer to caption
(a) Q(4)Q(4)
Refer to caption
(b) Q(5)Q(5)
Refer to caption
(c) Q(6)Q(6)
Figure 3: The Hasse diagrams of Q(4),Q(5)Q(4),Q(5) and Q(6)Q(6).

To investigate the relationship between the partition problem and the posets P(n)P(n) and Q(n)Q(n), we rewrite the difference (1) of the partition problem. There is a one-to-one correspondence between P(n)P(n) and the set of all subsets of [n][n]. We introduce a mapping 𝐩\mathbf{p} from 2[n]2^{[n]} to P(n)P(n). To each subset SS of [n][n], we assign 𝐩(S)=(p1,,pn)\mathbf{p}(S)=(p_{1},\dots,p_{n}) defined by

pi={1 if iS1 if iS.p_{i}=\begin{cases}\phantom{-}1&\text{ if }i\in S\\ -1&\text{ if }i\notin S.\end{cases}

Let 𝐜=(c1,c2,,cn)\mathbf{c}=(c_{1},c_{2},\ldots,c_{n}). Then

Δ(S)=𝐩(S)𝐜,\Delta(S)=\mathbf{p}(S)\cdot\mathbf{c},

where the dot indicates the usual inner product. Note that 𝐩([n]S)=𝐩(S)\mathbf{p}([n]\setminus S)=-\mathbf{p}(S) and hence Δ([n]S)=𝐩(S)𝐜\Delta([n]\setminus S)=-\mathbf{p}(S)\cdot\mathbf{c}, the absolute value of which is equal to |Δ(S)|\lvert\Delta(S)\rvert. A pair of two elements 𝐩(S)\mathbf{p}(S) and 𝐩(S)-\mathbf{p}(S) corresponds to the partition {S,[n]S}\{S,\;[n]\setminus S\}. We can show that we have only to consider Q(n)Q(n) for solving the partition problem.

Theorem 1.

The candidate solutions to the partition problem are the subsets that correspond to the elements of Q(n)Q(n).

The number of the candidate partitions is half of the size of Q(n)Q(n), i.e., 2n1(nn/2)2^{n-1}-\binom{n}{\lfloor n/2\rfloor}, since a partition comprises a subset and its complement. Furthermore, the candidate solutions can be reduced based on the partial order of Q(n)Q(n).

Theorem 2.

Given an instance 𝐜\mathbf{c} of the partition problem, the following holds:

  1. (1)

    If 𝐩(S)𝐜0\mathbf{p}(S)\cdot\mathbf{c}\geq 0 for some subset SS of [n][n] satisfying 𝐩(S)Q(n)\mathbf{p}(S)\in Q(n), then |𝐩(S)𝐜||𝐩(S)𝐜|\lvert\mathbf{p}(S)\cdot\mathbf{c}\rvert\leq\lvert\mathbf{p}(S^{\prime})\cdot\mathbf{c}\rvert for any SS^{\prime} that satisfies 𝐩(S)Q𝐩(S)\mathbf{p}(S^{\prime})\preceq_{Q}-\mathbf{p}(S) or 𝐩(S)Q𝐩(S)\mathbf{p}(S)\preceq_{Q}\mathbf{p}(S^{\prime}).

  2. (2)

    If 𝐩(S)𝐜0\mathbf{p}(S)\cdot\mathbf{c}\leq 0 for some subset SS of [n][n] satisfying 𝐩(S)Q(n)\mathbf{p}(S)\in Q(n), then |𝐩(S)𝐜||𝐩(S)𝐜|\lvert\mathbf{p}(S)\cdot\mathbf{c}\rvert\leq\lvert\mathbf{p}(S^{\prime})\cdot\mathbf{c}\rvert for any SS^{\prime} that satisfies 𝐩(S)Q𝐩(S)\mathbf{p}(S^{\prime})\preceq_{Q}\mathbf{p}(S) or 𝐩(S)Q𝐩(S)-\mathbf{p}(S)\preceq_{Q}\mathbf{p}(S^{\prime}).

Using this result, we provide several polynomially solvable cases by considering the minimal elements of Q(n)Q(n).

Theorem 3.

Let 𝐯\mathbf{v} be a minimal element of Q(n)Q(n). If 𝐯𝐜0\mathbf{v}\cdot\mathbf{c}\geq 0, then the subset SS such that 𝐩(S)=𝐯\mathbf{p}(S)=\mathbf{v} is a solution and the optimal value is 𝐯𝐜\mathbf{v}\cdot\mathbf{c}.

All the minimal elements are explicitly obtained, as shown in Proposition 15. This is a generalization of the obvious fact that the subset {1}\{1\} is a solution and the optimal value is c1(c2++cn)c_{1}-(c_{2}+\cdots+c_{n}) if c1(c2++cn)0c_{1}-(c_{2}+\cdots+c_{n})\geq 0, which is the case where the minimal element is (1,1,,1)(1,-1,\dots,-1).

Our results are very simple once we realize them. However, the realization was the hard part. The key points are to use {1,1}\{1,-1\} instead of {1,0}\{1,0\} when defining the posets and not to limit the candidate solutions to half by assuming, for instance, that a subset of [n][n] always contains 11. We believe that our approach offers a valuable tool for structural analysis of the partition problem and provides a new perspective on the P versus NP problem.

The organization in the paper

The paper is organized as follows. In Section 2 we provide some fundamental concepts relevant to posets and the properties of P(n)P(n) and Q(n)Q(n). In Section 3 we explore the relationship between the partition problem and the posets and prove our main results.

2 Two posets corresponding to the partition problem

2.1 Preliminaries

In this subsection, we review some standard facts on posets and give some properties of the poset M(n)M(n).

Let (P,)(P,\preceq) be a finite poset. We simply denote the poset by PP and define the relation \prec by xyx\prec y if and only if xyx\preceq y and xyx\neq y. A subset of PP is a chain if it is totally ordered, and a subset of PP is an antichain if no pair of elements in it is comparable. A chain is a maximal chain if no other element can be added to it without losing the property of being totally ordered. The height (width) of PP is the largest size of a chain (antichain, resp.) in PP. An element of PP is a maximal (minimal) element if it is not less (greater, resp.) than any other element. An element of PP is the greatest (least) element if it is greater (less, resp.) than any other element.

A poset PP is graded111There are several competing definitions for graded posets. if it is equipped with a rank function ρ\rho from PP to \mathbb{Z} that satisfies:

  1. (i)

    if xyx\prec y, then ρ(x)<ρ(y)\rho(x)<\rho(y);

  2. (ii)

    if yy covers xx, i.e., xyx\prec y and there is no zPz\in P such that xzyx\prec z\prec y, then ρ(y)=ρ(x)+1\rho(y)=\rho(x)+1.

An element xPx\in P has rank ii if ρ(x)=i\rho(x)=i. By setting the minimum value of the rank function to zero, any graded poset PP can be partitioned into P=i=0rPiP=\bigcup_{i=0}^{r}P_{i}, where Pi={xP:ρ(x)=i}P_{i}=\{x\in P\colon\rho(x)=i\}. We denote the size of PiP_{i} by sis_{i}. The poset PP is rank-symmetric if si=sris_{i}=s_{r-i} for each ii. The poset PP is rank-unimodal if s0s1sisi+1srs_{0}\leq s_{1}\leq\cdots\leq s_{i}\geq s_{i+1}\geq\cdots\geq s_{r} for some ii, and PP is Sperner if the width of PP is equal to maxi{si}\max_{i}\{s_{i}\}. The width is lower bounded by maxi{si}\max_{i}\{s_{i}\} since every PiP_{i} is an antichain. In a Sperner poset, the largest one among P0,P1,,PrP_{0},P_{1},\ldots,P_{r} provides an antichain of maximum size.

A poset PP is a lattice if any two elements x,yPx,y\in P have a least upper bound and a greatest lower bound, denoted by xyx\vee y and xyx\wedge y respectively. A lattice LL is distributive if x(yz)=(xy)(xz)x\vee(y\wedge z)=(x\vee y)\wedge(x\vee z) for each x,y,zLx,y,z\in L.

The poset M(n)M(n) has the following properties [18]:

  • The rank function with minimum rank 0 is the sum of elements of a subset. The maximum rank is n(n+1)/2n(n+1)/2.

  • The poset M(n)M(n) is rank-symmetric, rank-unimodal and Sperner. Therefore, its width is equal to the size of the middle rank, which is N([n],n(n+1)/4)N\left([n],\left\lfloor n(n+1)/4\right\rfloor\right).

  • Its height is n(n+1)/2+1n(n+1)/2+1.

  • The poset M(n)M(n) is a distributive lattice with the greatest element [n][n] and the least element \emptyset.

2.2 Properties of the two posets

We will provide the properties of P(n)P(n) and Q(n)Q(n). We need first to become familiar with some elementary properties of the partial order \preceq.

Proposition 4.

For 𝐱,𝐲,𝐳n\mathbf{x},\mathbf{y},\mathbf{z}\in\mathbb{R}^{n}, the following holds:

  1. (1)

    𝐱𝐲𝐱+𝐳𝐲+𝐳\mathbf{x}\preceq\mathbf{y}\Longleftrightarrow\mathbf{x}+\mathbf{z}\preceq\mathbf{y}+\mathbf{z}.

  2. (2)

    𝐱𝐲\mathbf{x}\preceq\mathbf{y} and k0k𝐱k𝐲\,k\geq 0\Longrightarrow k\mathbf{x}\preceq k\mathbf{y}.

  3. (3)

    𝐱𝐲\mathbf{x}\preceq\mathbf{y} and k0k𝐲k𝐱\,k\leq 0\Longrightarrow k\mathbf{y}\preceq k\mathbf{x}.

Proof.

Straightforward. ∎

In particular, 𝐱𝐲\mathbf{x}\preceq\mathbf{y} is equivalent to 𝟎𝐲𝐱\mathbf{0}\preceq\mathbf{y}-\mathbf{x}. In order to examine the poset P(n)P(n), we define two operators. Let us denote the iith entry of a vector 𝐯\mathbf{v} by viv_{i} hereafter.

Definition 5 (Addition operator).

For k[n]k\in[n], the addition operator 𝒜(k)\mathcal{A}^{(k)} takes the input 𝐯P(n)\mathbf{v}\in P(n) with vk=1v_{k}=-1 and sets the kkth entry to 11, that is,

(𝒜(k)𝐯)i={1 if i=kvi if ik.\left(\mathcal{A}^{(k)}\mathbf{v}\right)_{i}=\begin{cases}1&\text{ if }\;i=k\\ v_{i}&\text{ if }\;i\neq k.\end{cases}

For other elements 𝐯\mathbf{v}, the operation 𝒜(k)𝐯\mathcal{A}^{(k)}\mathbf{v} is not defined.

Definition 6 (Swap operator).

For jj, k[n]k\in[n] with j<kj<k, the swap operator 𝒮(j,k)\mathcal{S}^{(j,k)} takes the input 𝐯P(n)\mathbf{v}\in P(n) with vj=1v_{j}=-1 and vk=1v_{k}=1, and swaps vjv_{j} and vkv_{k}, that is,

(𝒮(j,k)𝐯)i={1 if i=j1 if i=kvi if i{j,k}.\left(\mathcal{S}^{(j,k)}\mathbf{v}\right)_{i}=\begin{cases}\phantom{-}1&\text{ if }\;i=j\\ -1&\text{ if }\;i=k\\ \phantom{-}v_{i}&\text{ if }\;i\notin\{j,k\}.\end{cases}

For other elements 𝐯\mathbf{v}, the operation 𝒮(j,k)𝐯\mathcal{S}^{(j,k)}\mathbf{v} is not defined.

We prove some relationships between the operators and the partial order P\preceq_{P}.

Proposition 7.

In the poset P(n)P(n), 𝐯P𝐰\mathbf{v}\prec_{P}\mathbf{w} if and only if 𝐰\mathbf{w} is obtained from 𝐯\mathbf{v} by applying addition and/or swap operators.

Proof.

Assume that 𝐰\mathbf{w} is obtained from 𝐯\mathbf{v} by applying addition and/or swap operators. For each 𝐮P(n)\mathbf{u}\in P(n) and any possible integers jj and kk, we have 𝐮P𝒜(k)𝐮\mathbf{u}\prec_{P}\mathcal{A}^{(k)}\mathbf{u} and 𝐮P𝒮(j,k)𝐮\mathbf{u}\prec_{P}\mathcal{S}^{(j,k)}\mathbf{u}. Therefore, 𝐯P𝐰\mathbf{v}\prec_{P}\mathbf{w}.

Conversely, assume that 𝐯P𝐰\mathbf{v}\prec_{P}\mathbf{w}. Let 𝐱=𝐰𝐯\mathbf{x}=\mathbf{w}-\mathbf{v}. Then xix_{i} is ±2\pm 2 or 0 for i[n]i\in[n]. Denote the indices of xix_{i}’s equal to 2-2 by k1,,klk_{1},\ldots,k_{l} in increasing order. Since any entry of the cumulative sum of 𝐱\mathbf{x} is nonnegative, we can pair each entry equal to 2-2 with an entry equal to 2 on the left, that is, we can choose distinct indices j1,,jlj_{1},\ldots,j_{l} of xix_{i}’s equal to 22 such that j1<k1,,jl<klj_{1}<k_{1},\cdots,j_{l}<k_{l}. Hence, 𝐱\mathbf{x} is decomposed as follows:

𝐱\displaystyle\mathbf{x} =(0,,0j11,2,0,,0k1j11,2,0,,0)++(0,,0jl1,2,0,,0kljl1,2,0,,0)\displaystyle=(\underbrace{0,\ldots,0}_{j_{1}-1},2,\underbrace{0,\ldots,0}_{k_{1}-j_{1}-1},-2,0,\ldots,0)+\dots+(\underbrace{0,\ldots,0}_{j_{l}-1},2,\underbrace{0,\ldots,0}_{k_{l}-j_{l}-1},-2,0,\ldots,0)
+(0,,0i11,2,0,,0)++(0,,0im1,2,0,,0),\displaystyle\quad+(\underbrace{0,\ldots,0}_{i_{1}-1},2,0,\ldots,0)+\dots+(\underbrace{0,\ldots,0}_{i_{m}-1},2,0,\ldots,0),

where i1,,imi_{1},\dots,i_{m} are the indices of the remaining 22’s. Since the indices are all distinct, we have 𝐰=𝒜(im)𝒜(i1)𝒮(jl,kl)𝒮(j1,k1)𝐯.\mathbf{w}=\mathcal{A}^{(i_{m})}\cdots\mathcal{A}^{(i_{1})}\mathcal{S}^{(j_{l},k_{l})}\cdots\mathcal{S}^{(j_{1},k_{1})}\mathbf{v}. This means that 𝐰\mathbf{w} is obtained from 𝐯\mathbf{v} by applying addition and/or swap operators. ∎

Proposition 8.

In the poset P(n)P(n), 𝐰\mathbf{w} covers 𝐯\mathbf{v} if and only if 𝐰\mathbf{w} is obtained from 𝐯\mathbf{v} by applying a single operator of the addition operator 𝒜(n)\mathcal{A}^{(n)} and the swap operators 𝒮(1,2),,𝒮(n1,n)\mathcal{S}^{(1,2)},\ldots,\mathcal{S}^{(n-1,n)}.

Proof.

Assume that 𝐰\mathbf{w} covers 𝐯\mathbf{v}, that is, 𝐯P𝐰\mathbf{v}\prec_{P}\mathbf{w} and there is no 𝐮P(n)\mathbf{u}\in P(n) such that 𝐯P𝐮P𝐰\mathbf{v}\prec_{P}\mathbf{u}\prec_{P}\mathbf{w}. Suppose, contrary to our claim, that 𝐰\mathbf{w} is not obtained from 𝐯\mathbf{v} by one of the operators. We have the following three cases:

Case 1: 𝐰\mathbf{w} is obtained from 𝐯\mathbf{v} by two or more addition and/or swap operators. Then there exists 𝐮P\mathbf{u}\in P such that 𝐯P𝐮P𝐰\mathbf{v}\prec_{P}\mathbf{u}\prec_{P}\mathbf{w} since one of the operators always makes the input larger. This is a contradiction.

Case 2: 𝐰=𝒜(i)𝐯\mathbf{w}=\mathcal{A}^{(i)}\mathbf{v} for some i[n1]i\in[n-1]. Then vi=1v_{i}=-1. If vi+1=1v_{i+1}=1 then 𝐰=𝒜(i+1)𝒮(i,i+1)𝐯\mathbf{w}=\mathcal{A}^{(i+1)}\mathcal{S}^{(i,i+1)}\mathbf{v}. If vi+1=1v_{i+1}=-1 then 𝐰=𝒮(i,i+1)𝒜(i+1)𝐯\mathbf{w}=\mathcal{S}^{(i,i+1)}\mathcal{A}^{(i+1)}\mathbf{v}. Both lead to Case 1, a contradiction.

Case 3: 𝐰=𝒮(j,k)𝐯\mathbf{w}=\mathcal{S}^{(j,k)}\mathbf{v} for some jj and kk with kj2k-j\geq 2. Then vj=1v_{j}=-1 and vk=1v_{k}=1. If vj+1=1v_{j+1}=1 then 𝐰=𝒮(j+1,k)𝒮(j,j+1)𝐯\mathbf{w}=\mathcal{S}^{(j+1,k)}\mathcal{S}^{(j,j+1)}\mathbf{v}. If vj+1=1v_{j+1}=-1 then 𝐰=𝒮(j,j+1)𝒮(j+1,k)𝐯\mathbf{w}=\mathcal{S}^{(j,j+1)}\mathcal{S}^{(j+1,k)}\mathbf{v}. Both lead to Case 1, a contradiction.

Conversely, assume that 𝐰\mathbf{w} is obtained from 𝐯\mathbf{v} by applying one of the operators. It is clear that 𝐯P𝐰\mathbf{v}\prec_{P}\mathbf{w}. Suppose, contrary to our claim, that there exists 𝐮P(n)\mathbf{u}\in P(n) such that 𝐯P𝐮P𝐰\mathbf{v}\prec_{P}\mathbf{u}\prec_{P}\mathbf{w}. If 𝐰=𝒜(n)𝐯\mathbf{w}=\mathcal{A}^{(n)}\mathbf{v}, then vi=wiv_{i}=w_{i} for i[n1]i\in[n-1], vn=1v_{n}=-1 and wn=1w_{n}=1. Thus, ui=vi=wiu_{i}=v_{i}=w_{i} for i[n1]i\in[n-1] and unu_{n} must be equal to ±1\pm 1, which is a contradiction. If 𝐰=𝒮(k,k+1)𝐯\mathbf{w}=\mathcal{S}^{(k,k+1)}\mathbf{v} for some k[n1]k\in[n-1], then vi=wiv_{i}=w_{i} for i{k,k+1}i\notin\{k,k+1\}, vk=1v_{k}=-1, vk+1=1v_{k+1}=1, wk=1w_{k}=1 and wk+1=1w_{k+1}=-1. Thus, ui=vi=wiu_{i}=v_{i}=w_{i} for i[k1]i\in[k-1], uk+uk+1=0u_{k}+u_{k+1}=0, and ui=vi=wiu_{i}=v_{i}=w_{i} for i[n][k+1]i\in[n]\setminus[k+1], which is also a contradiction. ∎

Proposition 9.

The poset P(n)P(n) is order-isomorphic to M(n)M(n).

Proof.

We need to show that 𝐯P𝐰\mathbf{v}\preceq_{P}\mathbf{w} if and only if f(𝐯)f(𝐰)f(\mathbf{v})\leqslant f(\mathbf{w}) for each 𝐯\mathbf{v} and 𝐰\mathbf{w} in P(n)P(n).

Assume that 𝐯P𝐰\mathbf{v}\preceq_{P}\mathbf{w}. From Proposition 7 it follows that 𝐰\mathbf{w} is obtained from 𝐯\mathbf{v} by applying addition and/or swap operators. An addition operator increases 1’s of the input by one and a swap operator shifts one of 1’s of the input to the left. Now let 𝐯\mathbf{v} have mm 1’s. Then 𝐰\mathbf{w} has at least mm 1’s, which implies that f(𝐰)f(\mathbf{w}) has at least as many elements as f(𝐯)f(\mathbf{v}). The mm left-most 1’s of 𝐰\mathbf{w} do not lie more to the right than the 1’s of 𝐯\mathbf{v}, which implies that in decreasing order the iith element of f(𝐰)f(\mathbf{w}) is not less than that of f(𝐯)f(\mathbf{v}) for i[m]i\in[m]. Hence, f(𝐯)f(𝐰)f(\mathbf{v})\leqslant f(\mathbf{w}).

Conversely, assume that f(𝐯)f(𝐰)f(\mathbf{v})\leqslant f(\mathbf{w}). Let f(𝐯)={a1,,aj}f(\mathbf{v})=\{a_{1},\ldots,a_{j}\} and f(𝐰)={b1,,bk}f(\mathbf{w})=\{b_{1},\ldots,b_{k}\} in decreasing order. Then jkj\leq k, which means that 𝐰\mathbf{w} has at least as many 1’s as 𝐯\mathbf{v}, and aibia_{i}\leq b_{i} for i[j]i\in[j], which means that the jj left-most 1’s of 𝐰\mathbf{w} do not lie more to the right than the 1’s of 𝐯\mathbf{v}. By the properties of addition and swap operators, 𝐰\mathbf{w} is obtained from 𝐯\mathbf{v} by applying addition and/or swap operators, that is, 𝐯P𝐰\mathbf{v}\preceq_{P}\mathbf{w}. ∎

The poset P(n)P(n) has the following symmetry.

Proposition 10.

In the poset P(n)P(n), 𝐯P𝐰\mathbf{v}\prec_{P}\mathbf{w} if and only if 𝐰P𝐯-\mathbf{w}\prec_{P}-\mathbf{v}.

Proof.

For each 𝐯P(n)\mathbf{v}\in P(n), it holds that 𝐯P(n)-\mathbf{v}\in P(n). The statement follows immediately from Proposition 4 (3). ∎

It follows from Proposition 9 and its proof and Proposition 10 that the poset P(n)P(n) has the following properties:

  • The rank function with minimum rank 0 is

    12(𝐯𝐜0+12n(n+1))\frac{1}{2}\left(\mathbf{v}\cdot\mathbf{c}_{0}+\frac{1}{2}n(n+1)\right) (2)

    for 𝐯P(n)\mathbf{v}\in P(n), where 𝐜0=(n,n1,,2,1)\mathbf{c}_{0}=(n,n-1,\ldots,2,1).

  • The poset P(n)P(n) is rank-symmetric, rank-unimodal and Sperner.

  • Its width is N([n],n(n+1)/4)N\left([n],\left\lfloor n(n+1)/4\right\rfloor\right).

  • Its height is n(n+1)/2+1n(n+1)/2+1.

  • The poset P(n)P(n) has a certain symmetry: 𝐯P𝐰𝐰P𝐯\mathbf{v}\prec_{P}\mathbf{w}\Longleftrightarrow-\mathbf{w}\prec_{P}-\mathbf{v}.

  • The poset P(n)P(n) is a distributive lattice. The greatest element and the least one are respectively (1,,1)(1,\ldots,1) and (1,,1)(-1,\ldots,-1).

Remark.

An element of P(n)P(n) can be also regarded as a path of the random walk on the integer number line which starts at 0 and at each step moves +1+1 or 1-1. The relation 𝐯P𝐰\mathbf{v}\preceq_{P}\mathbf{w} means that the path corresponding to 𝐯\mathbf{v} does not “exceed” the one corresponding to 𝐰\mathbf{w}. Figure 4 shows an example.

Refer to caption
Figure 4: Some elements of P(6)P(6) as paths of the random walk.

We investigate the other poset Q(n)Q(n). Hereafter, let n3n\geq 3. We will show some properties of Q(n)Q(n).

Let R+(n)={𝐯P(n):𝟎𝐯}R_{+}(n)=\{\mathbf{v}\in P(n)\colon\mathbf{0}\prec\mathbf{v}\} and R(n)={𝐯P(n):𝐯𝟎}R_{-}(n)=\{\mathbf{v}\in P(n)\colon\mathbf{v}\prec\mathbf{0}\}. We can see that the subposets R+(n)R_{+}(n) and R(n)R_{-}(n) of P(n)P(n) are sublattices of P(n)P(n). The least element of R+(n)R^{+}(n) is (1,1,1,1,)(1,-1,1,-1,...), the rank of which in P(n)P(n) is n/4+n(n+1)/4n/4+n(n+1)/4 if nn is even and (n+1)/4+n(n+1)/4(n+1)/4+n(n+1)/4 if nn is odd. The elements of R+(n)R_{+}(n) are not in the middle rank of P(n)P(n). This is true for R(n)R_{-}(n) by the symmetry of P(n)P(n). Therefore, we obtain the next proposition.

Proposition 11.

The width of Q(n)Q(n) is the same as that of P(n)P(n).

For the size of Q(n)Q(n), the next proposition holds.

Proposition 12.

The size of Q(n)Q(n) is 2n2(nn/2)2^{n}-2\binom{n}{\lfloor n/2\rfloor}.

Proof.

By definition, #Q(n)=#P(n)#R+(n)#R(n)\#Q(n)=\#P(n)-\#R_{+}(n)-\#R_{-}(n), where #\# indicates the size of a set. Since #P(n)=2n\#P(n)=2^{n} and #R+(n)=#R(n)\#R_{+}(n)=\#R_{-}(n), it is sufficient to show that #R+(n)=(nn/2)\#R_{+}(n)=\binom{n}{\lfloor n/2\rfloor}. Let us regard the elements of R+(n)R_{+}(n) as the paths of the random walk. The size is the number of nn-step paths from 0 never going below 0 (for example, see 𝐰\mathbf{w} in Figure 4). Denote the number by XnX_{n} and define X0=1X_{0}=1. Then we have

Xn={2Xn1C(n1)/2 if n is odd2Xn1 if n is even,X_{n}=\begin{cases}2X_{n-1}-C_{(n-1)/2}&\text{ if $n$ is odd}\\ 2X_{n-1}&\text{ if $n$ is even},\end{cases}

where CmC_{m} is the number of 2m2m-step paths from 0 to 0 never going below 0, known as the Catalan number. The sequence XnX_{n} is known to be (nn/2)\binom{n}{\lfloor n/2\rfloor}. ∎

The poset Q(n)Q(n) also has the symmetry.

Proposition 13.

In the poset Q(n)Q(n), 𝐯Q𝐰\mathbf{v}\prec_{Q}\mathbf{w} if and only if 𝐰Q𝐯-\mathbf{w}\prec_{Q}-\mathbf{v}.

Proof.

For each 𝐯Q(n)\mathbf{v}\in Q(n), we show that 𝐯Q(n)-\mathbf{v}\in Q(n). Suppose, contrary to our claim, that 𝐯Q(n)-\mathbf{v}\notin Q(n). Then 𝐯𝟎-\mathbf{v}\prec\mathbf{0} or 𝟎𝐯\mathbf{0}\prec-\mathbf{v}, which contradicts 𝐯Q(n)\mathbf{v}\in Q(n). The statement follows immediately from Proposition 4 (3). ∎

Proposition 14.

The poset Q(n)Q(n) is graded and one of the rank functions is the same as the rank function (2) of P(n)P(n).

Proof.

Denote the rank function of P(n)P(n) by ρ\rho. We show that a rank function of Q(n)Q(n) is ρ\rho. Since Q(n)Q(n) is a subposet of P(n)P(n), if 𝐯Q𝐰\mathbf{v}\prec_{Q}\mathbf{w} then ρ(𝐯)<ρ(𝐰)\rho(\mathbf{v})<\rho(\mathbf{w}). When 𝐰\mathbf{w} covers 𝐯\mathbf{v} in Q(n)Q(n), suppose, contrary to our claim, that ρ(𝐰)ρ(𝐯)+2\rho(\mathbf{w})\geq\rho(\mathbf{v})+2. Then there exists some 𝐮P(n)Q(n)\mathbf{u}\in P(n)\setminus Q(n) such that 𝐯P𝐮P𝐰\mathbf{v}\prec_{P}\mathbf{u}\prec_{P}\mathbf{w} and ρ(𝐮)=ρ(𝐯)+1\rho(\mathbf{u})=\rho(\mathbf{v})+1. Since 𝐮\mathbf{u} is not in Q(n)Q(n), 𝐮𝟎\mathbf{u}\prec\mathbf{0} or 𝟎𝐮\mathbf{0}\prec\mathbf{u}. If 𝐮𝟎\mathbf{u}\prec\mathbf{0} then 𝐯𝟎\mathbf{v}\prec\mathbf{0}. If 𝟎𝐮\mathbf{0}\prec\mathbf{u} then 𝟎𝐰\mathbf{0}\prec\mathbf{w}. Either case is a contradiction. ∎

Let =(n1)/2\ell=\lfloor(n-1)/2\rfloor. For k{0,1,}k\in\{0,1,\dots\ell\} we denote by 𝐦k\mathbf{m}_{k} the element of Q(n)Q(n)

(1,,1k,1,,1k+1,1,,1).(\underbrace{1,\ldots,1}_{k},\underbrace{-1,\ldots,-1}_{k+1},1,\ldots,1).

Thus, 𝐦k-\mathbf{m}_{k} stands for the element of Q(n)Q(n)

(1,,1k,1,,1k+1,1,,1).(\underbrace{-1,\ldots,-1}_{k},\underbrace{1,\ldots,1}_{k+1},-1,\ldots,-1).
Proposition 15.

The maximal (minimal) elements of Q(n)Q(n) are 𝐦0\mathbf{m}_{0}, 𝐦1\mathbf{m}_{1}, ,𝐦(𝐦0\ldots,\mathbf{m}_{\ell}\>(-\mathbf{m}_{0}, 𝐦1-\mathbf{m}_{1}, ,𝐦\ldots,-\mathbf{m}_{\ell}, resp.).

Proof.

We first prove that 𝐦k\mathbf{m}_{k} for k{0,1,}k\in\{0,1,\dots\ell\} is maximal. It is sufficient to show that the elements covering 𝐦k\mathbf{m}_{k} on P(n)P(n) are not in Q(n)Q(n). If nn is even, then the last entry of 𝐦k\mathbf{m}_{k} is always 11 for each kk. From this fact and Proposition 8 it follows that the unique element covering 𝐦k\mathbf{m}_{k} is 𝒮(2k+1,2k+2)𝐦k\mathcal{S}^{(2k+1,2k+2)}\mathbf{m}_{k}, that is,

(1,,1k,1,,1k,1,1,1,,1),(\underbrace{1,\ldots,1}_{k},\underbrace{-1,\ldots,-1}_{k},1,-1,1,\ldots,1),

which is greater than 𝟎\mathbf{0}. If nn is odd, then the last entry of 𝐦k\mathbf{m}_{k} might be 1-1. The unique element covering 𝐦k\mathbf{m}_{k} is 𝒮(2k+1,2k+2)𝐦k\mathcal{S}^{(2k+1,2k+2)}\mathbf{m}_{k} if k<k<\ell, and 𝒜(n)𝐦k\mathcal{A}^{(n)}\mathbf{m}_{k}, that is,

(1,,1k,1,,1k,1)(\underbrace{1,\ldots,1}_{k},\underbrace{-1,\ldots,-1}_{k},1)

if k=k=\ell. Both are greater than 𝟎\mathbf{0}.

We next prove that no other elements are maximal. Consider a maximal element 𝐯Q(n)\mathbf{v}\in Q(n). Now we distinguish two cases.

Case 1: 𝐯\mathbf{v} contains no (1,1)(-1,1) sequence. Then 𝐯\mathbf{v} is a vector with 11’s up to some position (possibly none) and then 1-1’s for the rest of the entries, that is, (1,,1)(1,\ldots,1), (1,,1)(-1,\ldots,-1) or (1,,1,1,,1)(1,\ldots,1,-1,\ldots,-1). The first two are not obviously in Q(n)Q(n). Since 𝐯Q(n)\mathbf{v}\in Q(n) and 𝒜(n)𝐯R+(n)\mathcal{A}^{(n)}\mathbf{v}\in R_{+}(n), the sum v1++vnv_{1}+\cdots+v_{n} must be equal to 1-1. Therefore, 𝐯\mathbf{v} is

(1,,1(n1)/2,1,,1(n1)/2,1),(\underbrace{1,\ldots,1}_{(n-1)/2},\underbrace{-1,\ldots,-1}_{(n-1)/2},-1),

where nn is odd. This is exactly 𝐦\mathbf{m}_{\ell}.

Case 2: 𝐯\mathbf{v} contains (1,1)(-1,1) sequences. We assume that the left-most sequence lies at the jjth and (j+1)(j+1)th positions. Then 𝒮(j,j+1)𝐯R+(n)\mathcal{S}^{(j,j+1)}\mathbf{v}\in R_{+}(n). Hence, v1++vjv_{1}+\cdots+v_{j} must be equal to 1-1. If 𝐯\mathbf{v} contains another (1,1)(-1,1) sequence at the jj^{\prime}th and (j+1)(j^{\prime}+1)th positions, then 𝒮(j,j+1)𝐯Q(n)\mathcal{S}^{(j^{\prime},j^{\prime}+1)}\mathbf{v}\in Q(n), which contradicts the maximality. Therefore, the subsequences (v1,,vj1)(v_{1},\ldots,v_{j-1}) and (vj+2,,vn)(v_{j+2},\ldots,v_{n}) contain no (1,1)(-1,1) sequence. By a similar argument to Case 1, they are (1,,1)(1,\ldots,1), (1,,1)(-1,\ldots,-1), (1,,1,1,,1)(1,\ldots,1,-1,\ldots,-1) or empty. Since v1++vj1=0v_{1}+\cdots+v_{j-1}=0, we get

(v1,,vj1)=(1,,1(j1)/2,1,,1(j1)/2),(v_{1},\ldots,v_{j-1})=(\underbrace{1,\ldots,1}_{(j-1)/2},\underbrace{-1,\ldots,-1}_{(j-1)/2}),

where jj is odd (if j=1j=1 then the subsequence is empty). On the other hand, if vn=1v_{n}=-1 then 𝒜(n)𝐯Q(n)\mathcal{A}^{(n)}\mathbf{v}\in Q(n), which contradicts the maximality. Hence, (vj+2,,vn)(v_{j+2},\ldots,v_{n}) is (1,,1)(1,\dots,1) or empty. Consequently, 𝐯\mathbf{v} is

(1,,1(j1)/2,1,,1(j1)/2,1,1,1,,1n(j+1)),(\underbrace{1,\ldots,1}_{(j-1)/2},\underbrace{-1,\ldots,-1}_{(j-1)/2},-1,1,\underbrace{1,\ldots,1}_{n-(j+1)}),

which is exactly 𝐦k\mathbf{m}_{k}, where k=(j1)/2k=(j-1)/2 and jn1j\leq n-1. Note that k{0,1,,}k\in\{0,1,\dots,\ell\} if nn is even and k{0,,1}k\in\{0,\dots,\ell-1\} if nn is odd.

By symmetry, if 𝐯\mathbf{v} is a maximal element, then 𝐯-\mathbf{v} is a minimal element.

Lemma 16.

In the poset Q(n)Q(n) with n4n\geq 4, a minimal element 𝐦k-\mathbf{m}_{k} is less than a maximal element 𝐦k\mathbf{m}_{k^{\prime}} with kkk^{\prime}\neq k, that is, 𝐦kQ𝐦k-\mathbf{m}_{k}\prec_{Q}\mathbf{m}_{k^{\prime}}.

Proof.

Let k0=min{k,k}k_{0}=\min\{k,k^{\prime}\} and k1=max{k,k}k_{1}=\max\{k,k^{\prime}\}. If k0<k12k0+1k_{0}<k_{1}\leq 2k_{0}+1, then

𝐦k(𝐦k)=(2,,2k0,0,,0k1k0,2,,22k0+1k1,0,,02(k1k0),2,,2),\mathbf{m}_{k^{\prime}}-(-\mathbf{m}_{k})=(\underbrace{2,\ldots,2}_{k_{0}},\underbrace{0,\ldots,0}_{k_{1}-k_{0}},\underbrace{-2,\ldots,-2}_{2k_{0}+1-k_{1}},\underbrace{0,\ldots,0}_{2(k_{1}-k_{0})},2,\ldots,2),

which is greater than 𝟎\mathbf{0} since k02k0+1k1k_{0}\geq 2k_{0}+1-k_{1}. If 2k0+1<k12k_{0}+1<k_{1}, then

𝐦k(𝐦k)=(2,,2k0,0,,0k0+1,2,,2k1(2k0+1),0,,0k1+1,2,,2),\mathbf{m}_{k^{\prime}}-(-\mathbf{m}_{k})=(\underbrace{2,\ldots,2}_{k_{0}},\underbrace{0,\ldots,0}_{k_{0}+1},\underbrace{2,\ldots,2}_{k_{1}-(2k_{0}+1)},\underbrace{0,\ldots,0}_{k_{1}+1},2,\ldots,2),

which is evidently greater than 𝟎\mathbf{0}. ∎

Note that in the case where n=3n=3, the maximal elements 𝐦0=(1,1,1)\mathbf{m}_{0}=(-1,1,1) and 𝐦1=(1,1,1)\mathbf{m}_{1}=(1,-1,-1) are also minimal elements.

Proposition 17.

The height of Q(n)Q(n) is

12n(n1)(n32)(+1)+1\displaystyle\frac{1}{2}n(n-1)-\left(n-\frac{3}{2}\ell\right)(\ell+1)+1 for n7, and\displaystyle\text{ for }\>n\leq 7,\text{ and}
12(n2)(n3)+1\displaystyle\frac{1}{2}(n-2)(n-3)+1 for n8.\displaystyle\text{ for }\>n\geq 8.
Proof.

We first consider the case where n4n\geq 4. From Lemma 16 it follows that two elements 𝐦k-\mathbf{m}_{k} and 𝐦k\mathbf{m}_{k^{\prime}} with kkk^{\prime}\neq k are comparable. Let us take a maximal chain containing the two elements. Since Q(n)Q(n) is graded, the size of the maximal chain is ρ(𝐦k)ρ(𝐦k)+1\rho(\mathbf{m}_{k^{\prime}})-\rho(-\mathbf{m}_{k})+1, where ρ\rho denotes the rank function (2) of P(n)P(n) and Q(n)Q(n). Therefore, the height is

maxkk{ρ(𝐦k)ρ(𝐦k)+1}.\max_{k\neq k^{\prime}}\left\{\rho(\mathbf{m}_{k^{\prime}})-\rho(-\mathbf{m}_{k})+1\right\}. (3)

Since ρ(𝐯)=(𝐯𝐜0+n(n+1)/2)/2\rho(\mathbf{v})=\left(\mathbf{v}\cdot\mathbf{c}_{0}+n(n+1)/2\right)/2 for 𝐯Q(n)\mathbf{v}\in Q(n), we have

ρ(𝐦k)\displaystyle\rho(\mathbf{m}_{k^{\prime}}) =12n(n+1)n(k+1)+32k(k+1),\displaystyle=\frac{1}{2}n(n+1)-n(k^{\prime}+1)+\frac{3}{2}k^{\prime}(k^{\prime}+1),
ρ(𝐦k)\displaystyle\rho(-\mathbf{m}_{k}) =n(k+1)32k(k+1).\displaystyle=n(k+1)-\frac{3}{2}k(k+1).

Substituting these expressions into (3), we obtain

maxkk{32(k2n36)2+32(k2n36)23(2n36)2+12n(n3)+1}.\max_{k\neq k^{\prime}}\left\{\frac{3}{2}\left(k-\frac{2n-3}{6}\right)^{2}+\frac{3}{2}\left(k^{\prime}-\frac{2n-3}{6}\right)^{2}-3\left(\frac{2n-3}{6}\right)^{2}+\frac{1}{2}n(n-3)+1\right\}.

The objective function is symmetric in kk and kk^{\prime}, and we can assume that k>kk>k^{\prime}. In the kk-kk^{\prime} plane the farthest point from the center point ((2n3)/6,(2n3)/6)\left((2n-3)/6,(2n-3)/6\right) provides the maximum value. Therefore, the candidate points are (1,0)(1,0) and (,0)(\ell,0). Determining the position of the center point relative to the line k=(1+)/2k=(1+\ell)/2, equidistant from the two points, we conclude that the optimal point is (,0)(\ell,0) for n7n\leq 7 and (1,0)(1,0) for n8n\geq 8. Hence, the height is n(n1)/2(n3/2)(+1)+1n(n-1)/2-(n-3\ell/2)(\ell+1)+1 for n7n\leq 7 and (n2)(n3)/2+1(n-2)(n-3)/2+1 for n8n\geq 8.

In the case where n=3n=3, the height is 11, which is obtained by the expression above for n7n\leq 7. ∎

Summarizing, we have the following properties of Q(n)Q(n):

  • The rank function with minimum rank 0 is

    12(𝐯𝐜0+12n(n+1))n\frac{1}{2}\left(\mathbf{v}\cdot\mathbf{c}_{0}+\frac{1}{2}n(n+1)\right)-n

    for 𝐯Q(n)\mathbf{v}\in Q(n).

  • Its size is 2n2(nn/2)2^{n}-2\binom{n}{\lfloor n/2\rfloor}.

  • The poset Q(n)Q(n) is rank-symmetric and Sperner.

  • Its width is the same as that of P(n)P(n), i.e., N([n],n(n+1)/4)N\left([n],\left\lfloor n(n+1)/4\right\rfloor\right).

  • Its height is n(n1)/2(n3/2)(+1)+1n(n-1)/2-\left(n-3\ell/2\right)(\ell+1)+1 for n7n\leq 7 and (n2)(n3)/2+1(n-2)(n-3)/2+1 for n8n\geq 8.

  • The poset Q(n)Q(n) also has the same symmetry as P(n)P(n): 𝐯Q𝐰𝐰Q𝐯\mathbf{v}\prec_{Q}\mathbf{w}\Longleftrightarrow-\mathbf{w}\prec_{Q}-\mathbf{v}.

  • The minimal elements and the maximal ones are respectively 𝐦0,𝐦1,,𝐦-\mathbf{m}_{0},-\mathbf{m}_{1},\ldots,-\mathbf{m}_{\ell} and 𝐦0,𝐦1,,𝐦\mathbf{m}_{0},\mathbf{m}_{1},\ldots,\mathbf{m}_{\ell}.

It does not seem easy to determine whether Q(n)Q(n) is rank-unimodal or not. As a side note, we observed that Q(n)Q(n) is rank-unimodal for n21n\leq 21.

3 Relationship between the partition problem and the posets

We will discuss the relationship between the partition problem and the posets P(n)P(n) and Q(n)Q(n). We first show the relationship between the difference of the partition problem and the partial order P\preceq_{P} or Q\preceq_{Q}. To this end, we introduce another expression of the difference 𝐩(S)𝐜\mathbf{p}(S)\cdot\mathbf{c}. Let 𝐝=(d1,,dn)\mathbf{d}=(d_{1},\dots,d_{n}) defined by di=cici+1d_{i}=c_{i}-c_{i+1} for i[n]i\in[n], where cn+1=0c_{n+1}=0. Note that 𝐝𝟎\mathbf{d}\geq\mathbf{0}, which is a componentwise inequality. Denote the cumulative sum of 𝐩(S)\mathbf{p}(S) by 𝐫(S)\mathbf{r}(S), that is, 𝐫(S)=(p1,p1+p2,,p1++pn)\mathbf{r}(S)=(p_{1},p_{1}+p_{2},\dots,p_{1}+\dots+p_{n}) when 𝐩(S)=(p1,p2,,pn)\mathbf{p}(S)=(p_{1},p_{2},\dots,p_{n}). Then 𝐩(S)𝐜=𝐫(S)𝐝\mathbf{p}(S)\cdot\mathbf{c}=\mathbf{r}(S)\cdot\mathbf{d}. In addition, the relation 𝐩(S)P𝐩(S)\mathbf{p}(S)\preceq_{P}\mathbf{p}(S^{\prime}) can be succinctly written as the componentwise inequality 𝐫(S)𝐫(S)\mathbf{r}(S)\leq\mathbf{r}(S^{\prime}).

Proposition 18.

Given two subsets SS and SS^{\prime} of [n][n], the inequality 𝐩(S)𝐜𝐩(S)𝐜\mathbf{p}(S)\cdot\mathbf{c}\leq\mathbf{p}(S^{\prime})\cdot\mathbf{c} holds for any 𝐜\mathbf{c} if and only if 𝐩(S)P𝐩(S)\mathbf{p}(S)\preceq_{P}\mathbf{p}(S^{\prime}).

Proof.

We denote 𝐩(S)\mathbf{p}(S) and 𝐩(S)\mathbf{p}(S^{\prime}) by (p1,,pn)(p_{1},\ldots,p_{n}) and (p1,,pn)(p^{\prime}_{1},\ldots,p^{\prime}_{n}), respectively.

We first assume that 𝐩(S)𝐜𝐩(S)𝐜\mathbf{p}(S)\cdot\mathbf{c}\leq\mathbf{p}(S^{\prime})\cdot\mathbf{c} for any 𝐜\mathbf{c}. Suppose, contrary to our claim, that p1++pk>p1++pkp_{1}+\cdots+p_{k}>p^{\prime}_{1}+\cdots+p^{\prime}_{k} for some k[n]k\in[n]. Take

𝐜=(1,,1k,0,,0).\mathbf{c}^{\prime}=(\underbrace{1,\ldots,1}_{k},0,\ldots,0).

Then 𝐩(S)𝐜>𝐩(S)𝐜\mathbf{p}(S)\cdot\mathbf{c}^{\prime}>\mathbf{p}(S^{\prime})\cdot\mathbf{c}^{\prime}, which is a contradiction.

We next prove the converse. We assume that 𝐩(S)P𝐩(S)\mathbf{p}(S)\preceq_{P}\mathbf{p}(S^{\prime}), that is, 𝐫(S)𝐫(S)\mathbf{r}(S)\leq\mathbf{r}(S^{\prime}). Suppose, contrary to our claim, that 𝐩(S)𝐜>𝐩(S)𝐜\mathbf{p}(S)\cdot\mathbf{c}>\mathbf{p}(S^{\prime})\cdot\mathbf{c} for some 𝐜\mathbf{c}. Then we have (𝐫(S)𝐫(S))𝐝>0(\mathbf{r}(S)-\mathbf{r}(S^{\prime}))\cdot\mathbf{d}>0. Since 𝐫(S)𝐫(S)\mathbf{r}(S)-\mathbf{r}(S^{\prime}) is nonpositive and 𝐝\mathbf{d} is nonnegative, the left-hand side is nonpositive, a contradiction. ∎

A similar statement holds for the poset Q(n)Q(n).

Corollary 19.

Given two subsets SS and SS^{\prime} of [n][n] satisfying 𝐩(S)\mathbf{p}(S), 𝐩(S)Q(n)\mathbf{p}(S^{\prime})\in Q(n), the inequality 𝐩(S)𝐜𝐩(S)𝐜\mathbf{p}(S)\cdot\mathbf{c}\leq\mathbf{p}(S^{\prime})\cdot\mathbf{c} holds for any 𝐜\mathbf{c} if and only if 𝐩(S)Q𝐩(S)\mathbf{p}(S)\preceq_{Q}\mathbf{p}(S^{\prime}).

We next provide subsets unnecessary to be considered in the partition problem.

Lemma 20.

If a subset SS of [n][n] satisfies 𝐩(S)𝟎\mathbf{p}(S)\prec\mathbf{0} or 𝟎𝐩(S)\mathbf{0}\prec\mathbf{p}(S), then there exists some subset SS^{\prime} of [n][n], not equal to SS or [n]S[n]\setminus S, such that |𝐩(S)𝐜||𝐩(S)𝐜|\lvert\mathbf{p}(S^{\prime})\cdot\mathbf{c}\rvert\leq\lvert\mathbf{p}(S)\cdot\mathbf{c}\rvert for any 𝐜\mathbf{c}.

Proof.

We denote 𝐩(S)\mathbf{p}(S) by (p1,,pn)(p_{1},\ldots,p_{n}). For the complement of SS, we have 𝐩([n]S)=𝐩(S)\mathbf{p}([n]\setminus S)=-\mathbf{p}(S) and |𝐩([n]S)𝐜|=|𝐩(S)𝐜|\lvert\mathbf{p}([n]\setminus S)\cdot\mathbf{c}\rvert=\lvert\mathbf{p}(S)\cdot\mathbf{c}\rvert. Without loss of generality, we can thus assume that 𝐩(S)𝟎\mathbf{p}(S)\prec\mathbf{0}. We need to consider two cases:

Case 1: 𝐩(S)\mathbf{p}(S) contains no (1,1)(-1,1) sequence. Since 𝐩(S)𝟎\mathbf{p}(S)\prec\mathbf{0}, it holds that S=S=\emptyset. Take {n}\{n\} as SS^{\prime}. Then 𝐩(S)P𝐩(S)\mathbf{p}(S)\prec_{P}\mathbf{p}(S^{\prime}) and 𝐩(S)𝟎\mathbf{p}(S^{\prime})\prec\mathbf{0}. It follows from the former relation and Proposition 18 that 𝐩(S)𝐜𝐩(S)𝐜\mathbf{p}(S)\cdot\mathbf{c}\leq\mathbf{p}(S^{\prime})\cdot\mathbf{c} holds for any 𝐜\mathbf{c}. The latter relation is equivalent to 𝐫(S)𝟎\mathbf{r}(S^{\prime})\leq\mathbf{0}. The inner product of 𝐫(S)\mathbf{r}(S^{\prime}) with the nonnegative vector 𝐝\mathbf{d} is nonpositive. Thus, 𝐫(S)𝐝=𝐩(S)𝐜0\mathbf{r}(S^{\prime})\cdot\mathbf{d}=\mathbf{p}(S^{\prime})\cdot\mathbf{c}\leq 0 for any 𝐜\mathbf{c}. Therefore, 𝐩(S)𝐜𝐩(S)𝐜0\mathbf{p}(S)\cdot\mathbf{c}\leq\mathbf{p}(S^{\prime})\cdot\mathbf{c}\leq 0 for any 𝐜\mathbf{c}.

Case 2: 𝐩(S)\mathbf{p}(S) contains (1,1)(-1,1) sequences. We assume that the left-most sequence lies at the jjth and (j+1)(j+1)th positions. Take SS^{\prime} such that 𝐩(S)=𝒮(j,j+1)𝐩(S)\mathbf{p}(S^{\prime})=\mathcal{S}^{(j,j+1)}\mathbf{p}(S). Then 𝐩(S)P𝐩(S)\mathbf{p}(S)\prec_{P}\mathbf{p}(S^{\prime}) by Proposition 7. On the other hand, subtracting 𝐩(S)-\mathbf{p}(S) from 𝐩(S)\mathbf{p}(S^{\prime}), we have

𝐩(S)(𝐩(S))=(2p1,,2pj1,0,0,2pj+2,,2pn).\mathbf{p}(S^{\prime})-(-\mathbf{p}(S))=(2p_{1},\ldots,2p_{j-1},0,0,2p_{j+2},\ldots,2p_{n}).

This gives 𝐩(S)P𝐩(S)\mathbf{p}(S^{\prime})\prec_{P}-\mathbf{p}(S), since 𝐩(S)𝟎\mathbf{p}(S)\prec\mathbf{0}. Consequently, it follows from Proposition 18 that 𝐩(S)𝐜𝐩(S)𝐜𝐩(S)𝐜\mathbf{p}(S)\cdot\mathbf{c}\leq\mathbf{p}(S^{\prime})\cdot\mathbf{c}\leq-\mathbf{p}(S)\cdot\mathbf{c} for any 𝐜\mathbf{c}. ∎

By this lemma, it turns out that it is unnecessary to consider the elements of P(n)Q(n)P(n)\setminus Q(n). We then show that in general we must consider all the elements of Q(n)Q(n).

Lemma 21.

Let a subset SS of [n][n] satisfy 𝐩(S)Q(n)\mathbf{p}(S)\in Q(n). Then there exists some 𝐜\mathbf{c} such that |𝐩(S)𝐜|<|𝐩(S)𝐜|\lvert\mathbf{p}(S)\cdot\mathbf{c}\rvert<\lvert\mathbf{p}(S^{\prime})\cdot\mathbf{c}\rvert for any SS^{\prime} that satisfies 𝐩(S)Q(n)\mathbf{p}(S^{\prime})\in Q(n) and is not equal to SS or [n]S[n]\setminus S.

Proof.

We will prove this by contradiction. Suppose that for any 𝐜\mathbf{c} there exists some SS^{\prime} such that |𝐩(S)𝐜||𝐩(S)𝐜|\lvert\mathbf{p}(S^{\prime})\cdot\mathbf{c}\rvert\leq\lvert\mathbf{p}(S)\cdot\mathbf{c}\rvert. In particular, 𝐩(S)𝐜=0\mathbf{p}(S)\cdot\mathbf{c}=0 implies 𝐩(S)𝐜=0\mathbf{p}(S^{\prime})\cdot\mathbf{c}=0. Considering another expression of the difference, we deduce that for 𝐝0\mathbf{d}\geq 0 satisfying 𝐫(S)𝐝=0\mathbf{r}(S)\cdot\mathbf{d}=0 there exists some SS^{\prime} such that 𝐫(S)𝐝=0\mathbf{r}(S^{\prime})\cdot\mathbf{d}=0. By regarding these expressions as inequalities for 𝐝\mathbf{d}, we obtain

{𝐝n:𝐫(S)𝐝=0,𝐝𝟎}SS,[n]S{𝐝n:𝐫(S)𝐝=0,𝐝𝟎}.\{\mathbf{d}\in\mathbb{Z}^{n}:\mathbf{r}(S)\cdot\mathbf{d}=0,\;\mathbf{d}\geq\mathbf{0}\}\subset\bigcup_{S^{\prime}\neq S,[n]\setminus S}\{\mathbf{d}\in\mathbb{Z}^{n}:\mathbf{r}(S^{\prime})\cdot\mathbf{d}=0,\;\mathbf{d}\geq\mathbf{0}\}.

We will denote the left-hand side and the set in the union on the right-hand side by CSC_{S} and CSC_{S^{\prime}} respectively. From the notation and the expression above, we can deduce that CSC_{S} is equal to the union of the intersections of CSC_{S} with each CSC_{S^{\prime}}, that is,

CS=SS,[n]S(CSCS).C_{S}=\bigcup_{S^{\prime}\neq S,[n]\setminus S}(C_{S}\cap C_{S^{\prime}}).

Now choose a minimal decomposition

CS=i=1m(CSCSi)C_{S}=\bigcup_{i=1}^{m}(C_{S}\cap C_{S^{\prime}_{i}}) (4)

with mm minimal. Then m2m\geq 2, since 𝐫(S)\mathbf{r}(S) and 𝐫(Si)\mathbf{r}(S^{\prime}_{i}) are linearly independent and 𝐩(S)\mathbf{p}(S) and 𝐩(Si)\mathbf{p}(S^{\prime}_{i}) are both in Q(n)Q(n). By minimality, no CSCSiC_{S}\cap C_{S^{\prime}_{i}} is contained in the union of other CSCSjC_{S}\cap C_{S^{\prime}_{j}}’s. Take vectors 𝐝1\mathbf{d}_{1} and 𝐝2\mathbf{d}_{2} such that 𝐝1CSCS1\mathbf{d}_{1}\in C_{S}\cap C_{S^{\prime}_{1}} but 𝐝1CSCSi\mathbf{d}_{1}\notin C_{S}\cap C_{S^{\prime}_{i}} for i1i\neq 1 and 𝐝2CSCS2\mathbf{d}_{2}\in C_{S}\cap C_{S^{\prime}_{2}} but 𝐝2CSCSi\mathbf{d}_{2}\notin C_{S}\cap C_{S^{\prime}_{i}} for i2i\neq 2. Consider the intersection of CSCSiC_{S}\cap C_{S^{\prime}_{i}} and the infinite set K={α𝐝1+𝐝2:α,α0}CSK=\{\alpha\mathbf{d}_{1}+\mathbf{d}_{2}:\alpha\in\mathbb{Z},\alpha\geq 0\}\subset C_{S}. If i=1i=1, then the intersection is empty since 𝐫(Si)𝐝1=0\mathbf{r}(S^{\prime}_{i})\cdot\mathbf{d}_{1}=0 and 𝐫(Si)𝐝20\mathbf{r}(S^{\prime}_{i})\cdot\mathbf{d}_{2}\neq 0. If i1i\neq 1, then the intersection is at most one point since 𝐫(Si)𝐝10\mathbf{r}(S^{\prime}_{i})\cdot\mathbf{d}_{1}\neq 0. So KK intersects each CSCSiC_{S}\cap C_{S^{\prime}_{i}} in at most one point. Since (4) holds, KK is a finite set, a contradiction. ∎

We thus can prove Theorem 1.

Proof of Theorem 1.

This follows immediately from Lemmas 20 and 21. ∎

We will consider an instance of the partition problem, that is, we take a concrete 𝐜\mathbf{c} into account. We can reduce the candidate solutions by using the partial order.

Proposition 22.

Given an instance 𝐜\mathbf{c} of the partition problem, the following holds:

  1. (1)

    If 𝐩(S)𝐜0\mathbf{p}(S)\cdot\mathbf{c}\geq 0 for some subset SS of [n][n], then |𝐩(S)𝐜||𝐩(S)𝐜|\lvert\mathbf{p}(S)\cdot\mathbf{c}\rvert\leq\lvert\mathbf{p}(S^{\prime})\cdot\mathbf{c}\rvert for any SS^{\prime} that satisfies 𝐩(S)P𝐩(S)\mathbf{p}(S^{\prime})\preceq_{P}-\mathbf{p}(S) or 𝐩(S)P𝐩(S)\mathbf{p}(S)\preceq_{P}\mathbf{p}(S^{\prime}).

  2. (2)

    If 𝐩(S)𝐜0\mathbf{p}(S)\cdot\mathbf{c}\leq 0 for some subset SS of [n][n], then |𝐩(S)𝐜||𝐩(S)𝐜|\lvert\mathbf{p}(S)\cdot\mathbf{c}\rvert\leq\lvert\mathbf{p}(S^{\prime})\cdot\mathbf{c}\rvert for any SS^{\prime} that satisfies 𝐩(S)P𝐩(S)\mathbf{p}(S^{\prime})\preceq_{P}\mathbf{p}(S) or 𝐩(S)P𝐩(S)-\mathbf{p}(S)\preceq_{P}\mathbf{p}(S^{\prime}).

Proof.

We show the first statement. From Proposition 18 it follows that 𝐩(S)𝐜𝐩(S)𝐜\mathbf{p}(S^{\prime})\cdot\mathbf{c}\leq-\mathbf{p}(S)\cdot\mathbf{c} or 𝐩(S)𝐜𝐩(S)𝐜\mathbf{p}(S)\cdot\mathbf{c}\leq\mathbf{p}(S^{\prime})\cdot\mathbf{c}. Hence, 𝐩(S)𝐜𝐩(S)𝐜0\mathbf{p}(S^{\prime})\cdot\mathbf{c}\leq-\mathbf{p}(S)\cdot\mathbf{c}\leq 0 or 0𝐩(S)𝐜𝐩(S)𝐜0\leq\mathbf{p}(S)\cdot\mathbf{c}\leq\mathbf{p}(S^{\prime})\cdot\mathbf{c}. Either case implies that |𝐩(S)𝐜||𝐩(S)𝐜|\lvert\mathbf{p}(S)\cdot\mathbf{c}\rvert\leq\lvert\mathbf{p}(S^{\prime})\cdot\mathbf{c}\rvert.

In the same manner, we can prove the second. ∎

Proof of Theorem 2.

It immediately follows from Proposition 22. ∎

If the height of Q(n)Q(n) is large, we can reduce efficiently the candidate solutions by using Theorem 2. However, this is not the case; its height is O(n2)O(n^{2}), while its width is O(2n/n3/2)O(2^{n}/n^{3/2}) for nn congruent to 0 or 3 (mod 4). The large width indicates the hardness of the partition problem.

We will give some polynomially solvable cases by considering the minimal elements of Q(n)Q(n). To this end, we show an interesting property of the minimal elements of Q(n)Q(n).

Lemma 23.

Given a subset SS of [n][n], any minimal element of Q(n)Q(n) is less than or equal to either 𝐩(S)\mathbf{p}(S) or 𝐩(S)-\mathbf{p}(S).

Proof.

Let 𝐦k-\mathbf{m}_{k} be a minimal element of Q(n)Q(n), where k{0,1,}k\in\{0,1,\dots\ell\}. We prove that there are 2n12^{n-1} subsets SS^{\prime} such that 𝐦kP𝐩(S)-\mathbf{m}_{k}\preceq_{P}\mathbf{p}(S^{\prime}). Now 𝐦k-\mathbf{m}_{k} is

(1,,1k,1,,1k+1,1,,1n2k1).(\underbrace{-1,\ldots,-1}_{k},\underbrace{1,\ldots,1}_{k+1},\underbrace{-1,\ldots,-1}_{n-2k-1}).

By Proposition 7, 𝐩(S)\mathbf{p}(S^{\prime}) is obtained from 𝐦k-\mathbf{m}_{k} by applying addition and/or swap operators. We denote 𝐩(S)\mathbf{p}(S^{\prime}) by (𝐩1,𝐩2)(\mathbf{p}_{1},\mathbf{p}_{2}), where 𝐩1P(2k+1),𝐩2P(n2k1)\mathbf{p}_{1}\in P(2k+1),\,\mathbf{p}_{2}\in P(n-2k-1). For a nonnegative integer mkm\leq k, any 𝐩1\mathbf{p}_{1} containing mm 1-1’s is greater than or equal to

(1,,1k,1,,1k+1)P(2k+1).(\underbrace{-1,\ldots,-1}_{k},\underbrace{1,\ldots,1}_{k+1})\in P(2k+1).

The number of elements 𝐩1\mathbf{p}_{1} containing mm 1-1’s is (2k+1m)\binom{2k+1}{m} and the total number is as follows:

(2k+10)++(2k+1k)=22k.\binom{2k+1}{0}+\cdots+\binom{2k+1}{k}=2^{2k}.

On the other hand, any 𝐩2P(n2k1)\mathbf{p}_{2}\in P(n-2k-1), the number of which is 2n2k12^{n-2k-1}, is obviously greater than or equal to (1,,1)P(n2k1)(-1,\ldots,-1)\in P(n-2k-1). Therefore, we can obtain 22k×2n2k12^{2k}\times 2^{n-2k-1} distinct subsets satisfying the condition, which contain no complementary pair, because otherwise 𝐦k\mathbf{m}_{k} and 𝐦k-\mathbf{m}_{k} are comparable by symmetry and this contradicts 𝐦kQ(n)\mathbf{m}_{k}\in Q(n)

Consequently, for each subset SS of [n][n], either 𝐦kP𝐩(S)-\mathbf{m}_{k}\preceq_{P}\mathbf{p}(S) or 𝐦kP𝐩(S)-\mathbf{m}_{k}\preceq_{P}-\mathbf{p}(S) holds. ∎

In some cases, we can easily solve the partition problem.

Proof of Theorem 3.

Let 𝐯=𝐦k\mathbf{v}=-\mathbf{m}_{k}. It follows from Lemma 23 that 𝐦kQ𝐩(S)-\mathbf{m}_{k}\preceq_{Q}\mathbf{p}(S) or 𝐦kQ𝐩(S)-\mathbf{m}_{k}\preceq_{Q}-\mathbf{p}(S) for any 𝐩(S)Q(n)\mathbf{p}(S)\in Q(n). Either way, using Theorem 2 (1) we have |𝐦k𝐜||𝐩(S)𝐜||\mathbf{m}_{k}\cdot\mathbf{c}|\leq|\mathbf{p}(S)\cdot\mathbf{c}|. The left-hand side, the optimal value, is equal to 𝐦k𝐜-\mathbf{m}_{k}\cdot\mathbf{c}. ∎

We obtain the following statement for the maximal element 𝐦k\mathbf{m}_{k} of Q(n)Q(n).

Corollary 24.

If 𝐦k𝐜0\mathbf{m}_{k}\cdot\mathbf{c}\geq 0, (𝐦k𝒮(k,k+1)(𝐦k))𝐜0\left(\mathbf{m}_{k}-\mathcal{S}^{(k,k+1)}(-\mathbf{m}_{k})\right)\cdot\mathbf{c}\leq 0 (applicable for k0k\neq 0), and (𝐦k𝒜(n)(𝐦k))𝐜0\left(\mathbf{m}_{k}-\mathcal{A}^{(n)}(-\mathbf{m}_{k})\right)\cdot\mathbf{c}\leq 0 (applicable for k(n1)/2k\neq(n-1)/2) for some k{0,1,}k\in\{0,1,\dots\ell\}, then the subset SS such that 𝐩(S)=𝐦k\mathbf{p}(S)=\mathbf{m}_{k} is a solution and the optimal value is 𝐦k𝐜\mathbf{m}_{k}\cdot\mathbf{c}.

Proof.

Rewriting the three inequalities, we have

0𝐦k𝐜𝒮(k,k+1)(𝐦k)𝐜,0𝐦k𝐜𝒜(n)(𝐦k)𝐜.0\leq\mathbf{m}_{k}\cdot\mathbf{c}\leq\mathcal{S}^{(k,k+1)}(-\mathbf{m}_{k})\cdot\mathbf{c},\quad 0\leq\mathbf{m}_{k}\cdot\mathbf{c}\leq\mathcal{A}^{(n)}(-\mathbf{m}_{k})\cdot\mathbf{c}. (5)

Since 𝒮(k,k+1)(𝐦k)𝐜0\mathcal{S}^{(k,k+1)}(-\mathbf{m}_{k})\cdot\mathbf{c}\geq 0, 𝒜(n)(𝐦k)𝐜0\mathcal{A}^{(n)}(-\mathbf{m}_{k})\cdot\mathbf{c}\geq 0 and the elements covering the minimal element 𝐦k-\mathbf{m}_{k} are only 𝒮(k,k+1)(𝐦k)\mathcal{S}^{(k,k+1)}(-\mathbf{m}_{k}) for k0k\neq 0 and 𝒜(n)(𝐦k)\mathcal{A}^{(n)}(-\mathbf{m}_{k}) for k(n1)/2k\neq(n-1)/2, it follows from Theorem 2 (1) and Lemma 23 that the candidate solutions are reduced to six elements: ±𝐦k,±𝒮(k,k+1)(𝐦k)\pm\mathbf{m}_{k},\pm\mathcal{S}^{(k,k+1)}(-\mathbf{m}_{k}), and ±𝒜(n)(𝐦k)\pm\mathcal{A}^{(n)}(-\mathbf{m}_{k}). The inequalities (5) imply that the subsets SS such that 𝐩(S)=±𝐦k\mathbf{p}(S)=\pm\mathbf{m}_{k} are solutions and the optimal value is 𝐦k𝐜\mathbf{m}_{k}\cdot\mathbf{c}. ∎

It is possible that these conditions could be written down for other elements as well. It is a future problem.

References

  • [1] B. Alidaee, F. Glover, G. A. Kochenberger, and C. Rego. A new modeling and solution approach for the number partitioning problem. Journal of Applied Mathematics and Decision Sciences, 2:113–121, 2005.
  • [2] C. Borgs, J. Chayes, and B. Pittel. Phase transition and finete-size scaling for the integer partitioning problem. Random Structures & Algorithms, 19:247–288, 2001.
  • [3] E. G. Coffman Jr. and G. S. Lueker. Probabilistic Analysis of Packing and Partitioning Algorithms. Wiley, Chichester, 1991.
  • [4] L. Fuksz and P. C. Pop. A hybrid genetic algorithm with variable neighborhood search approach to the number partitioning problem. In 8th International Conference on Hybrid Artificial Intelligence Systems, pages 649–658, 2013.
  • [5] M. R. Garey and D. S. Johnson. Computers and intractability: A guide to the theory of NP-completeness. W. H. Freeman, New York, 1979.
  • [6] I. P. Gent and T. Walsh. Phase transitions and annealed theories: Number partitioning as a case study. In W. Wahlster, editor, ECAI 96 : 12th European Conference on Artificial Intelligence, pages 170–174, Chichester, 1996. Wiley.
  • [7] A. K. Hartmann, A. Mann, and W. Radenbach. Solution-space structure of (some) optimization problems. Journal of Physics: Conference Series, 95:012011, 2008.
  • [8] E. Horowitz and S. Sahni. Computing partitions with applications to the knapsack problem. Journal of the ACM, 21:277–292, 1974.
  • [9] D. S. Johnson, C. R. Aragon, L. A. McGeoch, and C. Schevon. Optimization by simulated annealing: An experimental evaluation; part II, graph coloring and number partitioning. Operations Research, 39:378–406, 1991.
  • [10] N. Karmarkar and R. M. Karp. The differencing method of set partitioning. Technical Report, Computer Science Division, University of California, Berkeley, 82/113, 1982.
  • [11] R. M. Karp. Reducibility among combinatorial problems. In R. E. Miller, J. W. Thatcher, and J. Bohlinger, editors, Complexity of Computer Computations, pages 85–103, Boston, 1972. Springer.
  • [12] R. E. Korf. A complete anytime algorithm for number partitioning. Artificial Intelligence, 106:181–203, 1998.
  • [13] S. Kubo and K. Nishinari. An algebraic expression of the number partitioning problem. Discrete Applied Mathematics, 285:283–296, 10 2020.
  • [14] Lindström. Conjecture on a theorem similar to Sperner’s. In R. Guy, H. Hanani, N. Sauer, and J. Schönheim, editors, Combinatorial Structures and Their Applications, page 241, New York, 1970. Gordon and Breach.
  • [15] S. Mertens. Phase transition in the number partitioning problem. Physical Review Letters, 81:4281–4284, 1998.
  • [16] W. Ruml, J. T. Ngo, J. Marks, and S. M. Shieber. Easily searched encodings for number partitioning. Journal of Optimization Theory and Applications, 89:251–291, 1996.
  • [17] R. Schroeppels and A. Shamir. A T=O(2n/2){T}={O}(2^{n/2}), S=O(2n/4){S}={O}(2^{n/4}) algorithm for certain NP-complete problems. SIAM Journal on computing, 10:456–464, 1981.
  • [18] R. P. Stanley. Weyl groups, the hard Lefschetz theorem, and the Sperner property. SIAM Journal on Algebraic and Discrete Methods, 1:168–184, 1980.
  • [19] R. P. Stanley. Some applications of algebra to combinatorics. Discrete Applied Mathematics, 34:241–277, 1991.
  • [20] B. D. Sullivan. On a conjecture of Andrica and Tomescu. Journal of Integer Sequences, 16:Article 13.3.1, 2013.
  • [21] L.-H. Tsai. Asymptotic analysis of an algorithm for balanced processor scheduling. SIAM Journal on Computing, 21:59–64, 1992.
  • [22] D. W. Wilson. Sequence A025591. The On-Line Encyclopedia of Integer Sequences, 2023.