1 Introduction

Perhaps the most famous result in social choice is Arrow’s impossibility theorem (Arrow 1951), which establishes that there is no perfect method of aggregating voters’ preferences over three or more candidates into a collective opinion. However, this impossibility result only applies if there are no constraints on how the voters may rank the candidates. Thus, a common strategy to circumvent Arrow’s theorem is to consider restricted preference domains, i.e., to assume that voters’ preferences have additional structure. Under such assumptions, one can often develop aggregation procedures that have a number of desirable properties.

A prominent example of a restricted domain is that of single-peaked preferences (Black 1948). Informally, in single-peaked elections all candidates can be ordered along a single axis, each voter has a most preferred point on this axis, and each voter ranks all candidates so that if candidate a lies between candidate b and the voter’s most preferred point then this voter prefers a to b (see Sect. 2). This restricted domain has a number of useful properties: every single-peaked election has a weak Condorcet winner (i.e., a candidate preferred to every other candidate by a weak majority of the voters), its majority relation is transitive (i.e., if a majority of the voters prefer a to b and a majority of the voters prefer b to c, then a majority of the voters prefer a to c) (Inada 1969), and single-peaked elections admit a strategyproof voting rule (Moulin 1980). It was recently established that such elections can be characterized in terms of forbidden configurations (Ballester and Haeringer 2011): there are two elections (one containing two voters and four candidates, and the other containing three voters and three candidates) such that an election is single-peaked if and only if it does not contain subelections that are equivalent to one of these two elections.

Another well-studied restricted domain is that of single-crossing elections (Mirrlees 1971; Roberts 1977). In such elections, the voters can be ordered so that for every pair of candidates their “trajectories” in the voters’ preferences intersect at most once, i.e., for every pair of candidates a, b it holds that if the first voter in the ordering ranks a above b then the voters who prefer a to b form a prefix of the ordering. Single-crossing preferences play an important role in the analysis of income redistribution (Mirrlees 1971; Roberts 1977; Meltzer and Richard 1981), coalition formation (Demange 1994), and strategic voting (Saporiti and Tohmé 2006; Saporiti 2009; Barberà and Moreno 2011). Single-crossing elections share some of the desirable properties of single-peaked elections: for instance, every single-crossing election has a weak Condorcet winner, and Bredereck et al. (2013) show that single-crossing elections, too, can be characterized in terms of a small number of forbidden configurations. However, neither of the restrictions implies the other.

Computational complexity considerations provide another reason to be interested in restricted preferences: single-peaked and single-crossing elections often admit efficient algorithms for social choice problems that are hard for elections with unrestricted preferences. This observation has recently led to a new wave of interest in restricted domains within the computational social choice community (Walsh 2007; Conitzer 2009; Faliszewski et al. 2011b, a; Cornaz et al. 2012, 2013; Betzler et al. 2013; Skowron et al. 2015; Brandt et al. 2015; Dey and Misra 2016; Misra et al. 2017; Jaeckle et al. 2018; Lakhani et al. 2019); see also the survey by Elkind et al. (2017).

Thus, the existing body of work provides us with a good understanding of the properties of elections that are single-peaked or single-crossing. Against this background, the goal of this paper is to characterize the elections that belong to the intersection of these two domains; we refer to the resulting class of elections as the SPSC domain. One of the reasons to be interested in the SPSC domain is the fact that it contains a rich and natural class of elections, namely, the 1-Euclidean elections. These are elections where both voters and candidates can be identified with points on the real line so that each voter prefers the candidates who are closer to her to ones that are further away. The observation that 1-Euclidean elections are both single-peaked and single-crossing dates back to Grandmont (1978). On the other hand, it is known that there exist SPSC elections that are not 1-Euclidean, i.e., the SPSC domain is strictly larger than the 1-Euclidean domain; the first such example can be found in the work of Coombs (1950), and this also follows from the fact that 1-Euclidean elections cannot be characterized by finitely many forbidden configurations (Chen et al. 2017). While the 1-Euclidean domain admits a very intuitive geometric description, it is more difficult to work with analytically than the single-peaked or the single-crossing domain: for instance, while the latter two domains admit purely combinatorial recognition algorithms (Bartholdi and Trick 1986; Doignon and Falmagne 1994; Escoffier et al. 2008; Elkind et al. 2012; Bredereck et al. 2013), all known algorithms for recognizing 1-Euclidean elections are based on solving linear programs (Doignon and Falmagne 1994; Knoblauch 2010).Footnote 1 Thus, informally, the SPSC domain can be viewed as a combinatorial approximation of the 1-Euclidean domain.

We have mentioned that both the single-peaked domain and the single-crossing domain can be characterized in terms of forbidden configurations; consequently, this is also true for the SPSC domain. However, the resulting description is not particularly intuitive. In this paper, we offer an alternative characterization of the SPSC domain. A notion that turns out to be useful in this context is that of minimal richness: an election is minimally rich if every candidate is ranked first in at least one vote. We show that an election is both single-peaked and single-crossing if and only if it can be obtained from a minimally rich single-crossing election by deleting voters. We develop two combinatorial algorithms that, given an SPSC election, identify a minimally rich single-crossing election from which it can be obtained. As the SPSC domain is larger than the 1-Euclidean domain, we hope that our characterization and algorithms can be useful for dealing with problems for which initial intuitions were obtained in the 1-Euclidean setting, but where a combinatorial perspective is necessary; for example, in another paper we used this approach to find an improved algorithm for the egalitarian variant of the Monroe multiwinner rule (Skowron et al. 2015).

2 Preliminaries

Given a positive integer s, we write [s] to denote the set \(\{1, \ldots , s\}\). An election is a pair (CV), where \(C = \{c_1, \ldots , c_m\}\) is a set of candidates and \(V = (v_1, \ldots , v_n)\) is a list of voters. Each voter \(v \in V\) is described by her preference order, or vote, \(\succ _v\), which is a linear order over C. Given a voter \(v \in V\) and a candidate \(c \in C\), we denote by \({{{\mathrm {pos}}}}(v, c)\) the position of c in \(\succ _v\): we have \({{{\mathrm {pos}}}}(v, c)=1\) if c is v’s most preferred candidate and \({{{\mathrm {pos}}}}(v, c)=m\) if c is v’s least preferred candidate. Voter v’s most preferred candidate is denoted by \({{{\mathrm {top}}}}(v)\). We refer to the list \((\succ _v)_{v\in V}\) as the preference profile. In what follows, we use the terms “election”, “preferences”, and “profile” interchangeably.

