The Availability of Quorum Systems David Peleg\Lambda Avishai Wooly November 11, 1993 Abstract A quorum system is a collection of sets (quorums) every two of which have a nonempty intersection. Quorum systems have been used for a number of applications in the area of distributed systems. In this paper we study the fault-tolerance properties of quorum systems, and their implications on quorum based distributed protocols. For this study we adopt the following common model. The processors (elements of the system) are assumed to fail independently with a uniform probability p. The global failure probability Fp(S) of a quorum system S is the probability that no complete quorum is functioning. This probability is a good measure of the (non) availability of protocols based on S. In this paper, the properties of Fp are examined. It is shown that the most available quorum systems are the non-dominated coteries (NDC). Over the NDC's, the behavior of the failure probability Fp depends on the exact value of p. It is shown that for any S 2 NDC, Fp(S) is symmetric, i.e., Fp(S) = 1 \Gamma F1\Gamma p(S). In particular, F1=2(S) = 12 for any S 2 NDC. The converse is also true, i.e., if F1=2(S) = 12 then S 2 NDC. From this, a new proof for a known lower bound on the number of sets in an NDC is derived. Furthermore, for 0 ! p ! 12 , the most available NDC is shown to be the "democracy" (namely, the minimal majority system), while the "monarchy" (singleton system) is the least available. Due to symmetry, the picture reverses for 12 ! p ! 1. The asymptotic behavior of Fp is also considered, when the number of processors tends to infinity. It is shown that some NDC constructions enjoy the property that Fp ! 0 when p ! 12, while others have a nonzero limit function. \Lambda Department of Applied Mathematics and Computer Science, The Weizmann Institute, Rehovot 76100, Israel. Supported in part by a Walter and Elise Haas Career Development Award and by a grant from the Israeli Basic Research Foundation. yDepartment of Applied Mathematics and Computer Science, The Weizmann Institute, Rehovot 76100, Israel. E-mail: yash@wisdom.weizmann.ac.il. 1 Introduction 1.1 Motivation Distributed systems have proliferated during the last decade, and are fast becoming the typical computer systems in most organizations. One of the reasons that distributed systems are preferred over traditional single-site computer systems is the system behavior in the presence of failures. The autonomy of the different processors on the network means that a failure of some network components (processors or links) need not disable the entire system. While the processors on a distributed system are indeed autonomous, some cooperation must exist between them. This raises the need for various control mechanisms. Two typical mechanisms developed for this purpose are mutual exclusion and replication control. The need for mutual exclusion arises when there is some resource on the network (e.g., a printer) that may be allocated to a single processor at a time. A mutual exclusion protocol guarantees that no processor will access the resource while it is allocated to another. A replication protocol is needed when data is stored redundantly at multiple locations on a distributed system. Such replication can enhance the availability of the data, its reliability, and the system performance. A replication control protocol ensures that if a data item is read and rewritten from different locations, the most up-to-date copy is accessed each time. Both mutual exclusion and replication protocols may be modeled by combinatorial objects called set systems or hypergraphs. A set system is a collection of setsF = fS1; : : : ; Smg over an underlying universe U = fu1; : : : ; ung. Identifying the processors with the elements of U , a template for a mutual exclusion protocol is the following: "a processor u may access the resource only after obtaining permission from all members of some set S 2 F ". The mutual exclusion is enforced by requiring that F enjoys the intersection property, i.e., that every two sets S; R 2 F have a nonempty intersection. Set systems with the intersection property are known as quorum systems or intersecting hypergraphs, and the sets in such a system are called quorums. Similarly, a replication protocol can be based on a quorum system F . Writing a data item is done by sending timestamped copies of it to all the members of some S 2 F . Reading is done by retrieving the copies stored at all the members of some other R 2 F and picking 1 the copy with the highest timestamp. Let us illustrate the concept of quorum systems by giving three examples, the singleton system, the majority system and the wheel system. The singleton system, denoted by Sngl, is the set system Sngl = ffugg. If the universe size n = jU j is odd, then the majority system, denoted by Maj, is the collection of all sets of n+12 elements. If n is even, we pick an element u 2 U and define Maj to be the collection of all sets of size n2 that do not include u. In other words, we ignore the element u and use the Maj coterie on the odd sized universe U n fug. The Wheel contains n \Gamma 1 "spoke" quorums of the form f1; ig for i = 2; : : : ; n, and one "rim" quorum,f 2; : : : ; ng. These examples play an important role in the results of this paper. 1.2 Related Work Set systems have attracted attention as combinatorial objects since the 19'th century, but have matured into a broad field of study in the 60's and 70's (cf. [Bol86]). In particular, these studies [Lov73, EL75] have provided a number of constructions of quorum systems, further developed and studied in [Tuz85, MP92]. The first distributed control protocols using quorum systems [Tho79, Gif79] use voting to define the quorums. Each processor has a number of votes, and a quorum is any set of processors with a combined number of votes exceeding half of the system's total number of votes. Alternative protocols based on quorum systems appear in [Mae85] (using finite projective planes), [AE89, AE91] (using a tree-based construction) and [CAA90] (using a grid construction). A generalized voting scheme is proposed in [AAC91]. The first paper to explicitly consider mutual exclusion protocols in the context of intersecting set systems is [GB85]. In this work the term coterie is introduced, for a quorum system in which no set includes another one. The concept of domination is also defined: a coterie F dominates a coterie G if they are not equal, and for every quorum R 2 G there is an S 2 F such that S ` R. Several basic properties of dominated and non-dominated coteries and of the class of non-dominated coteries (denoted NDC) are proved. For replication control protocols it is possible to separate the system into two collections, the read quorums and write quorums, such that all read quorums intersect all write quorums. This approach is explored in [Her84]. In [Fu90] the term bicoterie is introduced for this construction, with an analogous definition of domination. The fault-tolerance properties of quorum-based mutual exclusion protocols are introduced in [BG86] and studied further in [Coh93]. The fault tolerance of a quorum system is measured by the maximal number of processors that can fail before all 2 the quorums are "hit", in the worst possible configuration of failures. A quorum is "hit" once at least one of its members has failed. A connection between the optimal structure of a coterie and the topology of the underlying communication network is considered in [PS91]. In this work a probabilistic model of processor failures is introduced. The quality of a coterie is measured by the expected number of processors that still have access to an active quorum, when a processor failure may partition the network. The analysis is performed on limited classes of topologies (namely trees, cycles, and combinations thereof, termed "cacti"). 1.3 New Results In this paper we consider the fault-tolerance properties of coteries, and of mutual exclusion protocols based on them. It is assumed that individual processors are subject to occasional failures, and the focus of this study is the question: "given a quorum system S, what is the probability of a system failure, i.e., of being left with no functioning quorum available ?". To give this question precise meaning, we make the simplest assumption regarding the failure probabilities of the system elements. Namely, we assume the common model in which each element fails independently of all other elements, with a uniform probability p. Under this assumption, we examine the properties of the failure probability, denoted by Fp(S). Formally, let X denote the random set of failed elements in the universe U . Then Fp(S) = P(8S 2S ; S " X 6= ?). The significance of the failure probability Fp(S) is twofold. First, Fp(S) measures the (non) availability of a quorum-based distributed protocol (mutual exclusion or replication), which is more informative than previous approaches [BG86, Coh93]. The computation of Fp(S) for various quorum systems allows us to compare them in a precise, quantified way. Second, Fp(S) itself has some non-trivial properties, that reflect much of the combinatorial structure of the quorum system S. These properties lead to some interesting extremal questions. As will be shown in the sequel, it turns out that the property of non-domination has a strong effect on the failure probability Fp(S). We first show that the NDC's are "the most available" quorum systems (namely, the ones with the smallest Fp(S) value). This lends more formal support to the arguments brought forth in [GB85] promoting the preference of NDC's over dominated coteries. Over the NDC's, the behavior of the failure probability Fp depends on the exact value of p. We show that for any S 2 NDC, Fp(S) is symmetric, i.e., Fp(S) = 1 \Gamma F1\Gamma p(S). In particular, F1=2(S) = 12 for any S 2 NDC. The converse is also true, 3 i.e., if F1=2(S) = 12 then S 2 NDC. As a consequence, we also obtain a new proof for the lower bound of [Erd63] on the number of sets in an NDC. We then consider the quorum system constructions that have the extremal failure probabilities. We show that for 0 ! p ! 12 , the "most available" NDC (smallest Fp(S)) is the "democracy" (the majority system Maj), while the "monarchy" (the singleton system Sngl) is the least available. By the above mentioned symmetry of Fp, when 12 ! p ! 1 the situation is reversed. This means that if the elements are fail-prone, with an individual failure probability greater than 12 , the situation is uninteresting; the best strategy is just to pick a single centralized "king". When the elements are not fail-prone, with 0 ! p ! 12 , then it is interesting to investigate other constructions. This is since the NDC with the best availability, the majority system Maj, has some undesirable properties (e.g., very large quorums). We analyze the availability of several constructions that appear in the literature. Our analysis emphasizes the asymptotic behavior of Fp(S), as the construction scales up with the universe size n. A desirable property of a quorum system construction is that its failure probability is "Condorcet". By this we mean that for 0 ! p ! 12 , Fp(S) ! 0 as n ! 1 (and for 12 ! p ! 1, Fp(S) ! 1 as n ! 1). The Condorcet Jury Theorem [Con], translated to our terminology, states that the majority NDC has this property. We show that several other constructions also have Condorcet failure probabilities (e.g., the constructions of [EL75, AE89]) while others still (e.g., [Lov73]) have a nonzero limit function when p ! 12 . Moreover, we show that the finite projective plane construction [Mae85] and the grid construction [CAA90, MP92] (both of which are dominated) have failure probabilities tending to 1 for all values 0 ! p ! 1, so these constructions have poor availability in all but very small systems. A simple and popular method of NDC construction is that of weighted voting. When all the votes are equal, this gives the simple majority system. We show that if the ratio between the total weight and the maximal weight tends to infinity as n ! 1 then Fp(S) is Condorcet. Alternatively, if the ratio between the sum of squared weights and the total weight squared tends to 0, then Fp(S) is Condorcet. From a practical point of view, we can see that Fp(S) gives us a yardstick for comparing different quorum systems, and distributed protocols based upon them, which is especially meaningful when the number of processors is large. In particular, our analysis leads to the following conclusions, on the basis of availability considerations: ffl It is advantageous to use non-dominated coteries. ffl It is preferable to avoid finite projective plane or grid systems. ffl While the majority NDC has the highest availability, there are NDC's which 4 have comparable availability but are not as costly. ffl When using voting, it is preferable to have a "flat" distribution of votes. The organization of this paper is as follows. In Section 2 we present some basic definitions, some known theorems we need, and a precise definition of our model. In Section 3 we start the analysis of Fp(S) of NDC's by proving the symmetry theorem and some of its consequences. In Section 4 we prove that the majority and singleton are the extremal NDC's in terms of Fp(S). In Section 5 we analyze several known constructions. In Section 6 we present the conditions for having a Condorcet failure probability in a voting system. 2 Preliminaries 2.1 Definitions and Notation Let us first define the basic terminology used later on. Definition 2.1 A Set System S = fS1; : : : ; Smg is a collection of subsets Si ` U of a finite universe U . Definition 2.2 A Quorum System is a set system S that has the Intersection property: S " R 6= ? for all S; R 2 S. Alternatively, quorum systems are known as intersecting set systems or as intersecting hypergraphs. The sets of the system are called quorums (or edges, when using the hypergraph terminology). Definition 2.3 A Coterie is a quorum system S that has the Minimality property: there are no S; R 2 S, S ae R. Definition 2.4 Let R; S be coteries (over the same universe U ). R dominates S if R 6= S and for each S 2 S there is R 2 R such that R ` S. Notation: For coteries R; S we denote "R dominates S" by R O/ S. Definition 2.5 A coterie S is dominated if there exists a coterie R such that R O/S . If no such coterie exists then S is non-dominated (ND). Notation: Let NDC denote the class of all ND coteries. Returning to our three examples of quorum systems, it is easy to see that Sngl 2 NDC and that Wheel 2 NDC. Also, our definition of the majority system ensures that Maj 2 NDC for all n (note that when n is even, the everyday notion of taking sets of size n2 + 1 gives a dominated coterie). 5 Definition 2.6 A set T is a transversal of a set system S if for every S 2 S, T " S 6= ?. Definition 2.7 A coloring of a hypergraph is an assignment of colors to the elements of the universe so that every edge has elements with at least two colors. Definition 2.8 The chromatic number of a hypergraph is the smallest number of colors needed to color it. A hypergraph with a chromatic number of k is said to be k-colorable. We use the following notation. The number of elements in the underlying universe is denoted by n = jU j. The number of sets (quorums) in the set system S is denoted by m(S). The cardinality of the smallest quorum in S is denoted by c(S) = minfjSj : S 2 Sg. Notation: Let U (i) = fX ` U : jXj = ig, the collection of sets of size i for 0 ^ i ^ n. Definition 2.9 Let ASi denote the set of size-i transversals of S, i.e., the collection of sets of size i that hit all the quorums of S, for 0 ^ i ^ n, ASi = fX 2 U (i) : 8S 2 S; S " X 6= ?g: 2.2 Basic Theorems The following theorems regarding coterie domination will be our basic tools throughout this work. Theorem 2.10 [GB85] A coterie is dominated iff it is a 2-colorable hypergraph. Theorem 2.11 [GB85] ND coteries are 3-colorable hypergraphs. Lemma 2.12 [GB85] Let S 2 NDC and let T be a transversal of S. Then there exists a quorum S 2 S s.t. S ` T . Lemma 2.13 [IK90] Let S be a coterie. Then S 2 NDC iff for all X ` U , exactly one of X and U n X is a transversal of S. Lemma 2.14 [Fu90] Let M T (S) denote the set of all minimal transversals of a coterie S. Then S 2 NDC iff S = M T (S). Theorem 2.15 [GB85] Let S; R be coteries. Then R O/ S iff there exists a quorum R0 2 R such that R0 is a transversal of S and R0 6' S for every S 2 S. Lemma 2.16 Let S; R be coteries such that R O/ S, and let X be a transversal ofR . Then X is also a transversal of S. 6 Proof: Consider any transversal X of R, i.e., X hits every quorum R 2 R. According to Definition 2.4, for each S 2 S there is R 2 R such that R ` S. Hence X hits all S 2 S, so X is a transversal of S. Lemma 2.17 Let S 2 NDC be given. Then ASi is an intersecting hypergraph inU (i) for 0 ^ i ^ n. Proof: Consider two sets X1; X2 2 ASi for some i. Then X1 and X2 are transversals of S, so from Lemma 2.12 there exist quorums S1; S2 2 S such that S1 ` X1 and S2 ` X2. From the Intersection property of S we have that X1 " X2 6= ?. ThereforeAS i is an intersecting hypergraph in U (i). The following is the celebrated Erd""os-Ko-Rado theorem [EKR61] (cf. [Bol86]), also known as the Sunflower Theorem. Theorem 2.18 (Sunflower) [EKR61] Consider a universe U of size n. Let 2 ^ i ! n2 and let A ae U (i) be an intersecting hypergraph. Then jAj ^ in\Gamma 1i\Gamma 1j, with equality iff A = fX 2 U (i) : u 2 Xg for some u 2 U . Remark: The theorem is trivially true for i = 1 as well. We now introduce some definitions and results from [Kar68] that are used in Section 4. The results are not presented in their most general formulation, but rather in a form suited to their intended use in our proof. Definition 2.19 (Total Positivity) A real function (kernel) K(x; y) of two variables ranging over linearly ordered sets X and Y respectively, is called totally positive of order r (abbreviated T Pr) if for all x1 ! \Delta \Delta \Delta ! x`; y1 ! \Delta \Delta \Delta ! y`, xi 2 X; yj 2 Y , 1 ^ ` ^ r the following inequality holds:fififi fifififififi fi K(x1; y1) K(x1; y2) \Delta \Delta \Delta K(x1; y`) K(x2; y1) K(x2; y2) \Delta \Delta \Delta K(x2; y`). .. ... ... K(x`; y1) K(x`; y2) \Delta \Delta \Delta K(x`; y`) fifififififi fifififi * 0: A kernel K is said to be totally positive ( T P ) if it is T Pr for all values of r. Definition 2.20 (Sign Changes) Let f (t) be defined in I, where I is an ordered set of the real line. Let S\Gamma [x1; x2; : : : ; x`] denote the number of sign changes of the indicated sequence, zero terms discarded. Define S\Gamma (f ) = sup S\Gamma [f (t1); f (t2); : : : ; f (t`)] where the supremum is over all sets t1 ! \Delta \Delta \Delta ! t` (ti 2 I), where ` is arbitrary but finite. If f j 0 then define S\Gamma (f ) = \Gamma 1. 7 Let I be an finite ordered set of the real line, and let f be defined on I. Let X be a closed interval. Let K(x; i) be defined on X \Theta I. Consider the transformation g(x) = (T f )(x) = X i2I K(x; i)f (i): Theorem 2.21 (Variation Diminishing Property) [Kar68] If a kernel K is T P then S\Gamma (g) = S\Gamma (T f ) ^ S\Gamma (f ). Furthermore, the values of the functions f and g exhibit the same sequence of signs when their respective arguments traverse the domain of definition from left to right. Fact 2.22 The kernel K(p; i) = pi(1 \Gamma p)n\Gamma i defined over [0; 1] \Theta f0; : : : ; ng is T P . 2.3 The Probabilistic Failure Model We use a simple probabilistic model of the failures in the system. We assume that the elements (processors) fail independently with a fixed uniform probability p. We assume that the failures are transient. We assume also that the failures are crash failures, and that they are detectable. In other words, we do not consider "lying" processors (Byzantine failures), or asynchronous communication with unbounded message delay. The points of our probability space are called configurations. A configuration is a set X ` U , where all the elements of X have failed and all other elements have not. This model may be viewed as if whenever a quorum is required in some step of a distributed protocol, the configuration is determined by flipping n independent coins with equal probability p. Notation: We use q = 1 \Gamma p to denote the probability of an element survival. In this failure model with probability p, the following events can be defined. Definition 2.23 (Quorum failure) For every quorum S 2 S let ES be the event that S is hit, i.e., at least one element x 2 S has failed (or, S " X 6= ?). Using this definition, the failure probability of a quorum S 2 S is P(ES) = 1 \Gamma qjSj. Definition 2.24 (System failure) Let fail (S) be the event that all the quorums S 2 S were hit, i.e., fail (S) = TS2S ES. Note that the event fail (S) consists of precisely the transversal configurations of S, i.e., fail (S) = fX 2 U : X is a transversal of Sg: Now we can define the focus of this work, which is the global system failure probability of a quorum system S, as follows. 8 Definition 2.25 Fp(S) = P(fail(S)) = P` " S2S E S ': We obviously have: Fact 2.26 For any set system S, F0(S) = 0 and F1(S) = 1. Notation: A configuration X that hits all the quorums of a system, i.e., causes a system failure, is called a failure configuration. Given a quorum system S, We find it useful to count the failure configurations according to their cardinalities using Definition 2.9, as follows. Definition 2.27 Let aSi = jASi j, the number of i-sized transversals of S. The vector aS = (aS0 ; : : : ; aSn ) is called the availability profile of S. Using the availability profile we can write an explicit expression for the failure probability Fp(S). Lemma 2.28 Fp(S) = nX i=0 aSi piqn\Gamma i: When we consider the asymptotic behavior of Fp(Sn) for a sequence Sn of NDC's over a universe with an increasing size n, we find that for many constructions it is similar to the behavior described by the Condorcet Jury Theorem [Con]. Therefore it is useful to have the following definition. Definition 2.29 A parameterized family of functions gp(n) : N ! [0; 1], for p 2 [0; 1], is said to be Condorcet iff 1. p ! 12 =) gp(n) \Gamma !n!1 0. 2. p = 12 =) gp(n) = 12 for all n. 3. p ? 12 =) gp(n) \Gamma !n!1 1. 3 Availability Analysis of NDC's 3.1 The Advantage of Non-Domination We start the analysis by proving a simple proposition that justifies our emphasis on non-dominated coteries. Loosely speaking, the following proposition states that NDC's are "better" (i.e., have higher availability) than dominated coteries. 9 Proposition 3.1 Let S; R be coteries such that R O/ S, and let 0 ! p ! 1. Then Fp(R) ! Fp(S). Proof: Consider any failure configuration X of R. Then X is a transversal ofR , so by Lemma 2.16, X is a transversal of S. Therefore fail (R) ` fail (S), and Fp(R) ^ Fp(S). Now to prove that the inequality is strict, we show a nonzero probability configuration that is in fail (S) but not in fail (R). Consider a quorum R0 2 R such that R0 is a transversal of S and R0 is not a superset of any S 2 S. The existence of such an R0 is guaranteed by Theorem 2.15. We claim that _R0 = U n R0 is also a transversal of S. To see this, assume to the contrary that there exists a quorum S 2 S such that _R0 " S = ?. Then S ` R0, contradiction to the properties of R0. Therefore, the configuration _R0 hits all S 2 S since _R0 is a transversal, so it is in fail (S). However this configuration is not in fail (R) since _R0 does not hit R0. Since 0 ! p ! 1, both configurations R0 and _R0 have non-zero probability and the proposition follows. 3.2 The Symmetry of Fp(S) Our purpose in this section is to prove a symmetry theorem for the failure probability of ND coteries. We show that for any given S 2 NDC, the function Fp(S) : [0; 1] ! [0; 1] (as a function of p) has rotational symmetry around 12 . The following lemma shows a property of the availability profile of ND coteries, which is the combinatorial basis of the symmetry theorem. Lemma 3.2 Let S 2 NDC be given. Then aSi + aSn\Gamma i = ini j for 0 ^ i ^ n. Proof: Let BSi = U (i) n ASi , the set of all configurations of size i that do not hit some S 2 S, and let bSi = jBSi j. Clearly aSi + bSi = ini j. Therefore it suffices to show that bSi = aSn\Gamma i. Consider a configuration X 2 U (i) and let _X = U n X. We claim that X 2 BSi () _X 2 ASn\Gamma i, thus there is a one-to-one correspondence betweenBS i and ASn\Gamma i, so bSi = aSn\Gamma i. It is clear that j _Xj = n \Gamma i. It therefore remains to prove that _X is a transversal of S iff X is not. This follows from Lemma 2.13, thus completing the proof. The following is an easily deduced corollary of Lemma 3.2 when the universe U has an even size. Corollary 3.3 Let S 2 NDC. If n = 2t then aSt = 12 intj = in\Gamma 1t\Gamma 1j. Now we can prove the symmetry theorem of Fp(S) for NDC's. Theorem 3.4 (Symmetry) For any S 2 NDC, Fp(S) + F1\Gamma p(S) = 1. 10 Proof: From Lemma 2.28 and Lemma 3.2, and some standard manipulations, we get Fp(S) + F1\Gamma p(S) = nX i=0 aSi pi(1 \Gamma p)n\Gamma i + nX i=0 aSi (1 \Gamma p)ipn\Gamma i = nX i=0( aSi + aSn\Gamma i)(1 \Gamma p)ipn\Gamma i = nX i=0 n i !(1 \Gamma p) ipn\Gamma i = 1: Plugging p = 12 into the symmetry theorem we get the following corollary. Corollary 3.5 For any S 2 NDC, F1=2(S) = 12 . Remark: An alternative proof for Theorem 3.4 has been suggested to us [Hol93]. This proof is based on the fact that the failure probability of a ND coterie can be viewed as the multi-linear extension (MLE) of a constant-sum game. Consequently, Theorem X.2.6 of [Owe82, pp. 201-202] can be used to obtain the claim. 3.3 Conditions for Non-Domination We now present two consequences of the symmetry theorem. The first is a characterization of NDC's in terms of the failure probability F1=2. This characterization (Corollary 3.8) gives another method of proving coterie non-domination which is sometimes easier than a direct proof. The second consequence we obtain from the symmetry theorem is a lower bound on m(S), the number of quorums in a systemS 2 NDC, in terms of c(S), the cardinality of the smallest quorum. Lemma 3.6 If S is a dominated coterie then Fp(S) + F1\Gamma p(S) ? 1 for 0 ! p ! 1. Proof: Let R 2 NDC be such that R O/ S (for any dominated coterie it is possible to find such an R). Then using Proposition 3.1 and the symmetry Theorem 3.4 we get Fp(S) + F1\Gamma p(S) ? Fp(R) + F1\Gamma p(R) = 1: By plugging p = 12 and combining with Corollary 3.5 we get the two following results. Corollary 3.7 If S is a dominated coterie then F1=2(S) ? 12 . Corollary 3.8 S 2 NDC () F1=2(S) = 12. The following proposition gives us a lower bound on the number of quorums in any S 2 NDC. This extremal question has been addressed before in a slightly more general setting, i.e., lower bounds on the number of hyperedges of a non 2-colorable hypergraph. Two results are presented in [AS92], a simple bound due to Erd""os [Erd63] which gives m * 2c\Gamma 1, and a more delicate bound due to Beck [Bec78] of m * \Omega (2cc1=3). We show, by a new proof, a bound that is better than the simple one yet inferior to Beck's result. 11 Proposition 3.9 Let S 2 NDC be given, let m = m(S) be the number of quorums and let c = c(S) be the cardinality of the smallest quorum. Then m * 2c ln 2. Proof: From the symmetry theorem we get 1 2 = F1=2(S) = P` "S2S ES': For any S 2 S consider ES, the event that S is hit. Clearly ES is a monotone increasing property (i.e., if a configuration X hits S then any configuration X0 ' X hits S). Therefore we can use the FKG inequality [FKG71] to obtain P` " S2S E S ' * Y S2S P(ES) = Y S2S ` 1 \Gamma 12jSj ' * `1 \Gamma 12c ' m * e\Gamma m 2c ; and the proposition follows. Example: Proposition 3.9 can be used to prove that a finite projective plane of order * 5 is a dominated coterie (see also Section 5.6). This is because a finite projective plane of order t has t2 + t + 1 quorums of cardinality t + 1, in violation of the necessary condition in Proposition 3.9 for t * 5. 4 Most and Least Available NDC's 4.1 Overview In this section our main goal is to prove Theorem 4.5, stating that the ND coteries with the extreme failure probabilities are the "singleton" and the "majority". More precisely, we show that when 0 ! p ! 12, the worst ND coterie (i.e., for which Fp is highest) is the singleton, and the best ND coterie is the majority. When 1 2 ! p ! 1 the situation is reversed (by the symmetry Theorem 3.4). The availabilityof these simple quorum systems, denoted by Sngl and Maj, is analyzed in Sections 5.1 and 5.5. In Figure 1 the functions Fp(Sngl) and Fp(Maj) are shown. By Theorem 4.5 and the symmetry theorem, for any S 2 NDC the function Fp(S) must be a symmetric function that lies inside the zones marked "ND" in the figure. The function Fp(S) for dominated coteries might also lie in the zone marked "Dom". Our proof generalizes the method of [BPT89]. Their work compares two specific quorum systems, namely the simple majority and a system called indirect majority, 12 System Failure Probability, Fp 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 Maj Sngl ND ND Dom Element Failure Probability, p Figure 1: The failure probabilities of the extremal coteries with n = 17. that models the election of the USA president. The proof has two conceptual stages. In Section 4.2 we prove some properties of the difference between the availability profiles of an arbitrary NDC and an extremal one (e.g., Sngl), by combinatorial considerations. Then in Section 4.3 these properties are transferred to the difference between the respective failure probabilities using the Variation Diminishing Property (VDP) of Totally Positive kernels [Kar68]. In Section 4.4 we show the uniqueness of the extremal NDC's. That is, we show that if Fp(S) = Fp(Sngl) for any S 2 NDC then S is a Sngl coterie. Also, over an odd sized universe, we show that if Fp(S) = Fp(Maj) then S is Maj. Finally in Section 4.5 we show that the "second worst" NDC is the Wheel coterie (see Section 5.1). Therefore, the Wheel is an extremal NDC when we require that each element u 2 U must participate in some quorum of the system, or alternatively, when it is forbidden that a single element participates in all the quorums. 4.2 The Availability Profile of Sngl and Maj In this section we present some properties of the availability profile of the extremal coteries, the singleton and majority coteries. Fact 4.1 The availability profiles of the Sngl and Maj coteries are ffl aSngli = in\Gamma 1i\Gamma 1 j for i = 0; : : : ; n. 13 ffl aMaji = 8??!??: 0; 0 ^ i ! n2 ,i n\Gamma 1 i\Gamma 1 j; n even and i = n 2 ,i n i j; n 2 ! i ^ n. The following lemma paves the way for proving the extremality of Sngl and Maj. Specifically, we prove that the availability profile of any S 2 NDC is "sandwiched" between the availability profiles of the Sngl and Maj coteries. It is this property that is the basis of Theorem 4.5. Lemma 4.2 Let S be a given ND coterie over a universe U of size n. Then 1. aMaji ^ aSi ^ aSngli for 0 ^ i ! n2 , 2. aSngli ^ aSi ^ aMaji for n2 ! i ^ n, 3. aSngli = aSi = aMaji = in\Gamma 1i\Gamma 1 j when n is even and i = n2 . Proof: 1. Consider some 0 ^ i ! n2 . It is clear that aMaji ^ aSi since aMaji = 0 in this range of i. For the upper bound on aSi , recall that ASi is an intersecting hypergraph in U (i) (Lemma 2.17). From the Sunflower Theorem 2.18 we conclude that aSi = jASi j ^ in\Gamma 1i\Gamma 1j = aSngli . 2. Consider n2 ! i ^ n. Since n \Gamma i ! n2 , case 1 yields aMajn\Gamma i ^ aSn\Gamma i ^ aSngln\Gamma i , hence n i ! \Gamma a Maj n\Gamma i * ni ! \Gamma aSn\Gamma i * ni ! \Gamma a Sngl n\Gamma i : Applying Lemma 3.2, the claim follows. 3. n is even and i = n2 : This is just a restatement of Corollary 3.3. 4.3 The Main Theorem With the groundwork prepared, we can now proceed to prove our main result. Definition 4.3 Let S 2 NDC be given. Then the difference functions of S w.r.t. Sngl and Maj are ffl f SnglS (i) = aSngli \Gamma aSi , for i = 0; : : : ; n. ffl f SMaj(i) = aSi \Gamma aMaji , for i = 0; : : : ; n. 14 The following claim, regarding the sign changes of f SnglS and f SMaj, is an immediate result of Lemma 4.2 (using Definition 2.20). Claim 4.4 S\Gamma (f SnglS ) ^ 1 and S\Gamma (f SMaj) ^ 1. In both functions the sign change (if one occurs) is from + to \Gamma as i goes from 0 to n. Theorem 4.5 Let S 2 NDC be given. Then 1. p ! 12 =) Fp(Maj) ^ Fp(S) ^ Fp(Sngl). 2. p ? 12 =) Fp(Sngl) ^ Fp(S) ^ Fp(Maj). Proof: We start by proving the relations between Fp(S) and Fp(Sngl). Using the definitions of Fp and f SnglS , define gSngl(p) = Fp(Sngl) \Gamma Fp(S) = nX i=0(a Sngl i \Gamma aSi )pi(1 \Gamma p)n\Gamma i = nX i=0 f SnglS (i)pi(1 \Gamma p)n\Gamma i: We need to show that gSngl(p) is nonnegative when p ^ 12 and nonpositive when p * 12 . If gSngl j 0 we are done, therefore assume otherwise. As stated in Fact 2.22, the kernel K(p; i) = pi(1 \Gamma p)n\Gamma i is totally positive. Therefore we can use the VDP Theorem 2.21 to get S\Gamma (gSngl) ^ S\Gamma (f SnglS ) : Applying Claim 4.4, we get that S\Gamma (gSngl) ^ 1. We know from Fact 2.26 and Corollary 3.5 that for any S 2 NDC, gSngl(0) = gSngl( 12 ) = gSngl(1) = 0. Therefore, since gSngl(p) is a polynomial in p, is not identically zero, and has at least three zeros, then it has strictly positive and negative points. Therefore S\Gamma (gSngl) ? 0, so S\Gamma (gSngl) = 1, and the sign change is at 12 . Again by the VDP theorem, gSngl has the same sequence of signs as f SnglS , namely gSngl goes from + to \Gamma as p goes from 0 to 1. We conclude that Fp(S) ^ Fp(Sngl) when p ! 12, and Fp(Sngl) ^ Fp(S) when p ? 12 . Repeating the same argument using f SMaj completes the proof. Remark: An alternative proof for Theorem 4.5 has been suggested to us [Hol93]. The proof uses the notion of majorization [MO79] and the fact that ki = pi(1 \Gamma p)n\Gamma i is a decreasing sequence for i = 0; : : : ; n when p ! 12 . 4.4 Uniqueness of the Extremal NDC's In this section we show the uniqueness of the failure probability of the Sngl coterie, and of the Maj coterie over an odd sized universe (Proposition 4.11). 15 The proof of the non trivial part of these claims is presented in two steps. First we prove that if S is not a Sngl coterie then its availability profile is not aSngl, and that if n is odd and S is not Maj then aS 6= aMaj. Then we prove that if aS 6= aSngl then Fp(S) 6= Fp(Sngl), and similarly for Maj. Unless otherwise stated, we assume that all the coteries are ND, over a universe U of size n. Lemma 4.6 If aSi = aSngli = in\Gamma 1i\Gamma 1j for 0 ^ i ^ n then S = ffugg for some u 2 U . Proof: Specifically, aS1 = 1. Therefore there exists u 2 U such that the set fug hits all S 2 S. Hence u 2 S for all S 2 S. If S 6= ffugg then ffugg dominates S, contradiction to the premise that S 2 NDC. For the proof of uniqueness of the availability profile of the Maj coterie we need the following lemma, which shows that the number of minimal cardinality quorums is easily seen in the availability profile. Lemma 4.7 Let S 2 NDC, and r = minfi : aSi ? 0g. Then (a) All the transversals of size r are quorums, i.e., ASr = fS 2 S : jSj = rg. (b) The minimal quorum size c(S) = r. Proof: Consider some transversal X 2 ASr . By Lemma 2.12 there exists a quorum S 2 S such that S ` X. Obviously jXj = r implies jSj ^ r, hence c(S) ^ r. It is impossible that c(S) ! r since every S 2 S is a transversal, and the minimal transversal size is r, thus proving (b). Additionally, S = X, proving (a). Lemma 4.8 Suppose n = 2t + 1, and aSi = ( 0; 0 ^ i ^ t,in ij; t + 1 ^ i ^ n. Then S is Maj. Proof: By Lemma 4.7(b), c(S) = t + 1. Moreover, aSt+1 = i nt+1j so every set of size t + 1 is a transversal. By Lemma 4.7(a), every set of size t + 1 is in S. From the Minimality property of NDC's, no sets of size greater than t + 1 can belong to S. Hence S = Maj. Remark: If n is even then there exist several NDC constructions with an availability profile identical to aMaj (as described in Fact 4.1). To see this, assume that n = 2t. One possible construction is the one we have used before; discard an element u from U and use the (unique) Maj over an odd sized universe. Another possibility is best defined by voting; pick an element u, assign a vote of 2 to it, and assign a vote 16 of 1 to all the other elements. The latter construction has quorums of size t (that contain u) and of size t + 1 (without u). It is easy to verify that both constructions have an availability profile identical to aMaj. To show the uniqueness of the failure probabilities, we need the following lemma, which describes a general property of the difference between two availability profiles. Lemma 4.9 Let S; R 2 NDC be given over the same universe U . Let f SR(i) = aSi \Gamma aRi for i = 0; : : : ; n. Then f SR(i) = \Gamma f SR(n \Gamma i) for i = 0; : : : ; n. Proof: Using Lemma 3.2 we get f SR(i) = ni ! \Gamma aSn\Gamma i \Gamma ni ! + aRn\Gamma i = \Gamma f SR(n \Gamma i): Lemma 4.10 If aS 6= aSngl then Fp(S) 6= Fp(Sngl), and if aS 6= aMaj then Fp(S) 6= Fp(Maj). Proof: Consider the difference function f SnglS (as in Definition 4.3). By Lemma 4.9, f SnglS (i) = \Gamma f SnglS (n \Gamma i) for all i. Fix some arbitrary 0 ! p ! 12 . Then Fp(Sngl) \Gamma Fp(S) = nX i=0 f SnglS (i)piqn\Gamma i = X 0^i! n2 f SnglS (i)ipiqn\Gamma i \Gamma pn\Gamma iqij = X 0^i! n2 f SnglS (i)piqiiqn\Gamma 2i \Gamma pn\Gamma 2ij: Since p ! 12 ! q, and since by Lemma 4.2 f SnglS (i) * 0 when i ! n2 , all the terms in the last sum are non-negative. By the premise aS 6= aSngl, therefore there exists an i for which aSi 6= aSngli , hence f SnglS (i) 6= 0. By Lemma 4.9 we can assume w.l.g. that i ! n2 , so f SnglS (i) ? 0. This implies that the above sum is strictly positive, hence Fp(Sngl) 6= Fp(S). For the Maj, we start with Fp(S) \Gamma Fp(Maj) and follow the same argument. Proposition 4.11 (Uniqueness) Let S 2 NDC. Then Fp(S) = Fp(Sngl) iff S is a Sngl coterie. If n = jU j is odd then Fp(S) = Fp(Maj) iff S is the Maj coterie. Proof: If S is a Sngl or Maj coterie the claim is trivial. If S is not a Sngl coterie, then by Lemma 4.6, aS 6= aSngl. If n is odd and S is not a Maj coterie, then by Lemma 4.8, aS 6= aMaj. Therefore by Lemma 4.10 the result follows. 4.5 The Worst NDC Using the Entire Universe In Theorem 4.5 we saw that the Sngl is the NDC with the worst availability (when 0 ! p ! 12 ). However, the Sngl coterie does not "scale up" in the true sense of the 17 word when the universe size n increases, since all but one of the elements of U do not appear in any quorum. It is sometimes required, for load distribution purposes, that every element u 2 U must participate in some S 2 S. Call such coteries total coteries. We can ask which total ND coterie has the worst availability. In this section we show that the Wheel NDC is the wanted extremal coterie (Proposition 4.14). Remark: It is interesting to note that the requirement of using all the elements does not significantly improve the situation in terms of the worst possible availability. In particular, Fp(Wheel) \Gamma !n!1 p = Fp(Sngl), for any 0 ! p ! 1. Fact 4.12 The availability profile of the Wheel coterie is aWheeli = 8??!??: 0; 0 ^ i ^ 1,i n\Gamma 1 i\Gamma 1 j; 2 ^ i ^ n \Gamma 2,i n i j; n \Gamma 1 ^ i ^ n. For the proof of Proposition 4.14, we need the following lemma. The lemma implies that for any S 2 NDC, if aSi = in\Gamma 1i\Gamma 1 j for some i ! n2 then aSj = in\Gamma 1j\Gamma 1j for all i ^ j ! n2 . Lemma 4.13 Let S 2 NDC, and suppose there is an index i, 1 ^ i ! n2 \Gamma 1, with aSi = in\Gamma 1i\Gamma 1 j. Then aSi+1 = in\Gamma 1i j. Proof: Assume that aSi = in\Gamma 1i\Gamma 1 j for some 1 ^ i ! n2 \Gamma 1. Then by the Sunflower Theorem 2.18, ASi is a "sunflower", i.e., there exists an element u0 such that u0 2 X for all X 2 ASi . Now consider ASi+1. ASi+1 is an intersecting hypergraph in U (i+1), so again by the Sunflower Theorem, aSi+1 ^ n \Gamma 1i ! (\Lambda ): In the other direction, for any X 2 ASi and Y oe X such that Y 2 U (i+1), it is obvious that Y hits all S 2 S, so Y 2 ASi+1. Therefore aSi+1 * fififinX [ fwg : X 2 ASi ; w 2 U n Xofififi : But the last expression is precisely the number of sets of size i + 1 that contain u0, i.e., aSi+1 * n \Gamma 1i !: (\Lambda \Lambda ) Combining (\Lambda ) and (\Lambda \Lambda ), the lemma follows. Proposition 4.14 Let S 2 NDC be such that every element u 2 U is in some S 2 S. Then for 0 ! p ! 12 , Fp(S) ^ Fp(Wheel). 18 Proof: Fix 0 ! p ! 12, and consider the coterie S 2 NDC with the maximal Fp(S) which uses all the elements of U . For this S, define the difference function w.r.t. the Sngl coterie, f SnglS (i) = aSngli \Gamma aSi . As in the proof of Lemma 4.10, and using Fp(Sngl) = p, we get Fp(S) = p \Gamma X 0^i! n2 f SnglS (i)piqiiqn\Gamma 2i \Gamma pn\Gamma 2ij: We need to estimate how large Fp(S) might be. When i ! n2 and p ! 12 ! q the parenthesized expressions are positive. Additionally, by Lemma 4.2, f SnglS (i) * 0 when 0 ^ i ! n2 . Thus, Fp(S) is "large" whenever f SnglS (i) = 0 for "many" values of i, i ! n2 . It is not the case that f SnglS (i) ? 0 for all 0 ^ i ! n2 . This is because for the Wheel coterie f SnglS (2) = 0, hence for S with the maximal Fp(S) there is some i ! n2 such that f SnglS (i) = 0 and 0 ^ i ! n2 . Let t[S] = minfi : f SnglS (i) = 0g. By Lemma 4.13, f SnglS (i) = 0 for all t[S] ^ i ! n2 . Therefore the maximal value for Fp(S) is when t[S] is the smallest possible. t[S] cannot be 1 since by the uniqueness of Sngl (Proposition 4.11), t[S] = 1 would imply that S is a Sngl coterie, which does not use all the elements of the universe. We conclude that for the NDC with the worst availability that uses all the elements, t[S] = 2, i.e., f SnglS (1) = 1 and f SnglS (i) = 0 for all 2 ^ i ! n2 . But this implies that aS = aWheel, and Fp(S) = Fp(Wheel). 5 The Availability of Coterie Constructions In this section we analyze several coterie constructions that have appeared in the literature. Before showing the details of the constructions, we first present their properties concisely in Table 1. For each coterie construction we list the number of quorums m(S), the minimal quorum cardinality c(S), the failure probability Fp(S), and whether Fp(S) is Condorcet. Recall that by Definition 2.29, Fp(S) is Condorcet iff Fp(S) \Gamma !n!1 0 when p ! 12 and Fp(S) \Gamma !n!1 1 when p ? 12 . Remarks: ffl All the coteries are over a universe of size n. ffl Most constructions require special universe sizes (e.g., n = 2t \Gamma 1 for some t); these details are omitted from the table. ffl We use "(p) to denote expressions depending solely on p. The precise value in each case depends on the construction. 19 S m(S) c(S) Fp(S) Condorcet Sngl 1 1 p No Wheel n 2 p \Gamma pq(qn\Gamma 2 \Gamma pn\Gamma 2) No Triang ss (e \Gamma 1)(p2n)! ss p2n * p1=p No Tree 2 n+1 2 \Gamma 1 log2(n + 1) ^ n\Gamma "(p) Yes Nuc ss 4n ss 12 log2 n ^ n\Gamma "(p) Yes Maj i nn+1 2 j ? 2n \Gamma 1p n n+1 2 ^ e\Gamma "(p)n Yes FPP n ss pn * (1 \Gamma qpn)n No Square pnpn 2pn \Gamma 1 * (1 \Gamma qpn)pn No Table 1: Properties of coterie constructions ffl The failure probability Fp is presented for the case of 0 ! p ! 12 . This characterizes Fp completely for NDC systems, since by the symmetry Theorem 3.4 Fp(S) = 1 \Gamma F1\Gamma p(S) for any S 2 NDC. ffl Instead of exact expressions, we present bounds on Fp that emphasize its asymptotic behavior and explain why each construction is or is not Condorcet. ffl The first six rows in the table represent non-dominated coteries and the last two rows represent dominated ones. Note that in both the latter cases, Fp(S) \Gamma !n!1 1 for any value 0 ! p ! 1, so these constructions have poor availability for all but very small systems. 5.1 The Sngl and Wheel Coteries The Sngl system is the trivial singleton NDC, S = ffagg. This coterie corresponds to the centralized mutual exclusion protocol where a single processor controls the access to the critical section. It is also called the "monarchy" for obvious reasons. The Wheel coterie is an "almost centralized" system. To calculate Fp(Wheel) observe that in a failure configuration, either the hub and at least one other element fail, or the hub does not fail and all others do, therefore we have Fp(Wheel) = p(1 \Gamma qn\Gamma 1) + qpn\Gamma 1 = p \Gamma pq(qn\Gamma 2 \Gamma pn\Gamma 2): 20 5.2 The Triang Coterie The Triang system was first described [Lov73, EL75] and proved to be ND in [MP92]. The elements are organized in a triangular grid of d rows, with the i'th row containing i elements (we assume n = d(d+1)2 ). A quorum is made of the elements of one complete row i, and a representative from each row j ? i (see Figure 2). It is obvious that c(Triang) = d, and not hard to see that m(Triang) = b(e \Gamma 1)d!c (cf. [Lov73]). Figure 2: A 28 element Triang coterie, with one quorum shaded. To compute Fp(Triang), consider the following procedure to search the triangle for either a complete quorum or a failure configuration. We go over the rows from the bottom up, starting with row d. At row i we have three options: 1. If all i elements in the row have failed, stop; the system has failed. 2. If all i elements in the row have succeeded, stop; there is a complete functioning quorum in the system. 3. Otherwise, continue to row i \Gamma 1. A moment's reflection reveals that the procedure considers row i \Gamma 1 only if row i has both a failed element and a successful one, thus both stopping decisions are correct. There is no special rule for row 1; since it contains a single element is must fall into one of the stopping cases. Let Fp(d) denote Fp of a Triang of d rows. Then the above procedure gives the recurrence Fp(d) = pd + (1 \Gamma pd \Gamma qd)Fp(d \Gamma 1); and after expansion we get Fp(d) = dX i=1 pi` dY j=i+1(1 \Gamma pj \Gamma qj)': 21 In order to show that Fp(Triang) is not Condorcet, we bound it from below. The system certainly fails if there is no row in which all the elements succeed, i.e., Fp(d) * P(no row is completely successful) = dY i=1(1 \Gamma qi): Consider the function h(x) = e\Gamma kx for k ? 1. This function crosses the function 1 \Gamma x twice, at x = 0 and at x = t for some 0 ! t ! 1 that satisfies k = 1t ln 11\Gamma t . Moreover, 1 \Gamma x * h(x) in the range 0 ^ x ^ t. Thus for the success probability q, if k = 1q ln 1p then 1 \Gamma qi * e\Gamma kq i for all i * 1 since 0 ! qi ! q. Therefore dY i=1(1 \Gamma q i) * e\Gamma k Pdi=1 qi * e\Gamma k qp : Plugging in the value of k we conclude that Fp(Triang) * p1=p, for any number of rows, thus Fp(Triang) is not Condorcet. 5.3 The Tree Coterie The Tree system was first described and proved to be a coterie in [AE89, AE91]. In [IK90, NM92] it is shown that Tree 2 NDC. The elements are organized in a complete rooted binary tree (we assume that n = 2h \Gamma 1 for some h ? 0). For a node v let T (v) denote the tree rooted at v, and let TL(v) and TR(v) denote the left and right subtrees of v respectively. Then a quorum in the system is defined recursively by the following procedure QE(T (v)) (Quorum Extract). 1. For a leaf v, QE(T (v)) is taken to be fvg. 2. Either take the root, and a quorum in the subtree of one of the root's children. 3. Or take the union of two quorums, one from the subtree of each child. Formally, QE(T (v)) 8????! ????: fvg; v is a leaf,f vg [ QE(TL(v)) ORf vg [ QE(TR(v)) OR QE(TL(v)) [ QE(TR(v)); otherwise. For instance, on a binary tree with 7 elements labeled by 1; : : : ; 7 from root to leaves and from left to right in each level, the quorums are: f1; 2; 4g, f1; 2; 5g,f 1; 3; 6g, f1; 3; 7g, f1; 4; 5g, f1; 6; 7g, f2; 3; 4; 6g, f2; 3; 4; 7g, f2; 3; 5; 6g, f2; 3; 5; 7g,f 2; 4; 6; 7g, f2; 5; 6; 7g, f3; 4; 5; 6g, f3; 4; 5; 7g, f4; 5; 6; 7g. 22 To calculate m(Tree), define m(h) to be the number of quorums in a Tree system of height h. Then m(h) obeys the recurrence m(h) = 2m(h \Gamma 1) + (m(h \Gamma 1))2 ; and m(1) = 1. The solution is m(h) = 22 h\Gamma 1 \Gamma 1, and plugging 2h = n + 1 we get that m(Tree) = 2 n+1 2 \Gamma 1. It is clear that c(Tree) = log2(n + 1). For the calculation of Fp(Tree), define Fp(h) to be Fp of a Tree with height h. Then Fp(1) = p, and Fp(h) = p \Delta P(at least one subtree fails) + (1 \Gamma p) \Delta P(both subtrees fail) = p `1 \Gamma i1 \Gamma Fp(h \Gamma 1)j 2' + (1 \Gamma p)iF p(h \Gamma 1)j 2 = 2pFp(h \Gamma 1) + (1 \Gamma 2p)iFp(h \Gamma 1)j 2: A simple check shows that if p = 12 then Fp(h) = 12 for all h. Using the sufficient condition of Proposition 3.8, we obtain that Tree 2 NDC, without the case analysis required in a direct proof. It is easy to prove by induction that if p ! 12 then Fp(h) ^ p and then that Fp(h) ^ (p + 12 )h. Plugging h = log2(n + 1) we get that Fp(Tree) ^ n\Gamma "(p) for some constant "(p) ? 0 depending on p. Therefore, using the symmetry Theorem 3.4, we conclude that Fp(Tree) is Condorcet. 5.4 The Nuc Coterie The nucleus (Nuc) system appears first in [EL75], and a variation appears in [Tuz85]. The system is built in two stages. First consider a nucleus universe U1 of size 2r \Gamma 2 for some r ? 1, and add to S all the subsets of U1 of size r. Secondly, for each possible partition of U1 into two disjoint sets T 0j; T 00j with jT 0jj = jT 00j j = r \Gamma 1, add a new element xj to the universe and add the sets T 0j [ fxjg and T 00j [ fxjg to S. It is easy to check directly that Nuc 2 NDC. After both steps, the universe size is n = 2r \Gamma 2 + 12 i2r\Gamma 2r\Gamma 1 j. Therefore c(Nuc) ss 1 2 log2 n. The number of quorums is m(Nuc) = 2r \Gamma 2r ! + 2r \Gamma 2r \Gamma 1 ! = 12 2rr ! ss 4n: The Nuc system has some interesting extremal properties [EL75]. In particular, it serves as an extreme case for a coterie for which it is hard to balance the load among the processors [HMP93]. 23 In order to compute Fp(Nuc), note that any transversal T of the system hasj T " U1j * r \Gamma 1, since Nuc 2 NDC. Therefore Fp(Nuc) ^ P(at least r \Gamma 1 failures in U1): The expected number of failures in U1 is (2r \Gamma 2)p. If p ! 12 we can write r \Gamma 1 = (1 + ffi)(2r \Gamma 2)p and use the standard Chernoff bound [Che52] to get Fp(Nuc) ^ e\Gamma (2r\Gamma 2)pffi2 3 ^ n\Gamma "(p) for some constant "(p) ? 0, so Fp(Nuc) is Condorcet. 5.5 The Maj Coterie The Condorcet Jury Theorem [Con] is in fact about the asymptotic behavior of the Maj coterie, so naturally Fp(Maj) is Condorcet. To estimate the rate of convergence, if p ! 12 , the failure probability is Fp(Maj) ^ P(at least n+12 failures) ^ e\Gamma "(p)n for some constant "(p) ? 0, using the Chernoff bound. 5.6 The FPP Coterie The FPP coterie is based on finite projective planes, and appears first in a mutual exclusion protocol in [Mae85]. For a prime r let t = rk for some integer k. Then the finite projective plane of order t is a quorum system with m(FPP) = t2 + t + 1 quorums, each of size c(FPP) = t + 1. It has been shown in [Fu90] that for all t * 3, the FPP of order t is dominated. The only non-dominated FPP is of order 2, i.e., the 7 point Fano plane. Let Fp(t) denote Fp(FPP) for a finite projective plane of order t. To bound Fp(t) from below, we apply the same argument as in the proof of Proposition 3.9 and use the FKG inequality. We get Fp(t) * Y S2FPP(1 \Gamma qjSj) = (1 \Gamma qt+1)t 2+t+1 \Gamma ! t!1 1: Note that this holds for any p ? 0. Therefore, the FPP coterie has poor availability in all but very small systems. 24 5.7 The Square Coterie The Square coterie appears in [CAA90, MP92]. The n = d2 elements are arranged in a d \Theta d grid, and a quorum in the system consists of one complete row and a representative element from all the other rows. There are m(Square) = dd quorums, all of size c(Square) = 2d \Gamma 1. To see that Square is dominated, consider the set of elements on the diagonal--it is a transversal of the system but is not a superset of any quorum. Let Fp(d) denote Fp(Square) for a d \Theta d grid. To bound Fp(d) from below, note that for the system to fail it is enough to have at least one failure per row. Therefore Fp(d) * P(at least one failure per row) = (1 \Gamma qd)d \Gamma !d!1 1: 6 The Availability of Weighted Voting A simple and popular method to define and implement quorum systems is by weighted voting [Gif79, GB85, BG86, AAC91, MP92]. In a voting system, each element is assigned a number of votes, and a quorum is any subset of elements with a weight exceeding half of the total weight. In this section we consider voting systems over a universe of size n for increasing n. We give two necessary conditions that ensure that the failure probability of such systems is Condorcet. Definition 6.1 For each i 2 U let the integer wi * 0 denote the weight of i. Let W = Pi wi be the total weight. The full voting system defined by the weights wi is VoteF = fS ` U : X i2S wi ? W2 g: As defined above, VoteF is not a coterie since it does not satisfy the Minimality property. To amend this situation, we discard all the quorums that are supersets of other quorums. Definition 6.2 Let the Voting Coterie defined by the weights wi be Vote = fS 2 VoteF : 8u 2 S; S n fug 62 VoteFg: In [GB85] it is shown that if the total weight W is odd then Vote 2 NDC. If W is even then either Vote is dominated, or there exists a different distribution of weights w0 with an odd total that defines the same (non dominated) Vote coterie. Therefore for simplicity we shall assume that W is odd. In this case, we can define VoteF (and its coterie Vote) by taking as a quorum any set S ` U such that Pi2S wi * W2 . 25 Proposition 6.3 Let Vote be defined by weights wi with an odd total W . Let the maximal weight be wmax = maxifwig. Then ffl 0 ! p ! 14e =) Fp(Vote) ! 2\Gamma W 2wmax , ffl 14e ^ p ! 12 =) Fp(Vote) ! e\Gamma (1\Gamma 2p)2 16p \Delta W wmax . Therefore Fp(Vote) is Condorcet if Wwmax \Gamma !n!1 1. Proof: Define a Bernoulli random variable Xi for each element i 2 U , Xi = 1 when the element i fails. Then Xi , B(p). Let the total weight of the failed elements be Z = Pni=1 wiXi. The system fails exactly when Z * W2 . We want to bound the probability of this event using the Chernoff-type bound for weighted sums, due to Raghavan and Spencer [Rag88]. For this bound to be applicable, the weights need to be at most 1. Therefore we scale the weights by a factor of wmax, defining ^wi = wiw max ; i = 1; : : : ; n: Clearly 0 ! ^wi ^ 1. Let ^Z = Pni=1 ^wiXi = Zwmax and ^W = Wwmax . Then Fp(Vote) = Pi ^Z * ^W2 j: The expectation of ^Z is E[ ^Z ] = nX i=1 ^ wi \Delta p = p \Delta ^W : Set ffi = 1\Gamma 2p2p . If p ! 12 then ffi ? 0 so we can write ^W2 = (1 + ffi)E[ ^Z ]. By the Raghavan-Spencer bound, Pi ^Z * ^W2 j ! " e ffi (1 + ffi)1+ffi # E[ ^Z ] : Using standard estimations of the last expression when ffi ? 2e \Gamma 1 and when ffi ^ 2e \Gamma 1 completes the proof. We now give a different bound of Fp(Vote), based on the Chebicheff inequality. Proposition 6.4 Let Vote be defined by weights wi with an odd total W . If p ! 12 then Fp(Vote) ^ pq( 1 2 \Gamma p)2 \Delta P i w2i W 2 : Therefore Fp(Vote) is Condorcet if Pi w 2i W 2 \Gamma !n!1 0 . 26 Proof: Define Xi and Z as in the proof of Proposition 6.3. To use the Chebicheff bound we need the expectation and variance of Z. E[Z] = W p; V (Z) = X i w2i pq: Clearly Z is a positive r.v., and when p ! 12 then W2 \Gamma E[Z] ? 0 so we can apply the Chebicheff bound to get Fp(Vote) = PiZ * W2 j ^ pq Pi w 2i ( W2 \Gamma W p)2 ; and the claim follows. Remark: At first glance Proposition 6.4 seems to be much weaker than the exponential decay shown in Proposition 6.3. However there are cases when the seemingly weaker bound is more useful. Consider the voting system defined as follows. There are n = 2d + 1 elements for some odd d, a single element with weight d, and all the others with weight 1. Then W = 3d, and the ratios are W=wmax = 13 andP i w2i =W 2 ss 19. The system does not satisfy either of the conditions for being Condorcet (and in fact Fp(Vote) is not Condorcet in this case). But when we check the values guaranteed by the propositions, calculations show that Proposition 6.3 gives nothing of value; the bound is greater than p for any 0 ! p ! 12 , so we gain no information over the bound of Theorem 4.5. On the other hand, the bound of Proposition 6.4 gives useful values (i.e., smaller than p) for p up to approximately 0:2. Acknowledgments We are grateful to Moni Naor and Ron Holzman for their helpful comments and suggestions. References [AAC91] M. Ahamad, M. H. Ammar, and S. Y. Cheung. Multidimensional voting. ACM Trans. Comp. Sys., 9(4):399-431, 1991. [AE89] D. Agrawal and A. El-Abbadi. An efficient solution to the distributed mutual exclusion problem. In Proc. 8th ACM Symp. Princip. of Dist. Comp., pages 193-200, 1989. 27 [AE91] D. Agrawal and A. El-Abbadi. An efficient and fault-tolerant solution for distributed mutual exclusion. ACM Trans. Comp. Sys., 9(1):1-20, 1991. [AS92] N. Alon and J. Spencer. The Probabilistic Method. John Wiley & Sons, Chichester, 1992. [Bec78] J. Beck. On 3-chromatic hypergraphs. Disc. Math., 24:127-137, 1978. [BG86] D. Barbara and H. Garcia-Molina. The vulnerability of vote assignments. ACM Trans. Comp. Sys., 4(3):187-213, 1986. [Bol86] B. Bollob'as. Combinatorics. Cambridge University Press, 1986. [BPT89] P. J. Borland, F. Proschan, and Y. L. Tong. Modelling dependence in simple and indirect majority systems. J. Appl. Prob., 26:81-88, 1989. [CAA90] S. Y. Cheung, M. H. Ammar, and M. Ahamad. The grid protocol: A high performance scheme for maintaining replicated data. In Proc. 6th IEEE Conf. Data Engineering, pages 438-445, 1990. [Che52] H. Chernoff. A measure of asymptotic efficiency for tests of a hypothesis based on the sum of observations. Annals of Math. Stat., 23:493-509, 1952. [Coh93] H. Cohen. Quorum systems: Domination, fault-tolerance, balancing. Master's thesis, Department of Applied Mathematics and Computer Science, The Weizmann Institute of Science, Rehovot, Israel, 1993. [Con] N. Condorcet. Essai sur l'application de l'analyse `a la probabilit'e des decisions rendues `a la pluralite des voix. Paris, 1785. [EKR61] P. Erd""os, C. Ko, and R. Rado. Intersection theorems for systems of finite sets. Quart. J. Math. Oxford, 12(2):313-320, 1961. [EL75] P. Erd""os and L. Lov'asz. Problems and results on 3-chromatic hypergraphs and some related questions. In Infinite and Finite Sets, pages 609-627. Colloq. Math. Soc. J'anos Bolyai 10, 1975. [Erd63] P. Erd""os. On a combinatorial problem I. Nordisk Mat. Tidskrift, 11:5-10, 1963. [FKG71] C. M. Fortuin, P. W. Kasteleyn, and J. Ginibre. Correlation inequalities on some partially ordered sets. Commun. Math. Physics, 22:89-103, 1971. 28 [Fu90] A. Fu. Enhancing Concurrency and Availability for Database Systems. PhD thesis, Simon Fraser University, Burnaby, B.C., Canada, 1990. [GB85] H. Garcia-Molina and D. Barbara. How to assign votes in a distributed system. J. ACM, 32(4):841-860, 1985. [Gif79] D. K. Gifford. Weighted voting for replicated data. In Proc. 7th Symp. Oper. Sys. Princip., pages 150-159, 1979. [Her84] M. P. Herlihy. Replication Methods for Abstract Data Types. PhD thesis, Massachusetts Institute of Technology, MIT/LCS/TR-319, 1984. [HMP93] R. Holzman, Y. Marcus, and D. Peleg, 1993. In preparation. [Hol93] R. Holzman, 1993. Personal communication. [IK90] T. Ibaraki and T. Kameda. Theory of coteries. Technical Report CSS/LCCR TR90-09, Simon Fraser University, Burnaby, B.C., Canada, 1990. Extended abstract in Proc. 3rd IEEE Symp. Par. and Dist. Processing, 1991. [Kar68] S. Karlin. Total Positivity, volume 1. Stanford University Press, 1968. [Lov73] L. Lov'asz. Coverings and colorings of hypergraphs. In Proc. 4th Southeastern Conf. Combinatorics, Graph Theory and Computing, pages 3-12, 1973. [Mae85] M. Maekawa. A pn algorithm for mutual exclusion in decentralized systems. ACM Trans. Comp. Sys., 3(2):145-159, 1985. [MO79] A. W. Marshall and I. Olkin. Inequalities: Theory of Majorization and its Application. Academic Press, 1979. [MP92] Y. Marcus and D. Peleg. Construction methods for quorum systems. Technical Report CS92-33, The Weizmann Institute of Science, Rehovot, Israel, 1992. [NM92] M. L. Neilsen and M. Mizuno. Coterie join algorithm. IEEE Trans. Par. Dist. Sys., 3(5):582-590, 1992. [Owe82] G. Owen. Game Theory. Academic Press, second edition, 1982. [PS91] C. H. Papadimitriou and M. Sideri. Optimal coteries. In Proc. 10th ACM Symp. Princip. of Dist. Comp., 1991. 29 [Rag88] P. Raghavan. Probabilistic construction of deterministic algorithms: Approximating packing integer programs. J. Computer System Sci., 37:130- 143, 1988. [Tho79] R. H. Thomas. A majority concensus approach to concurrency control for multiple copy databases. ACM Trans. Database Sys., 4(2):180-209, 1979. [Tuz85] Zs. Tuza. Critical hypergraphs and intersecting set-pair systems. J. Comb. Theory, Series B, 39:134-145, 1985. 30