Abstract 1 Introduction 2 Preliminaries 3 Balanced Tournaments 4 Lower Bounds 5 Conclusion References

Hardness of Finding Kings and Strong Kings

Ziad Ismaili Alaoui ORCID Department of Computer Science, University of Liverpool, UK Nikhil Mande ORCID Department of Computer Science, University of Liverpool, UK
Abstract

A king in a directed graph is a vertex v such that every other vertex is reachable from v via a path of length at most 2. It is well known that every tournament (a complete graph where each edge has a direction) has at least one king. Our contributions in this work are:

  • We show that the query complexity of determining existence of a king in arbitrary n-vertex digraphs is Θ(n2). This is in stark contrast to the case where the input is a tournament, where Shen, Sheng, and Wu [SICOMP’03] showed that a king can be found in O(n3/2) queries.

  • In an attempt to increase the “fairness” in the definition of tournament winners, Ho and Chang [IPL’03] defined a strong king to be a king k such that, for every v that dominates k, the number of length-2 paths from k to v is strictly larger than the number of length-2 paths from v to k. We show that the query complexity of finding a strong king in a tournament is Θ(n2). This answers a question of Biswas, Jayapaul, Raman, and Satti [DAM’22] in the negative.

A key component in our proofs is the design of specific tournaments where every vertex is a king, and analyzing certain properties of these tournaments. We feel these constructions and properties are independently interesting and may lead to more interesting results about tournament solutions.

Keywords and phrases:
Tournaments, kings, query complexity
Copyright and License:
[Uncaptioned image] © Ziad Ismaili Alaoui and Nikhil Mande; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Problems, reductions and completeness
; Theory of computation Oracles and decision trees ; Mathematics of computing Combinatorics
Editors:
C. Aiswarya, Ruta Mehta, and Subhajit Roy

1 Introduction

A tournament is a complete directed graph. Motivated to find a reasonable notion of a “most-dominant chicken” in a flock of chickens (where the “pecking order” is represented as a tournament), Landau [10] introduced the notion of a king in a tournament. A king in a tournament is a vertex k such that for every other vertex v, either there is an edge from k to v, or there exists a u such that there are edges from k to u and from u to v. That is, a king is a vertex such that every other vertex is reachable from it via a path of length at most 2. The notion of a king is a natural generalisation of that of a source: a vertex is a source if every other vertex is reachable from it via a path of length 1. While it is easy to see that a tournament need not have a source, it is also not hard to show that every tournament has at least one king [10, 13]. Soon after Maurer’s popular science article about kings in tournaments [13], Reid [16] showed the existence of tournaments in which every vertex is a king. Tournament solutions/winners are also a natural object of study in social choice theory. See, for instance, [5] and the references therein. The monograph by Moon [14] sparked a line of research on tournaments, their solutions, and their structural properties.

A natural computational model to study the complexity of finding tournament solutions and related problems is that of query complexity. In this setting, an algorithm has access to the input in the form of queries: in one step an algorithm may query the direction of the edge between a pair of vertices of its choosing (in case of an undirected graph problem, the algorithm may query the presence/absence of an edge between a pair of vertices of its choosing). The algorithm’s goal is to minimize the number of queries made in the worst case, and all other operations are treated as free. There is a rich literature on the study of graph problems in the setting of query complexity, see, for example, [18, 17, 21, 7, 3, 5, 12] and the references therein.

The focus of this paper is on finding a king in a digraph. Given that every tournament has a king as mentioned earlier, it is natural to ask: how efficiently can a king in an n-vertex tournament be found? Note that this is equivalent to determining whether a digraph has a radius111The radius of a directed graph is the minimum eccentricity of any vertex, where the eccentricity of a vertex is defined to be the greatest distance from it to any other vertex. of at most 2. The study of this question was initiated by Shen, Sheng, and Wu [19], who exhibited an algorithm with query complexity O(n3/2), and they also showed a non-matching lower bound of Ω(n4/3). To date, these are the best-known bounds on the complexity of finding a king in a tournament, and closing the gap remains an intriguing open problem. There have been some very recent works showing better query bounds for variants of the task of finding a king, or studying the complexity of finding kings in models other than deterministic query complexity [2, 9, 12, 11, 1]. Our first main contribution in this paper to show that if we allow for non-tournament inputs, then the query complexity of even determining the existence of a king shoots up.

Theorem 1.

The randomized query complexity of determining the existence of a king in an n-vertex digraph is Θ(n2).