Given an election \(E=(C, V)\) and a subset of candidates \(D\subset C\), let \(V|_D\) denote the profile obtained by restricting the preference order of each voter in V to D. Throughout the paper, we assume that the candidate set C remains fixed, but the voter population may vary. The concatenation of two voter lists U and V is denoted by \(U+V\); if U consists of a single vote u, we simply write \(u+V\). We say that a list U is a sublist of a list V (and write \(U\subseteq V\)) if U can be obtained from V by deleting voters. An election \((C', V')\) is said to be a subelection of an election (CV) if \(C'\subseteq C\) and there exists a \(U\subseteq V\) such that \(V'=U|_{C'}\).

Single-crossing (also known as intermediate or order-restricted) preferences, first studied by Mirrlees (1971) and Roberts (1977), capture settings where the voters can be ordered along a single axis according to their beliefs.

Definition 1

An election \(E = (C,V)\) with \(C = \{c_1, \ldots , c_m\}\), \(V = (v_1, \ldots , v_n)\) is single-crossing (SC) (with respect to the given order of voters) if for every pair of candidates a, b such that \(a \succ _{v_1} b\) there exists a \(t \in [n]\) such that \(\{ i \in [n] \mid a \succ _{v_i} b \} = [t]\).

Intuitively, as we sweep from left to right through the list of voters in a single-crossing election, the relative order of every pair of candidates changes at most once.

We emphasize that we define single-crossing preferences with respect to a fixed order of the voters. Alternatively, one could define an election to be single-crossing if the voters can be ordered so that the condition in Definition 1 is satisfied. Computationally, these two definitions are essentially equivalent: given an election, one can efficiently check whether there exists an ordering of the voters satisfying the condition in Definition 1, and, if so, find such an ordering in polynomial time (Doignon and Falmagne 1994; Elkind et al. 2012; Bredereck et al. 2013). We state our results in terms of the former definition, as this enables us to formulate the intermediate lemmas more succinctly; however, the reader can verify that our main result (Theorem 9) remains true under the latter definition.

While single-crossing elections are defined in terms of an ordering of the voters, the definition of single-peaked elections (Black 1948) refers to an ordering of the candidates.

Definition 2

The preference order of a voter v with \({{{\mathrm {top}}}}(v)=c\) in an election \(E=(C, V)\) is single-peaked with respect to an order\(\lhd \)overC if for every pair of candidates ab such that \(a \lhd b \lhd c\) or \(c \lhd b \lhd a\) it holds that \(c \succ _v b \succ _v a\). An election \(E=(C, V)\) is single-peaked with respect to\(\lhd \) if every vote in V is single-peaked with respect to \(\lhd \) in E; in this case, \(\lhd \) is called a societal axis for E. E is single-peaked (SP) if it is single-peaked with respect to some societal axis \(\lhd \).

There are polynomial-time algorithms that given an election E decide if it is single-peaked and, if so, compute a societal axis \(\lhd \) such that E is single-peaked with respect to \(\lhd \) (Bartholdi and Trick 1986; Doignon and Falmagne 1994; Escoffier et al. 2008). Thus we can assume without loss of generality that when we are given a single-peaked election, we are also provided a societal axis that witnesses this.

3 Characterization of the SPSC domain

Fix a candidate set C and consider the domain of all elections over C that are single-peaked with respect to some order of the candidates and single-crossing with respect to the order in which the voters are listed. We will refer to this domain as the SPSC domain; note that this domain contains elections that differ form each other in terms of the number of voters.

Our main result—the characterization of the SPSC domain—is based on the concept of minimally rich single-crossing elections. An election is minimally rich if every candidate is ranked first by at least one voter. The notion of minimal richness was used, e.g., by Cornaz et al. (2012, 2013) and Skowron et al. (2015) in the context of voting rules with computationally hard winner-determination procedures.Footnote 2 Interestingly, minimal richness turns out to be closely related to the two domains restrictions that are the focus of this paper: every minimally rich single-crossing (MRSC) election is single-peaked. This observation follows from the discussion of top monotonicity by Barberà and Moreno (2011) and from a recent characterization of Puppe (2018, Corollary 3); for the sake of completeness, we provide a very simple, direct proof.

Proposition 3

A minimally rich single-crossing election is single-peaked with respect to the axis given by the preference order of the first voter.

Proof

Let \(E = (C,V)\) be a minimally rich single-crossing election. Without loss of generality, we assume that the preference order of the first voter in V is \(c_1 \succ c_2 \succ \cdots \succ c_m\). We will show that each vote in V is single-peaked with respect to this order. It suffices to argue that for each voter \(v_i\in V\) and for all \(1 \le j<k<\ell \le m\) it holds that \(c_k\) is not ranked last among \(c_j\), \(c_k\) and \(c_{\ell }\) in \(v_i\)’s preference order.

Suppose for the sake of contradiction that there is a triple of candidates \(c_j\), \(c_k\) and \(c_{\ell }\), \(j< k < \ell \), such that some voter \(v_i\) in \(V'\) ranks \(c_k\) below \(c_j\) and \(c_\ell \). Since (CV) is minimally rich, there is another voter \(v_{i'}\) that ranks \(c_k\) first. It must be that \(i' > i\) because \(c_j \succ _{v_1} c_k\), \(c_j\succ _{v_i} c_k\), \(c_k\succ _{v_{i'}} c_j\) and (CV) is single-crossing. Yet, we have \(c_k \succ _{v_1} c_\ell \), \(c_\ell \succ _{v_i} c_k\), and \(c_k \succ _{v_{i'}} c_\ell \), a contradiction. \(\square \)

Proposition 3 suggests that the SPSC domain is closely related to the domain of all single-crossing elections over C that are minimally rich. However, it is evident that there are elections that are single-peaked and single-crossing, but not minimally rich. To see this, it suffices to note that the SPSC domain is closed under voter deletion: Given an SPSC election and some candidate c in it, we can delete all voters that rank c first to obtain an SPSC election that is not minimally rich. This observation motivates us to study the closure of the minimally rich single-crossing domain under voter deletion.

Definition 4

An election \(E'=(C, V')\) is pre-minimally rich single-crossing (pre-MRSC) if there exists a minimally rich single-crossing election \(E = (C,V)\) such that \(V' \subseteq V\).

Clearly, pre-MRSC elections are single-crossing and single-peaked. The main result of this paper is that the converse is also true: every SPSC election is pre-MRSC. Before we give the proof of this result, in order to build up the readers’ intuition, we present a general construction of single-crossing elections that are not pre-MRSC.

Example 5

Consider a minimally rich single-crossing election \(E=(C, V)\) with \({{|}}C{{|}}\ge 3\) and add a new candidate \(x\not \in C\) to the top of each vote. Let \(E'=(C\cup \{x\}, V')\) denote the resulting election. We claim that \(E'\) is not pre-MRSC. Indeed, suppose that there exists a minimally rich single-crossing election \(E''=(C\cup \{x\}, V'')\) with \(V'\subseteq V''\). Let a, b, and c be three distinct candidates in C, and for each \(z\in \{a, b, c\}\) let \(v_z\) be some vote in \(V''\) that ranks z first (the existence of \(v_z\) follows from the fact that \(E''\) is minimally rich). Since \(E''\) is single-crossing, the voters that rank x first form a contiguous block in \(V''\). At least two of the voters in \(\{v_a, v_b, v_c\}\) have to appear on the same side of this block. Assume without loss of generality that both \(v_a\) and \(v_b\) precede the block of voters that rank x first (and hence precede all voters from \(V'\)), and \(v_a\) precedes \(v_b\). Since E was minimally rich, there is a vote \(v'_a\) in \(V'\) that ranks a second (just below x). However, this is a contradiction, since \(v_a\) and \(v'_a\) rank a above b, \(v_b\) ranks b above a, and \(v_b\) appears between \(v_a\) and \(v'_a\) in \(V''\).

The following two lemmas will be useful in our discussion. The first one provides a characterization of votes that can be inserted into a single-crossing election so that it remains single-crossing. The proof of this lemma follows directly from the definition of single-crossing preferences.

Lemma 6

Consider a single-crossing election \(E=(C, V)\), where \(C=\{c_1, \dots , c_m\}\) and \(V=(v_1, \dots , v_n)\).

  1. 1.

    The election \(E^*=(C, V^*)\) obtained from E by inserting a vote \(v^*\) right after a vote \(v_i\), \(i\in [n-1]\), is single-crossing if and only if \(v^*\) has the following property: for every pair of candidates \(c_j, c_\ell \in C\) it holds that if \(c_j\succ _{v^*} c_\ell \) then \(c_j\succ _{v_i} c_\ell \) or \(c_j\succ _{v_{i+1}} c_\ell \).

  2. 2.

    The election \(E^+=(C, V^+)\) obtained from E by inserting a vote \(v^+\) right after \(v_n\) (i.e., \(V^+=V+v^+\)) is single-crossing if and only if \(v^+\) has the following property: for every pair of candidates \(c_j, c_\ell \in C\) it holds that if \(c_j\succ _{v^+} c_\ell \) then either \(c_j\succ _{v_n} c_\ell \) or \(c_\ell \succ _{v_i} c_j\) for all \(i\in [n]\).

  3. 3.

    The election \(E^-=(C, V^-)\) obtained from E by inserting a vote \(v^-\) right before \(v_1\) (i.e., \(V^-=v^-+V\)) is single-crossing if and only if \(v^-\) has the following property: for every pair of candidates \(c_j, c_\ell \in C\) it holds that if \(c_j\succ _{v^-} c_\ell \) then either \(c_j\succ _{v_1} c_\ell \) or \(c_\ell \succ _{v_i} c_j\) for all \(i\in [n]\).

Lemma 6 can be interpreted as a procedure for building a maximal (in terms of inclusion) single-crossing election. Indeed, for a given single-crossing election E it tells us how to extend it with a single vote—not yet present in E—so that the election remains single-crossing, or informs us that such an extension is impossible. By applying the lemma repeatedly, we eventually obtain a single-crossing election that cannot be extended any further.

Our second lemma relates an order of the voters witnessing that the election is single-crossing and an axis witnessing that the election is single-peaked.

Lemma 7

Suppose that election \(E=(C, V)\) with \(C=\{c_1, \dots , c_m\}\), \(V=(v_1, \dots , v_n)\) is single-crossing as well as single-peaked with respect to the candidate order \(c_1 \lhd \cdots \lhd c_m\). Suppose that the top-ranked candidate in \(v_1\) is \(c_i\) and the top-ranked candidate in \(v_n\) is \(c_j\) for some \(i\le j\). Then the most preferred candidate of each voter lies between \(c_i\) and \(c_j\), i.e., if \(c_\ell \) is the top-ranked candidate in some \(v_k\) in V, then \(i\le \ell \le j\).

Proof

Suppose that for some vote \(v_k\), \(k\in [n]\), the top-ranked candidate in \(v_k\) is \(c_\ell \) for some \(\ell < i\). Since E is single-peaked with respect to \(\lhd \), \(c_i\) appears above \(c_\ell \) in \(v_n\). Therefore, the pair of candidates \((c_i, c_\ell )\) and the triple of votes \((v_1, v_k, v_n)\) provide a witness that E is not single-crossing.

Similarly, suppose that for some vote \(v_k\), \(k\in [n]\), the top-ranked candidate in \(v_k\) is \(c_\ell \) for some \(\ell > j\). Since E is single-peaked with respect to \(\lhd \), \(c_j\) appears above \(c_\ell \) in \(v_1\). Therefore, the pair of candidates \((c_j, c_\ell )\) and the triple of votes \((v_1, v_k, v_n)\) provide a witness that E is not single-crossing. \(\square \)

Before we present our main result, we will prove one more useful lemma: we will show that we can take an SPSC election E and prepend a vote that orders the candidates in the same way as some axis witnessing that E is single-peaked, so that the resulting election remains single-crossing.

Given an axis \(\lhd \) for an election \(E=(C, V)\), let \(v_\lhd \) be the vote that corresponds to \(\lhd \), i.e., for every \(c_k, c_\ell \in C\) it holds that \(c_k\) is ranked above \(c_\ell \) in \(v_\lhd \) if and only if \(c_k\lhd c_\ell \).

Lemma 8

Suppose that election \(E=(C, V)\) with \(C=\{c_1, \dots , c_m\}\), \(V=(v_1, \dots , v_n)\) is SPSC. Then there exists some axis \(\lhd \) such that E is single-peaked with respect to \(\lhd \) and the election \((C, v_\lhd +V)\) is also SPSC.

Proof

If E is single-peaked with respect to some axis \(\lhd \) then the election \((C, v_\lhd +V)\) is single-peaked. To show that \(\lhd \) can be chosen so that \((C, v_\lhd +V)\) is single-crossing, we proceed as follows. We pick an arbitrary axis \(\lhd \) witnessing that E is single-peaked, and try to prepend it to V. If this leads to an election that is not single-crossing, we find a “minimal” pair of candidates that violates the single-crossing property, and modify \(\lhd \) based on this pair. We then show that our modification is legal, i.e., it results in another axis witnessing that our election is single-peaked. Further, we show that this modification step can be executed at most m times. It follows that eventually we obtain a single-crossing election.

Suppose that the top-ranked candidate in \(v_1\) is \(c_i\) and the top-ranked candidate in \(v_n\) is \(c_j\). Consider some axis \(\lhd \) such that E is single-peaked with respect to \(\lhd \) and \(c_i\lhd c_j\). We say that a pair of candidates \((c_k, c_\ell )\) is violating for \(\lhd \) if \(c_k \lhd c_\ell \), \(c_\ell \succ _{v_1} c_k\), and \(c_k\succ _{v_n} c_\ell \). By the third claim of Lemma 6, the election \((C, v_\lhd +V)\) is not single-crossing if and only if there exists some violating pair for \(\lhd \). Observe that if a pair \((c_k, c_\ell )\) is violating for \(\lhd \) then \(c_k\lhd c_i\) and \(c_j\lhd c_\ell \). Indeed, if \(c_k = c_i\) or \(c_i\lhd c_k\), then \(v_\lhd \) and \(v_1\) agree on \((c_k, c_\ell )\), and if \(c_\ell = c_j\) or \(c_\ell \lhd c_j\) then \(v_\lhd \) and \(v_n\) disagree on \((c_k, c_\ell )\).

Given an axis \(\lhd \) and a pair of candidates ab with \(a\lhd b\), define:

$$\begin{aligned} \textstyle \min _\lhd \{a, b\}= a,\quad \max _\lhd \{a, b\}=b. \end{aligned}$$

We claim that if \((c_k,c_\ell )\) and \((c_{k'},c_{\ell '})\) are two violating pairs, then \((\max _\lhd \{c_k,c_{k'}\},\min _\lhd \{c_\ell ,c_{\ell '}\})\) is a violating pair as well. Indeed, we can assume without loss of generality that \(\max _\lhd \{c_k,c_{k'}\}= c_{k'}\). Then if \(\min _\lhd \{c_\ell , c_{\ell '}\}=c_{\ell '}\), our claim is immediate, so it suffices to consider the case where \(\min _\lhd \{c_\ell , c_{\ell '}\}=c_\ell \), i.e.,

$$\begin{aligned} c_k \lhd c_k' \lhd c_i \lhd c_j \lhd c_\ell \lhd c_{\ell '}. \end{aligned}$$

Then \(c_{\ell '} \succ _{v_1} c_{k'}\) (since \((c_{k'},c_{\ell '})\) is a violating pair) and \(c_\ell \succ _{v_1} c_{\ell '}\) (since \(v_1\) is single-peaked with respect to \(\lhd \) and ranks \(c_i\) first) and hence \(c_\ell \succ _{v_1} c_{k'}\). By a similar argument, \(c_{k'} \succ _{v_n} c_{\ell }\). Thus, \((c_{k'},c_\ell )\) is a violating pair.

Let \({\mathcal{S}}_\lhd \) be the set of all violating pairs for \(\lhd \). We say that \((c_p, c_q)\in {\mathcal{S}}_\lhd \) is the minimal violating pair for\(\lhd \) if for each \((c_k, c_\ell )\in {\mathcal{S}}_\lhd \) it holds that (a) \(c_k\lhd c_p\) or \(c_k = c_p\), and (b) \(c_q\lhd c_\ell \) or \(c_\ell = c_q\).

The argument in the previous paragraph shows that for every axis \(\lhd \) such that \({\mathcal{S}}_\lhd \ne \emptyset \) there is a unique minimal violating pair. If \((c_p, c_q)\) is the minimal violating pair for \(\lhd \), set

$$\begin{aligned} \delta (\lhd )=|\{c\mid c_p\lhd c\lhd c_i\}|. \end{aligned}$$

Now, pick an arbitrary axis \(\lhd \) such that E is single-peaked with respect to \(\lhd \); assume without loss of generality that \(c_1\lhd \cdots \lhd c_m\). If there are no violating pairs for \(\lhd \), we are done. Otherwise, let \((c_p, c_q)\) be the minimal violating pair for \(\lhd \). Consider the axis \(\lhd '\) obtained from \(\lhd \) by swapping the “tails” \((c_1, \dots , c_p)\) and \((c_q, \dots , c_m)\). Formally, \(\lhd '\) is given by

$$\begin{aligned} c_m\lhd 'c_{m-1}\lhd '\cdots \lhd 'c_q\lhd 'c_{p+1}\lhd '\cdots \lhd ' c_{q-1}\lhd ' c_p\lhd '\cdots \lhd ' c_1. \end{aligned}$$

We will now prove that every vote in V is single-peaked with respect to \(\lhd '\). Indeed, suppose that this is not the case for some vote \(v\in V\), and let \(c_t\) be the top-ranked candidate in v. Note that by Lemma 7 we have \(i\le t\le j\). Let \(C^{--}=\{c_1,\dots , c_p\}\), \(C^-=\{c_{p+1}, \dots , c_{t-1}\}\), \(C^+=\{c_{t+1},\dots , c_{q-1}\}\), \(C^{++}=\{c_q, \dots , c_m\}\). We know that v is single-peaked with respect to \(\lhd \); hence, it is not single-peaked with respect to \(\lhd '\) if and only if (a) \(a\succ _v b\) for some \(a\in C^{--}\), \(b\in C^+\) or (b) \(c\succ _v d\) for some \(c\in C^{++}\), \(d\in C^-\). We will now argue that neither of these cases is possible.

Consider first case (a). Since \(p < i\) and \(q > j\), v’s most preferred candidate in \(C^{--}\) is \(c_p\), and his least preferred candidate in \(C^+\) is \(c_{q-1}\), so it has to be the case that v prefers \(c_p\) to \(c_{q-1}\). On the other hand, \(v_1\) prefers \(c_q\) to \(c_p\) (because \((c_p, c_q)\) is a violating pair) and \(c_{q-1}\) to \(c_q\) (because \(q>i\)), which means that \(c_{q-1}\succ _{v_1} c_p\). Further, \(v_n\) prefers \(c_{q-1}\) to \(c_p\), since otherwise \((c_p, c_{q-1})\) would be a violating pair, a contradiction with \((c_p, c_q)\) being the minimal violating pair for \(\lhd \). Thus, the pair \((c_p, c_{q-1})\) and the triple \((v_1, v, v_n)\) provide a witness that E is not single-crossing, a contradiction.

The argument for case (b) is similar. Since \(p < i\) and \(q > j\), v’s most preferred candidate in \(C^{++}\) is \(c_q\), and his least preferred candidate in \(C^-\) is \(c_{p+1}\), so it has to be the case that v prefers \(c_q\) to \(c_{p+1}\). On the other hand, \(v_n\) prefers \(c_p\) to \(c_q\) (since \((c_p, c_q)\) is a violating pair); as \(p<j\), this implies that \(v_n\) prefers \(c_{p+1}\) to \(c_q\). Further, \(v_1\) prefers \(c_{p+1}\) to \(c_q\), since otherwise \((c_{p+1}, c_q)\) would be a violating pair, a contradiction with \((c_p, c_q)\) being the minimal violating pair for \(\lhd \). Thus, the pair \((c_{p+1}, c_q)\) and the triple \((v_1, v, v_n)\) provide a witness that E is not single-crossing, a contradiction.

We have shown that E is single-peaked with respect to \(\lhd '\). We will now argue that \(\delta (\lhd ')>\delta (\lhd )\). To this end, we will show that if \((c_k, c_\ell )\) is a violating pair for \(\lhd '\), then \(k\ge q+1\); this would imply \(\delta (\lhd ') = (k-q) +(i-p-1) > i-p-1 = \delta (\lhd )\).

Note first that if \((c_k, c_\ell )\) is a violating pair for \(\lhd '\), then \(c_k\) has to be located to the left of \(c_i\) with respect to \(\lhd '\), so either \(k\in \{m, \dots , q\}\) or \(k\in \{p+1, \dots , i-1\}\). Similarly, \(c_\ell \) has to be located to the right of \(c_j\) with respect to \(\lhd '\), so either \(\ell \in \{j+1, \dots , q-1\}\) or \(\ell \in \{p, \dots , 1\}\).

We consider the following cases and conclude that each of them is impossible.

  1. 1.

    \(k\in \{p+1, \dots , i-1\}\), \(\ell \in \{j+1, \dots , q-1\}\). Then \((c_k, c_\ell )\) is a violating pair for \(\lhd \), a contradiction with our choice of \((c_p, c_q)\).

  2. 2.

    \(k\in \{p+1, \dots , i-1\}\), \(\ell \in \{p, \dots , 1\}\). Since \(v_1\) is single-peaked with respect to \(\lhd \) and \(p < i\), \(v_1\) prefers \(c_k\) to \(c_\ell \), so \((c_k, c_\ell )\) cannot be a violating pair for \(\lhd '\).

  3. 3.

    \(k=q\), \(\ell \in \{j+1, \dots , q-1\}\). Since \(v_n\) is single-peaked with respect to \(\lhd \) and \(j< \ell < q\), \(v_n\) prefers \(c_\ell \) to \(c_k\), so \((c_k, c_\ell )\) cannot be a violating pair for \(\lhd '\).

  4. 4.

    \(k=q\), \(\ell \in \{p, \dots , 1\}\). Since \((c_p, c_q)\) is a violating pair with respect to \(\lhd \), \(v_1\) prefers \(c_q\) to \(c_p\). Since \(v_1\) is single-peaked with respect to \(\lhd \) and \(\ell \le p< i\), \(v_1\) prefers \(c_p\) to \(c_\ell \). Hence, we have \(c_k=c_q\succ _{v_1} c_p\succ _{v_1} c_\ell \), so \((c_k, c_\ell )\) cannot be a violating pair for \(\lhd '\).

Thus, the only remaining possibility is that \(k>q\) and therefore \(\delta (\lhd ') > \delta (\lhd )\).

We now apply the same argument to \(\lhd '\). If \(v_{\lhd '}+V\) is single-crossing, we are done, and otherwise we obtain an axis \(\lhd ''\) such that E is single-peaked with respect to \(\lhd ''\) and \(\delta (\lhd '') > \delta (\lhd ')\). We then continue in the same manner; since \(\delta ({{\overline{\lhd }}})\le m\) for every axis \({\overline{\lhd }}\), after at most m steps we arrive to an axis \(\lhd ^*\) such that E is single-peaked with respect to \(\lhd ^*\) and \(v_{\lhd ^*}+V\) is single-crossing. This completes the proof. \(\square \)

We are now ready to prove our main result.

Theorem 9

An election is SPSC if and only if it is pre-MRSC.

Proof

We have already argued that every pre-MRSC election is SPSC (see Proposition 3). For the converse direction, we proceed as follows.

Consider an SPSC election \(E=(C, V)\) with \(C=\{c_1, \dots , c_m\}\), \(V=(v_1, \dots , v_n)\). By Lemma 8 we can assume that E is single-peaked with respect to the candidate order \(c_1 \lhd \cdots \lhd c_m\), and \(v_1\) is given by \(c_1\succ \cdots \succ c_m\). We now show how to extend E to a single-crossing minimally rich election.

For every \(c_i\in C\), let \(V_i\) be the list of voters who rank \(c_i\) first. Consider two candidates \(c_i, c_j\in C\) such that \(V_i\ne \emptyset \), \(V_j\ne \emptyset \) and \(i < j\). Since E is single-crossing and \(c_i\succ _{v_1}c_j\), in V all voters from \(V_i\) appear before those from \(V_j\).

Let \(c_s\) be the first candidate for which \(V_s=\emptyset \). Note that \(s>1\), since \(c_1\) is ranked first by \(v_1\). We have \(V_r\ne \emptyset \) for all \(r<s\), and, in particular, \(V_{s-1}\ne \emptyset \). Let u be the last voter in \(V_{s-1}\). Since u’s preference order is single-peaked with respect to \(\lhd \), his vote can be written as \(c_{s-1}\succ c_{s-2}\succ \cdots \succ c_{s-\ell }\succ c_s\succ \cdots \) for some \(\ell \ge 1\). Now consider the vote v obtained by moving \(c_s\) to the top of u without changing the relative order of the remaining candidates. It is immediate that v is single-peaked with respect to \(\lhd \): intuitively, when ranking candidates, v starts at \(c_s\), then moves one step to the left, then emulates u. We claim that the election obtained by inserting v right after u remains single-crossing.

Suppose that \(u\ne v_n\), and let w be the voter that appears right after u in V. The most preferred candidate of w is some \(c_q\) for \(q>s\). Since w is single-peaked with respect to \(\lhd \) and ranks \(c_q\) first, v and w agree on all pairs of the form \((c_s, c_{s-r})\), \(r\in [\ell ]\). On the other hand, u and v agree on all other pairs of candidates. By the first claim of Lemma 6, we are done.

Now, suppose that \(u=v_n\), i.e., v is the last voter in the new election. The only pairs of candidates that u and v disagree on are \((c_s, c_{s-1}), \dots , (c_s, c_{s-\ell })\). On the other hand, both \(v_1\) and u (and hence all voters in V) rank \(c_s\) below \(c_{s-r}\) for all \(r=1, \dots , \ell \). By the second claim of Lemma 6, we are done.

We have successfully added a vote that ranks \(c_s\) first. By repeating this construction for all candidates that had no first-place votes in the original election, we obtain a minimally rich profile that is single-crossing and single-peaked with respect to \(\lhd \). This completes the proof. \(\square \)

Theorem 9 is constructive and, in particular, it implies a polynomial-time algorithm that, given an SPSC election E, finds an MRSC election that can be obtained from E by adding voters. This algorithm consists of two steps: (a) finding the single-peaked axis that can be used as the first vote (or checking that the first vote already defines an axis witnessing that the election is single-peaked), and (b) adding the votes as in the proof. The second step requires time \(O(n+m^2)\): we have to look at the first position of each vote, and at most m times we have to create a new vote in O(m) time. Unfortunately, the first step may be significantly slower as Lemma 8 implies only an \(O(nm+m^3)\) algorithm for the problem (the O(nm) part stems from computing a single-peaked axis using the algorithm of Doignon and Falmagne (1994) or Escoffier et al. (2008), and the \(O(m^3)\) part captures the complexity of finding violating pairs and manipulating the axis).

Altogether, the running time of the algorithm implied by Theorem 9 is \(O(nm + m^3)\). The next theorem provides an alternative \(O(nm^2)\) algorithm by looking at the problem from a very different angle.

Theorem 10

There exists an algorithm that given an election \(E=(C, V)\) decides whether it is pre-MRSC, and, if so, constructs an MRSC election \(E'=(C, V')\) such that \(V\subseteq V'\), in time \(O(nm^2)\).

Proof

Suppose that \(C=\{c_1, \dots , c_m\}\), \(V=(v_1, \dots , v_n)\). Let \(C^*\) be the set of candidates that receive no first-place votes from the voters in V.

Suppose there exists an MRSC election \(E'=(C, V')\) with \(V\subseteq V'\). We first present some observations on the structure of \(E'\). We can assume without loss of generality that for each \(c_j\in C^*\) there is a unique vote \(v^*_j\) in \(V'\) that ranks \(c_j\) first. Consider an arbitrary candidate \(c\in C{\setminus }\{c_j\}\). Suppose first that \(c\succ _{v_1} c_j\), \(c_j\succ _{v_n} c\). Then there is a unique index \(i\in [n-1]\) such that \(c\succ _{v_i} c_j\), \(c_j\succ _{v_{i+1}} c\). Since \(E'\) is single-crossing, it has to be the case that \(v^*_j\) appears after \(v_i\) in \(V'\). Similarly, if \(c_j\succ _{v_1} c\), \(c\succ _{v_n} c_j\), then there is a unique index \(i\in [n-1]\) such that \(c_j\succ _{v_i} c\), \(c\succ _{v_{i+1}} c_j\), and \(v^*_j\) appears before \(v_{i+1}\) in \(V'\). Finally, if all voters in V prefer c to \(c_j\), then in \(V'\) voter \(v^*_j\) appears either before \(v_1\) or after \(v_n\).

We can now present the high-level idea behind our algorithm. For each candidate \(c_j\in C^*\) our algorithm determines all the constraints on the position of \(v^*_j\), as described above. If for some candidate the constraints are incompatible with each other, it stops and outputs “no”. Otherwise, it outputs “yes”; we will show how to construct a minimally rich single-crossing election \(E=(C, V')\) with \(V\subseteq V'\) in this case.

In more detail, our algorithm first checks whether E is single-crossing and outputs “no” if this is not the case. Thus, from now on we will assume that E is single-crossing with respect to \((v_1, \dots , v_n)\). Then, for each \(c_j\in C^*\), we construct a set \(P_j\) as follows. Initially we set \(P_j=\{0, 1, \dots , n\}\). We then consider all candidates in \(C{\setminus }\{c_j\}\) one by one. For each \(c\in C{\setminus }\{c_j\}\) we have one of the following cases:

  1. (1)

    There exists an \(i\in [n-1]\) such that \(c\succ _{v_i} c_j\), \(c_j\succ _{v_{i+1}} c\). In this case we set \(P_j:=P_j{\setminus } \{0, \dots , i-1\}\).

  2. (2)

    There exists an \(i\in [n-1]\) such that \(c_j\succ _{v_i} c\), \(c\succ _{v_{i+1}} c_j\). In this case we set \(P_j:=P_j{\setminus } \{i+1, \dots , n\}\).

  3. (3)

    For all \(i\in [n]\) it holds that \(c\succ _{v_i} c_j\). In this case we set \(P_j:=P_j{\setminus } \{1, \dots , n-1\}\).

  4. (4)

    For all \(i\in [n]\) it holds that \(c_j\succ _{v_i} c\). In this case \(P_j\) remains unchanged.

We compute the sets \(P_j\) for all candidates \(c_j\in C^*\). If \(P_j=\emptyset \) for some \(c_j\in C^*\), we output “no”; otherwise we output “yes”. We claim that this algorithm correctly decides whether E is pre-MRSC.

Suppose first that the algorithm outputs “no”. Then either E is not single-crossing, or there exists a candidate \(j\in C^*\) with \(P_j=\emptyset \). In the former case the algorithm is obviously correct. Now consider the latter case. As argued above, the set \(P_j\) encodes the possible positions with respect to V for a voter that ranks \(c_j\) first. That is, we remove an element i, \(i\in [n]\), from \(P_j\) if and only if placing a voter who ranks \(c_j\) first after \(v_i\) would result in an election that is not single-crossing. Similarly, we remove 0 from \(P_j\) if and only if placing a voter who ranks \(c_j\) first before all voters in V would result in an election that is not single-crossing. Thus, if all positions have been removed from \(P_j\), this means that it is impossible to place a voter who ranks \(c_j\) first without turning E into an election that is not single-crossing. This implies that E is not pre-MRSC.

On the other hand, suppose that the algorithm outputs “yes”, i.e., \(P_j\ne \emptyset \) for all \(c_j\in C^*\). Observe that for each \(c_j\in C^*\) we have either \({{|}}P_j{{|}}=1\) or \(P_j=\{0, n\}\). Indeed, suppose that \(i, \ell \in P_j\) for some \(c_j\in C^*\), and \(i<\ell \). Voter \(v_\ell \) ranks some candidate c, \(c\ne c_j\), first. Now, when constructing the set \(P_j\), our algorithm has considered c. If \(c_j\succ _{v_1} c\), the algorithm should have removed \(\ell \) from \(P_j\). Similarly, if \(c_j\succ _{v_n} c\), the algorithm should have removed i from \(P_j\). Since both i and \(\ell \) are still in \(P_j\), it has to be the case that both \(v_1\) and \(v_n\) (and hence all voters in V) prefer c to \(c_j\). But then the algorithm has removed all elements other than 0 and n from \(P_j\) when considering c, so we have \(i=0\), \(\ell =n\).

Now, let \(C_i=\{c_j\in C^*\mid i\in P_j\}\) for all \(i\in [n]\). Consider an \(i\in [n]\) such that \(C_i\ne \emptyset \), and assume that \(C_i=\{c_{j_1}, \dots , c_{j_t}\}\), where \(v_i\) ranks the candidates in \(C_i\) as \(c_{j_1}\succ \dots \succ c_{j_t}\). Let \(v^*_{j_1}\) be the vote obtained from \(v_i\) by moving candidate \(c_{j_1}\) to the top of \(v_i\) without changing the relative order of the other candidates. Then, for \(\ell =2, \dots , t\) let \(v^*_{j_\ell }\) be the vote obtained from \(v^*_{j_{\ell -1}}\) by moving candidate \(c_{j_\ell }\) to the top of \(v^*_{j_{\ell -1}}\) without changing the relative order of the other candidates. Let \(V^*_i=(v^*_{j_1}, \dots , v^*_{j_t})\) and insert the list \(V^*_i\) after \(v_i\). Further, let \(C_0=\{c_j\in C^*\mid P_j=\{0\}\}\). Suppose that \(C_0=\{c_{\ell _1}, \dots , c_{\ell _s}\}\), where \(v_1\) ranks the candidates in \(C_0\) as \(c_{\ell _1}\succ \dots \succ c_{\ell _s}\). Let \(v^*_{\ell _1}\) be the vote obtained from \(v_1\) by moving candidate \(c_{\ell _1}\) to the top of \(v_1\) without changing the relative order of the other candidates. Then for \(j=2, \dots , s\) let \(v^*_{\ell _j}\) be the vote obtained from \(v^*_{\ell _{j-1}}\) by moving candidate \(c_{\ell _j}\) to the top of \(v^*_{\ell _{j-1}}\) without changing the relative order of the other candidates. Let \(V^*_0=(v^*_{\ell _s}, \dots , v^*_{\ell _1})\), and insert the list \(V^*_0\) before \(v_1\). Let \(E'=(C, V')\) denote the resulting election.

Election \(E'\) is minimally rich by construction (and the assumption that our algorithm returned “yes”). To show that it is single-crossing, we apply Lemma 6 repeatedly. Specifically, consider the set \(C_i=\{c_{j_1}, \dots , c_{j_t}\}\) for some \(i\in [n-1]\). Observe that if \(P_j=\{i\}\) for some \(j\in C^*\), then for all c such that \(c \succ _{v_i} c_j\) we have \(c_j \succ _{v_{i+1}} c\), and for all c such that \(c \succ _{v_{i+1}} c_j\) we have \(c_j \succ _{v_i} c\). Indeed, if \(c \succ _{v_i} c_j\) and \(c \succ _{v_{i+1}} c_j\), we would have removed i from \(P_j\) when considering c. Now, consider the vote \(v^*_{j_1}\). It agrees with \(v_i\) on all pairs of candidates not involving \(c_{j_1}\), as well as on all pairs of the form \((c_{j_1}, c)\), where \(c_{j_1}\succ _{v_i} c\). On the other hand, we have argued that if \(c \succ _{v_i} c_{j_1}\) then \(c_{j_1}\succ _{v_{i+1}} c\). Thus, on all pairs of candidates \(v^*_{j_1}\) agrees with \(v_i\) or \(v_{i+1}\), so after we insert \(v^*_{j_1}\) after \(v_i\), the election remains single-crossing by the first claim of Lemma 6.

Further, suppose we have already inserted \(v^*_{j_1}, \dots , v^*_{j_\ell }\) for some \(\ell <t\), and we are trying to insert \(v^*_{j_{\ell +1}}\). The only pairs of candidates on which \(v^*_{j_{\ell +1}}\) and \(v^*_{j_\ell }\) disagree are pairs of the form \((c_{j_{\ell +1}}, c)\), where c is ranked above \(c_{j_{\ell +1}}\) in \(v^*_{j_\ell }\). Note that \(v^*_{j_\ell }\) prefers c to \(c_{j_{\ell +1}}\) if and only if \(v_i\) prefers c to \(c_{j_{\ell +1}}\), which means that \(v_{i+1}\) prefers \(c_{j_{\ell +1}}\) to c. Thus, by the first claim of Lemma 6 the election remains single-crossing after we insert \(v^*_{j_{\ell +1}}\). This inductive argument shows that the election remains single-crossing after we insert all votes in \(V^*_i\). We can apply this argument to all sets \(C_i\), \(i\in [n-1]\), one by one.

Now, consider the set \(C_n\). Observe that if \(n\in P_j\) for some \(j\in C^*\), then for all c such that \(c \succ _{v_n} c_j\) we have \(c \succ _{v_i} c_j\) for all \(i\in [n]\). Indeed, if \(c_j \succ _{v_i} c\) for some \(i\in [n-1]\), we would have removed n from \(P_j\) when considering c. Thus, we can apply an inductive argument similar to the one used for \(C_i\), \(i\in [n-1]\); the only difference is that we invoke the second claim of Lemma 6 rather than its first claim. The set \(C_0\) can be handled similarly, using the third claim of Lemma 6.

It remains to analyze the running time of our algorithm. Bredereck et al. (2013) describe an \(O(nm^2)\) algorithm for checking whether a given election is single-crossing. For each \(c_j\in C^*\), the set \(P_j\) can be computed in time O(nm); the easiest way to achieve this is to preprocess the votes so as to represent each vote as an m-by-m comparison matrix, which can be done in time \(O(nm^2)\). Each of the sets \(C_i\), \(i\in [n]\cup \{0\}\), can be computed in time O(m), and the respective vote list \(V^*_i\) can be computed in time \(O(m|C_i|)\). To establish the bound on the running time, it remains to observe that \(|C_0|+\dots +|C_n|\le m\). \(\square \)

We note that we need not assume that the input election is single-crossing in the given order: given an election, we can decide whether the votes can be reordered so that it becomes single-crossing in the given order in time \(O(nm^2)\) (Bredereck et al. 2013). Hence, performing this check before executing the algorithm presented in Theorem 10 does not affect the overall running time.

We finish our discussion by pointing out an interesting property of SPSC elections: If E is an SPSC election then for each candidate c, as we sweep through the voters in the single-crossing order, the position of c first rises and then falls; this property can be quite useful when deriving algorithms for SPSC elections and was used, e.g., by Skowron et al. (2015).

Proposition 11

For every election \(E = (C,V)\) with \(C = \{c_1, \ldots , c_m\}\), \(V = (v_1, \ldots , v_n)\) that is SPSC with respect to the voter order \((v_1, \dots , v_n)\) and for every candidate \(c\in C\) there exists a voter \(v_\ell \in V\) such that for every pair of voters \(v_i, v_j\) satisfying \(j < i \le \ell \) or \(\ell \le i < j\) it holds that \({{{\mathrm {pos}}}}(v_j, c) \ge {{{\mathrm {pos}}}}(v_i, c)\).

Proof

If an election E has the property described in the proposition statement, then every election obtained from E by deleting voters also has this property. Thus, it suffices to give a proof for the case where E is single-crossing and minimally rich. Fix a candidate \(c\in C\) and let \(v_\ell \) be some voter that ranks c first. Consider two voters, \(v_j\) and \(v_i\), such that \(j < i \le \ell \). If \({{{\mathrm {pos}}}}(v_j, c) < {{{\mathrm {pos}}}}(v_i, c)\), there exists a candidate \(c'\) such that \(v_j\) prefers c to \(c'\), but \(v_i\) prefers \(c'\) to c. However, \(v_\ell \) ranks c first, so she also prefers c to \(c'\), and this is a contradiction with the assumption that E is single-crossing. The case \(\ell \le i< j\) is similar. \(\square \)

4 Conclusions

We have explored the domain of all elections that are simultaneously single-peaked and single-crossing. We established a connection between minimally rich elections, single-crossing elections, and single-peaked elections that led to a characterization of the SPSC domain. Further, we have proposed two algorithms for reconstructing the minimally rich single-crossing election from which they can be obtained. Finding such an embedding may be useful for algorithms that exploit the properties of the SPSC domain, just like finding a single-peaked axis or the single-crossing order of voters is useful for some of the algorithms for single-peaked or single-crossing elections.