Relevant to our work is the notion of a strong king in a tournament. This notion was defined by Ho and Chang [8] in an attempt to increase the “fairness” of the notion of a winner in a tournament. Let δ(u,v) denote the number of length-2 paths from u to v. A king k is said to be strong if for all w with wk, we have δ(k,w)>δ(w,k). To see why this notion increases the fairness of the definition of a winner, consider the following scenario: say we have a tournament in which a vertex k has a single out-neighbour u, and all other vertices are in-neighbours of k. Further suppose every vertex other than k and u is an out-neighbour of u. The vertex k is a king in this tournament, but not necessarily a “fair” one, since it “defeats” only one vertex. However, it is not hard to see that k is not a strong king. The study of strong kings in tournaments has also gained some attention [4, 15]. Biswas et al. [2, Section 7] asked if one could devise an algorithm to find a strong king in an n-vertex tournament with cost o(n2). Our second main contribution in this paper is to answer this in the negative.

Theorem 2.

The randomized query complexity of finding a strong king in an n-vertex tournament is Θ(n2).

1.1 Organization of the Paper

In Section 2, we review basic preliminaries and formalize the computational questions and models of interest. In Section 3, we recall two known constructions of tournaments where every vertex is a king. In Section 4, we show certain properties of these constructions and use these properties to conclude our main results, Theorem 1 and Theorem 2 (restated formally as Theorem 14 and Theorem 18, respectively). Section 4 contains the main technical novelty of this paper. Finally, in Section 5, we recall our main results and discuss potential directions for future work.

2 Preliminaries

2.1 Basic Concepts and Notation

For a positive integer n, let [n]={1,2,,n} and define [n]0={0}[n1]. We use Sn to denote the set of permutations on the elements in [n]0. For non-negative integers n and i[n]0, let σiSn denote the permutation defined by σi(j)=(j+i)(modn) for all j[n]0. Let G be an n-vertex graph with vertex set [n]0, and let i[n]0. Define σ(G,i) to be the graph obtained by relabelling each vertex v of G by σi(v).

Definition 3 (Tournament, Subgraph, Subtournament).

A tournament T=(V,E) is a complete directed graph where V is the set of vertices, E is the set of directed edges, and for every edge (u,v)E, (v,u)E. A subgraph induced by G=(V,E) on VV is a graph G[V]=(V,E) such that E=E{(u,v):uV and vV}. A subtournament is analogously defined with respect to tournaments.

We denote V(G) and E(G) as the vertex and edge sets of G, respectively. We often use the notation (u,v) and uv interchangeably. For an edge e=(u,v), we say that u is the source of e and v is the target of e. A vertex vV is an out-neighbor of uV if (u,v)E, and v is an in-neighbor of u if (v,u)E. We say that a vertex v dominates u when vu. The set of all out-neighbors of a vertex v is denoted by Γ+(v), and the set of all in-neighbors of v is denoted by Γ(v). Define d+(v)=|Γ+(v)| and d(v)=|Γ(v)|. A (directed) path of length n is an ordered sequence of edges e1,e2,,en such that the target of ei is the source of ei+1 for all 1i<n.

Definition 4 (King).

A king in a directed graph is a vertex v such that, for all other vertices uv, at least one of the following holds:

  • vu is an edge in the graph, or

  • there exists a vertex w such that vw and wu are edges in the graph.

In other words, a king is a vertex that can reach every other vertex by a path of at most two edges. It is well known [10] that every tournament has at least one king, and the maximum-out-degree vertex is always a king. A king that dominates all other vertices is called a source.

Lemma 5 ([13, Theorem 7]).

Let T=(V,E) be an arbitrary tournament. T contains exactly one king if and only if that king is a source.

Define δ(u,v) as the number of length-2 paths from vertex u to vertex v. A king k is said to be strong if, for each vertex v such that vk, we have δ(k,v)>δ(v,k). That is, a king k is said to be strong if, for any vertex v that directly dominates it, there are strictly more length-2 paths from k to v than there are from v to k. Ho and Chang [8, Lemma 1] observed that every tournament has at least one strong king. We include a proof for completeness.

Lemma 6 ([8, Lemma 1]).

Let T=(V,E) be an arbitrary tournament, and let uV be a maximum-out-degree vertex in T. Then, u is a strong king.

Proof.

Towards a contradiction, suppose u is not a strong king. Then, there must exist some vertex v such that vu and δ(v,u)δ(u,v).

Define W={wV{u,v}:uw and vw}. Note that d+(u)=δ(u,v)+|W| and d+(v)=δ(v,u)+|W|+1>d+(u), which is a contradiction since we assumed u to be a maximum-out-degree vertex.

A set of vertices SV is a dominating set in T=(V,E) if, for every vV, either vS or there exists wS such that wv. A dominating pair is a dominating set of exactly two vertices.

2.2 Formal Definitions of Computational Tasks

We represent an n-vertex graph G=(V=[n]0,E) as a binary string in {0,1}αn, where αn=(n2) if G is a tournament, or αn=n2 otherwise. An element of [n]0 corresponds to the label of a vertex, and there is one variable ({i,j}) per edge (between vertex i and vertex j) that defines its direction. In a tournament, we assume αn=(n2) because for each pair of vertices, there is exactly one directed edge between them. Define the relation KINGn{0,1}αn×[n]0 by

(G,v)KINGnifu[n]0{v},eithervuorw,vwu,

and define Kn{0,1}αn as the language of all n-vertex graphs G such that vV, (G,v)KINGn. In other words, K is the language of all n-vertex graphs containing at least one king. Let EXIST-KINGn{0,1}αn×{0,1} be the relation such that (G,1)EXIST-KINGn if and only if GKn.222Note that we could also define EXIST-KINGn as a function from {0,1}αn{0,1} where EXIST-KINGn(G)=1 iff G contains a king, but we choose to define it as a relation for the sake of consistency with other definitions. Finally, for vV, define the relation STRONG-KINGn{0,1}αn×[n]0 by

(G,v)STRONG-KINGnifu[n]0such thatuv,δ(v,u)>δ(u,v).

2.3 Deterministic Query Complexity

A deterministic decision tree 𝒯 on m variables is a binary tree where the internal nodes are labelled by variables, and leaves are labelled with elements of a set . Each internal node has a left child, corresponding to an edge labelled 0, and a right child, corresponding to an edge labelled 1. On an input x{0,1}m, 𝒯’s computation traverses a path from root to leaf as follows: At an internal node, the variable associated with that node is queried: if the value obtained is 0, the computation moves to the left child, otherwise it moves to the right child. The output of 𝒯 on input x, denoted by 𝒯(x), is the label of leaf node reached.

We say that a decision tree 𝒯 computes the relation f{0,1}m× if (x,𝒯(x))f for all x{0,1}m. The deterministic query complexity of f, is

𝖣(f):=min𝒯:𝒯 computes fdepth(𝒯).

That is, 𝖣(f) represents the minimum depth of any deterministic decision tree that computes f.

2.4 Randomized Query Complexity

A randomized decision tree 𝒜 is a distribution 𝒟𝒜 over deterministic decision trees. On input x{0,1}m, the computation of 𝒜 proceeds by first sampling a deterministic decision tree 𝒯 according to 𝒟𝒜, and outputting the label of the leaf reached by 𝒯 on x. We say 𝒜 computes f to error ε if for every input x, Pr[(x,𝒜(x))f]1ε. The randomized query complexity of f{0,1}m× is defined as follows:

𝖱ε(f)=min𝒜 computing f with error  εmax𝒯:𝒟𝒜(𝒯)>0depth(𝒯).

When we drop the subscript ε, we assume ε=1/3. We use Yao’s minimax principle [20], stated below in a form convenient for us.

Lemma 7 (Yao’s Minimax Principle).

For a relation f{0,1}m×, we have 𝖱ε(f)k if and only if there exists a distribution μ:{0,1}m[0,1] such that 𝖣μ(f)k. Here, 𝖣μ(f) is the minimum depth of a deterministic decision tree that computes f to error at most ε when inputs are drawn from the distribution μ.

3 Balanced Tournaments

A balanced tournament is one in which every vertex is a king. Maurer [13] showed that a balanced tournament exists for every positive integer n, except when n=2 or n=4; this result naturally guarantees the existence of a balanced tournament for every odd n.

In this section, we present two distinct constructions of balanced tournaments. In subsequent sections, we analyze key properties of these constructions that help us prove our bounds. We clarify here that both of these constructions have appeared in prior works, but the properties that we require of them have not been analyzed earlier, to the best of our knowledge.

Construction 8 ([13, Lemma 7]).

Let n be an odd positive integer. Define Δn as a tournament on n vertices, labelled by elements of [n]0, recursively constructed as follows:

  • If n=1, Δn consists of a single vertex labelled 0.

  • If n>1, build Δn2 as a subtournament induced by [n2]0. Then direct the edges such that:

    1. 1.

      for each vertex v in [n2]0, (n1)v and v(n2), and

    2. 2.

      (n2)(n1).

Figure 1: Illustration of Construction 8.

Figure 1 illustrates the construction:333The shape of the figure may clarify the choice of “Δ”. vertex n1 is dominated by vertex n2 and dominates all vertices in Δn2, and vertex n2 dominates vertex n1 and is dominated by all vertices in Δn2. For the rest of this paper, we use Δn to denote the n-vertex tournament as defined in Construction 8. While the following was already shown by Maurer [13, Lemma 7], we include a proof for completeness.

Lemma 9.

Let n be an odd positive integer. The tournament Δn is balanced.

Proof.

Let us proceed by induction on the number of vertices n.

When n=1, Δn is clearly a balanced tournament, as its single vertex trivially satisfies the condition of being a king. Indeed, since there are no other vertices, it vacuously reaches all other vertices by a path of length 1 or 2.

Now, suppose the lemma holds for some n, we show that augmenting the tournament by two vertices following the instructions of Construction 8 does not violate the invariant; that is, Δn+2 still remains balanced. By the induction hypothesis, every vertex in [n]0 reaches all other vertices within that set via a path of length 1 or 2. When two new vertices, n+1 and n, are added:

  • vertex n+1 dominates all vertices in [n]0;

  • all vertices in [n]0 dominate n; and

  • vertex n dominates n+1.

Clearly, none of the vertices in [n]0 loses its status as a king, as each vertex in [n]0 reaches n directly and reaches n+1 via n. Furthermore, the newly added vertices also satisfy the king condition:

  • vertex n+1 reaches n via one of the vertices in [n]0, and n reaches n+1 directly; and

  • both n+1 and n reach all vertices in [n]0 (either directly or via n).

Thus, the property is preserved and Δn+2 remains balanced.

The following construction has appeared in the literature as an example of a rotational tournament [6, Section 2].

Construction 10.

Let n be an odd positive integer. Define Un as a tournament on n vertices, labelled by elements of [n]0. For each pair of vertices i,j with i<j, direct the edge as follows:

  • If i+j is odd, direct the edge from i to j (ij).

  • Otherwise, direct the edge from j to i (ji).

Figure 2: The tournament U5 and the tournament σ(U5,3)Aut(U5) obtained by rotating the labels cyclically clockwise by 3 positions.

An example is depicted in Figure 2 when n=5. While this implicitly follows from the work of [6], we now show from first principles that Un is balanced for any odd positive integer n. Again, for the rest of this paper, we use Un to denote the n-vertex tournament as defined in Construction 10.

Lemma 11.

Let n be an odd positive integer. The tournament Un is balanced.

One way to prove Lemma 11 is to show that each vertex in Un (for an odd positive n) dominates exactly n12 vertices. Thus, given that a maximum-out-degree vertex in a tournament is a king [10], it follows that all vertices are kings. For completeness, we include a proof from first principles below.

Proof of Lemma 11.

Observe that each vertex i dominates all lesser vertices of similar parity and all greater vertices of opposite parity. Define the parity function p(x)=x(mod2); formally, we have Γ+(i)={j[n]:j<i and p(j)=p(i)}{j[n]:j>i and p(i)p(j)}.

Consider any vertex i<n1. Since p(i+1)p(i), vertex i dominates i+1. Thus, i+1 in turn dominates all vertices less than i of opposite parity and all greater vertices of the same parity; formally, Γ(i)=Γ+(i+1). Hence, i reaches all vertices by a path of at most two edges either through direct domination, or via vertex i+1.

For i=n1, note that n1 is even, so it dominates all even vertices, including vertex 0. Since vertex 0 dominates all odd vertices, and n1 dominates 0, it follows that n1 is also a king. Therefore, every vertex in Un is a king, and the tournament is balanced.

An interesting property of Un is its symmetry. Indeed, observe that rotating the tournament (i.e., shifting its labels) clockwise or anti-clockwise results in the same labelled tournament. This is useful as it allows a property of one vertex to be extended to all vertices in Un.

Lemma 12 ([6]).

Let n be an odd positive integer. For i, we have σ(Un,i)Aut(Un).

4 Lower Bounds

In this section, we prove our two main results: determining the existence of a king in an arbitrary n-vertex digraph (Subsection 4.1) and finding a strong king in a tournament (Subsection 4.2) both admit a (randomized) query complexity of Θ(n2). To do so, we make use of the constructions from Section 3.

4.1 Kings in Directed Graphs

Below is a property we require of Construction 8. Recall that a 2-element-set of vertices {v,w} is said to be a dominating pair in T=(V,E) if, for every uV{v,w}, there exists x{v,w} such that xu.

Lemma 13.

Let n>3 be an odd positive integer, and let i,j[n]0 with i<j. The set of vertices {i,j} is a dominating pair in Δn if and only if j=n1.

Proof.

We show both directions below.

  • Let us first show the implication (): that is, any pair {i,j} where j=n1 is dominating. According to Construction 8, and as depicted in Figure 1, vertex n1 dominates all vertices except n2. However, it is easy to see that all other vertices are either n2 or dominate n2. Therefore, pairing n1 with any of those vertices produces a dominating pair.

  • To show the implication in the other direction (), assume, for the sake of contradiction, that jn1 and {i,j} is a dominating pair. Then, i[n2]0 and either j[n2]0, or j=n2 (recall that i<j).

    • If j[n2]0, then {i,j} does not dominate n1, a contradiction.

    • If j=n2, then i[n2]0 must dominate all other vertices in [n2]0, and thus must be a source in Δn[[n2]0]. However, since all (of the at least 3) vertices in Δn[[n2]0] are kings by Lemma 9, this contradicts Lemma 5. Thus, the pair {i,j} is not a dominating pair.

This concludes the proof.

Simply, the only dominating pairs in Δn are {0,n1},{1,n1},,{n2,n1}. Using the above property, we show below that the deterministic and randomized query complexity of finding a king in an arbitrary n-vertex digraph is Θ(n2).

Theorem 14.

For all positive integers n, 𝖱(EXIST-KINGn)=Θ(n2) for general digraphs.

Proof.

The upper bound is trivial. Assume that n is odd. If n is even, an argument similar to that given in the last paragraph of the proof of Theorem 18 can be used. Let A=([n]0,EA) be an arbitrary balanced tournament on n vertices. Consider the n-vertex tournament Δn from Construction 8 and relabel all vertex labels by adding n to them. Let the resultant graph be called A. Construct a tournament C on 2n vertices labelled in [2n]0 as follows:

  1. 1.

    Consider the disjoint union of A and A, and

  2. 2.

    add edges from every vertex in A to vertex (2n1) in A.

Figure 3: Construction of C from the proof of Theorem 14. C[A] is a balanced tournament, and C[A] is a relabelling of Δn from Construction 8.

Figure 3 illustrates the construction of C. Clearly, C does not have a king: indeed, no vertex in A reaches any vertex in A, and every vertex in A dominates (2n1), which does not dominate (2n2) (by construction, see Construction 8).

For i[n]0 and j[n1]0, define Ci,j as the tournament obtained by adding the edge i(n+j) in C. Observe that i is a king in Ci,j, since:

  • i 2-step dominates all vertices in A (as Ci,j[A] is a balanced tournament), and

  • i dominates (2n1) and n+j, which form a dominating pair in Ci,j[A] by Lemma 13.

Define the distribution μ on 2n-vertex tournaments as follows:

μ(T)={1/2T=C,12n(n1)T=Ci,j,for all i[n]0,j[n1]0.

Equivalently, μ can be defined by the following sampling procedure: Start with the tournament C; then, with probability 1/2, do nothing, or, with probability 1/2, add a uniformly random (over i[n]0 and j[n1]0) edge in+j. Towards a contradiction using Lemma 7, let 𝒜 be a deterministic algorithm with cost less than n2/100 that decides whether a king exists in digraphs w.r.t. μ of error 1/3.

Consider the computation path taken by 𝒜 that answers all edges consistent with C, and answers 0 (i.e., “no edge present”) to all queries of the form ij for i[n], j{n,n+1,,2n1}. We consider two cases.

  1. 1.

    Suppose the output at this leaf of 𝒜 is 1 (i.e., “a king exists”). The algorithm errs on the input C, which has a μ-mass of 1/2. This is not possible since we assumed 𝒜 to make an error of at most 1/3 w.r.t. μ.

  2. 2.

    Suppose the output at this leaf of 𝒜 is 0 (i.e., “no king exists”). Since the number of queries on this path was assumed to be at most n2/100, there must be at least 99n2/100n edges of the form i(n+j) that have not been queried, where i[n]0 and j[n1]0. For each such i,j, the graph Ci,j also follows this computation path. However, the vertex i is a king in Ci,j. Hence 𝒜 errs on Ci,j. Thus, the total error made by 𝒜 is at least (99n2100n)12n(n1)>1/3 for sufficiently large n. This again contradicts our assumption that 𝒜 made error at most 1/3 w.r.t. μ, and hence the theorem follows.

This concludes the proof.

As an easy corollary, we obtain the same deterministic lower bound for determining the existence of a king in a digraph.

Corollary 15.

For all positive integers n, 𝖣(EXIST-KINGn)=Θ(n2) for general digraphs.

4.2 Strong Kings in Tournaments

Recall that δ(v,u) denotes the number of length-2 paths from v to u in an underlying digraph/tournament. Recall that a strong king in a tournament is a king v such that, for every vertex u that dominates v (i.e., uv), we have δ(v,u)>δ(u,v). Below, we show that in the construction Un from Construction 10, for every vertex vV(Un) and an in-neighbor u of it, we have δ(v,u)δ(u,v)=1. In other words, there is exactly one more length-2 path from v to u than from u to v. This observation is crucial to argue that flipping the direction of a single edge used by v to reach u via a length-2 path will result in v no longer being a strong king.

Lemma 16.

Let n be an odd positive integer. For each ji in Un, we have δ(i,j) δ(j,i)=1.

Proof.

Define the parity function p(x)=x(mod2). From the proof of Lemma 11, each vertex i in Un dominates all lesser vertices of the same parity as i, and all greater vertices of opposite parity.

  • Assume that j>i. Since ji, Construction 10 implies p(j)=p(i). The vertex j dominates all vertices v<j with p(v)=p(i) and all vertices w>j with p(w)p(i).

    To count length-2 paths from i to j, we first show that if ivj, then i<v<j.

    • If v<i, then p(v)=p(i) (since iv), but also p(v)p(j) (since vj and v<j), contradicting p(i)=p(j).

    • If v>j, then p(v)p(i) (since iv), but also p(v)=p(j) (since vj and v>j); again, a contradiction.

    Thus, v must satisfy i<v<j, and since iv, it follows that p(v)p(i). This means δ(i,j)=|{v:i<v<j and p(v)p(i)}|=ji2.

    Using nearly the same argument, one can show that δ(j,i)=|{v:i<v<j and p(v)=p(i)}|=ji21.

  • The case where j<i follows from the case where j>i by symmetry (Lemma 12). Indeed, let i and j be the new labels of i and j in σ(Un,ni), respectively. Then, i=0<j, and given that σ(Un,ni)Aut(Un), the lemma follows.

Therefore, we have δ(i,j)δ(j,i)=ji2(ji21)=1.

For the tournament Un and a vertex v of it, define D(v) be the set of edges such that, if the direction of exactly one edge in D(v) were flipped, v would no longer be a strong king.

Now, we show that |D(v)|=Θ(n2).

Lemma 17.

Let n be an odd positive integer. For the tournament Un and D() as defined above, we have |D(v)|=(n21)/4 for all v[n].

Proof.

We show below that |D(0)|=(n21)/4. The result for general v immediately follows by symmetry (Lemma 12), as |D(0)|=|D(1)|==|D(n1)|.

We first consider the effect of flipping an edge connected to 0.

  • Let j[n]0 be odd. The construction of Un ensures the direction of the edge between 0 and j to be 0j. Flipping (0,j) decreases δ(0,n1) by 1 as the path 0jn1 is gone, and does not affect δ(n1,0).

  • Let k[n]0{0} be even. The construction of Un ensures the direction of the edge between 0 and k to be k0. Flipping the (k,0) edge cannot increase δ(j,0) for any j, and cannot decrease δ(0,j) for any j. Since 0 was a strong king in Un, this means 0 is a strong king in the new tournament with (k,0) flipped as well.

The first case above contributes (n1)/2 elements to D(0). Next, we consider the effect of flipping an edge between j and k where j0 and k0.

  • If j and k are both odd, then neither of them is an in-neighbor of 0, and hence 0 remains a strong king.

  • If j and k are both even and jk is flipped, the construction of Un ensures that j>k, and both j,k are in-neighbors of 0. We have δ(k,0) increase by 1 due to the new path kj0, and δ(0,k) is unchanged as j0. By Lemma 16, the new tournament now has δ(k,0)=δ(0,k), and hence 0 is no longer a strong king.

  • If j is even and k>j is odd, the direction of the edge between j and k is jk. The vertex j is an in-neighbor of 0, and k is not. Flipping the edge increases δ(0,j) by 1 due to the new path 0kj, and δ(j,0) is unaffected. No other values of δ(0,) or δ(,0) are affected for in-neighbors of 0. Thus, 0 remains a strong king in this case.

  • The final case is when j is odd and k>j is even. Recall that k is an in-neighbor of 0. We have δ(0,k) reduce by 1 due to the removal of the path 0jk (as the jk edge is now flipped), and δ(k,0) is unaffected. By Lemma 16, we have δ(0,k)=δ(k,0) in the new tournament, and hence 0 is no longer a strong king.

The number of edges from the second case above equals the number of ways of choosing two even numbers, none of which is 0: this is ((n1)/22). The number of edges from the fourth case is the number of choices of an odd vertex and a higher even vertex, which equals (n1)/2+(n3)/2++1=(n21)/8. Combining the above, we have

|D(0)| =n12+(n1)(n3)8+n218=n12[1+n34+n+14]
=(n12)(n+12)=n214.

This concludes the proof.

We now analyze the randomized query complexity of STRONG-KINGn.

Theorem 18.

For all positive integers n, 𝖱(STRONG-KINGn)=Θ(n2) for tournaments.

Proof.

The upper bound is trivial. Assume that n is odd. For i,j[n]0, let Uni,j denote the tournament that is obtained from Un by flipping the direction of the edge between i and j. Consider μ to be the following distribution on n-vertex tournaments:

μ(T)={1/2T=Un,1(n2)T=Uni,j,for all i,j[n]0.

Towards a contradiction using Lemma 7, let 𝒜 be a deterministic algorithm with cost less than cn(n1) (for some constant c(0,1) to be fixed later in the proof, it will turn out that any c<1/12 works) computing STRONG-KINGn to error less than 1/3 when inputs are drawn from the distribution μ. Consider the computation path of 𝒜 that outputs the answers of all queries consistently with the input Un. Say the output at this leaf of 𝒜 is vertex v. The algorithm errs on all inputs of the form Uni,j where (i,j)D(v) (recall that D(v) consists of precisely those edges that, on being flipped in Un, cause v to no longer be a strong king). There are at least |D(v)|cn(n1) such edges (i,j) which are unqueried (and thus Uni,j reaches this leaf). The error probability of 𝒜 is at least its error probability on this leaf, which by Lemma 17 is at least 1(n2)(n214cn(n1))>2n(n1)(n(n1)4cn(n1))=14c2>1/3 for c<1/12. Lemma 7 yields the required lower bound.

The proof can be easily made to work for the case where n is even by assuming that one vertex is a sink, and applying the argument above on the subtournament induced on the remaining vertices (this sink vertex does not affect the proof above in any way).

A deterministic lower bound follows as an immediate corollary.

Corollary 19.

For all positive integers n, 𝖣(STRONG-KINGn)=Θ(n2) for tournaments.

5 Conclusion

In this paper, we have shown the deterministic and randomized query complexities of deciding whether a king exists in an arbitrary n-vertex digraph to be Θ(n2). We also showed that deterministic and randomized query complexities of finding a strong king in a tournament is Θ(n2), answering a question of Biswas et al. [2] in the negative. Our proofs relied on showing some key properties of known constructions of balanced tournaments (tournaments where every vertex is a king). The most interesting question that remains open is to determine the deterministic query complexity of finding a king in an n-vertex tournament. The best-known upper and lower bounds are O(n3/2) and Ω(n4/3), respectively, and are from over 20 years ago [19]. Perhaps our analysis of special balanced tournaments in this paper can provide insight towards approaching this general problem.

References

  • [1] Amir Abboud, Tomer Grossman, Moni Naor, and Tomer Solomon. From donkeys to kings in tournaments. In 32nd Annual European Symposium on Algorithms, ESA, volume 308 of LIPIcs, pages 3:1–3:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPIcs.ESA.2024.3.
  • [2] Arindam Biswas, Varunkumar Jayapaul, Venkatesh Raman, and Srinivasa Rao Satti. Finding kings in tournaments. Discret. Appl. Math., 322:240–252, 2022. doi:10.1016/j.dam.2022.08.014.
  • [3] Amit Chakrabarti and Subhash Khot. Improved lower bounds on the randomized complexity of graph properties. In International Colloquium on Automata, Languages and Programming (ICALP), pages 285–296. Springer, 2001. doi:10.1007/3-540-48224-5_24.
  • [4] An-Hang Chen, Jou-Ming Chang, Yuwen Cheng, and Yue-Li Wang. The existence and uniqueness of strong kings in tournaments. Discrete mathematics, 308(12):2629–2633, 2008. doi:10.1016/j.disc.2007.05.008.
  • [5] Palash Dey. Query complexity of tournament solutions. In Proceedings of the Thirty-First AAAI Conference on Artificial Intelligence, pages 2992–2998. AAAI Press, 2017. doi:10.1609/aaai.v31i1.10702.
  • [6] David C Fisher, J Richard Lundgren, Sarah K Merz, and K Brooks Reid. The domination and competition graphs of a tournament. Journal of Graph Theory, 29(2):103–110, 1998. doi:10.1002/(SICI)1097-0118(199810)29:2\%3C103::AID-JGT6\%3E3.0.CO;2-V.
  • [7] Péter Hajnal. An Ω(n4/3) lower bound on the randomized complexity of graph properties. Combinatorica, 11:131–143, 1991. doi:10.1007/BF01206357.
  • [8] Ting-Yem Ho and Jou-Ming Chang. Sorting a sequence of strong kings in a tournament. Information processing letters, 87(6):317–320, 2003. doi:10.1016/S0020-0190(03)00346-6.
  • [9] Oded Lachish, Felix Reidl, and Chhaya Trehan. When you come at the king you best not miss. In 42nd IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science, FSTTCS 2022, volume 250 of LIPIcs, pages 25:1–25:12. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPIcs.FSTTCS.2022.25.
  • [10] HG Landau. On dominance relations and the structure of animal societies: III the condition for a score structure. The bulletin of mathematical biophysics, 15:143–148, 1953.
  • [11] Nikhil S. Mande, Manaswi Paraashar, Swagato Sanyal, and Nitin Saurabh. On the communication complexity of finding a king in a tournament. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, APPROX/RANDOM, volume 317 of LIPIcs, pages 64:1–64:23. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPIcs.APPROX/RANDOM.2024.64.
  • [12] Nikhil S. Mande, Manaswi Paraashar, and Nitin Saurabh. Randomized and quantum query complexities of finding a king in a tournament. In 43rd IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science, FSTTCS, volume 284 of LIPIcs, pages 30:1–30:19. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPIcs.FSTTCS.2023.30.
  • [13] Stephen B Maurer. The king chicken theorems. Mathematics Magazine, 53(2):67–80, 1980.
  • [14] John W Moon. Topics on tournaments in graph theory. Courier Dover Publications, 2015.
  • [15] Nathan Muyinda, Bernard De Baets, and Shodhan Rao. Non-king elimination, intransitive triad interactions, and species coexistence in ecological competition networks. Theoretical Ecology, 13(3):385–397, 2020.
  • [16] K.B. Reid. Every vertex a king. Discrete Mathematics, 38(1):93–98, 1982. doi:10.1016/0012-365X(82)90173-X.
  • [17] Ronald L Rivest and Jean Vuillemin. On recognizing graph properties from adjacency matrices. Theoretical Computer Science, 3(3):371–384, 1976. doi:10.1016/0304-3975(76)90053-0.
  • [18] Arnold L Rosenberg. On the time required to recognize properties of graphs: A problem. ACM SIGACT News, 5(4):15–16, 1973. doi:10.1145/1008299.1008302.
  • [19] Jian Shen, Li Sheng, and Jie Wu. Searching for sorted sequences of kings in tournaments. SIAM J. Comput., 32(5):1201–1209, 2003. doi:10.1137/S0097539702410053.
  • [20] Andrew Chi-Chih Yao. Probabilistic computations: Toward a unified measure of complexity. In 18th Annual Symposium on Foundations of Computer Science (SFCS 1977), pages 222–227. IEEE Computer Society, 1977.
  • [21] Andrew Chi-Chih Yao. Lower bounds to randomized algorithms for graph properties. In 28th Annual Symposium on Foundations of Computer Science (sfcs 1987), pages 393–400. IEEE, 1987.