A Framework for the Secretary Problem on the Intersection of Matroids
Moran Feldman, Ola Svensson, Rico Zenklusen

TL;DR
This paper introduces a general framework for solving the secretary problem with multiple matroid constraints, enabling constant-competitive algorithms for intersections of matroids and extending to submodular objectives.
Contribution
It provides a unified approach to handle the intersection of multiple matroids in the secretary problem, leveraging existing algorithms and extending to submodular functions.
Findings
Constant-competitive algorithms for intersections of any constant number of matroids.
Framework combines existing matroid secretary algorithms effectively.
Extension of results to submodular objectives.
Abstract
The secretary problem became one of the most prominent online selection problems due to its numerous applications in online mechanism design. The task is to select a maximum weight subset of elements subject to given constraints, where elements arrive one-by-one in random order, revealing a weight upon arrival. The decision whether to select an element has to be taken immediately after its arrival. The different applications that map to the secretary problem ask for different constraint families to be handled. The most prominent ones are matroid constraints, which both capture many relevant settings and admit strongly competitive secretary algorithms. However, dealing with more involved constraints proved to be much more difficult, and strong algorithms are known only for a few specific settings. In this paper, we present a general framework for dealing with the secretary problem over…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsOptimization and Search Problems · Robotic Path Planning Algorithms · Cryptography and Data Security
A Framework for the Secretary Problem on the Intersection of Matroids
Moran Feldman Dept. of Mathematics and Computer Science, Open University of Israel. Email: [email protected]. Supported by Israel Science Foundation grant 1357/16.
Ola Svensson School of Computer and Communication Sciences, EPFL. Email: [email protected]. Supported by ERC Starting Grant 335288-OptApprox.
Rico Zenklusen
Department of Mathematics, ETH Zurich, Zurich, Switzerland. Email: [email protected]. Supported by the Swiss National Science Foundation grant 200021_165866, “New Approaches to Constrained Submodular Maximization”.
Abstract
The secretary problem became one of the most prominent online selection problems due to its numerous applications in online mechanism design. The task is to select a maximum weight subset of elements subject to given constraints, where elements arrive one-by-one in random order, revealing a weight upon arrival. The decision whether to select an element has to be taken immediately after its arrival. The different applications that map to the secretary problem ask for different constraint families to be handled. The most prominent ones are matroid constraints, which both capture many relevant settings and admit strongly competitive secretary algorithms. However, dealing with more involved constraints proved to be much more difficult, and strong algorithms are known only for a few specific settings. In this paper, we present a general framework for dealing with the secretary problem over the intersection of several matroids. This framework allows us to combine and exploit the large set of matroid secretary algorithms known in the literature. As one consequence, we get constant-competitive secretary algorithms over the intersection of any constant number of matroids whose corresponding (single-)matroid secretary problems are currently known to have a constant-competitive algorithm. Moreover, we show that our results extend to submodular objectives.
**Keywords: matroid secretary problem, matroid intersection, online algorithms **
1 Introduction
The secretary problem is a classical online selection problem with unclear origins, but dating back to at least the 1950’s (see [20, 22, 23, 36] for more details). In its original form the task is to hire the best out of a known number of candidates ranked according to an unknown total order. The candidates are interviewed in uniformly random order, and it is only possible to compare pairs of candidates that have already been interviewed. Between any two interviews, one has to decide immediately and irrevocably whether to hire the candidate interviewed last, and the game stops as soon as some candidate gets hired. The goal is to find a hiring/selection strategy that maximizes the probability to hire the best candidate. A well-known and asymptotically optimal algorithm by Dynkin [15] selects the best candidate with probability .
More recently, there has been a revival of variants of the secretary problem due to a multitude of applications in online mechanism design, where items are sold to agents arriving online (see [4, 3, 9, 27, 32] and references therein). Moreover, links between the secretary problem and further problems in mechanism design, like prophet inequalities and sequential posted pricings, led to a diverse community of researchers interested in the problem.
Most of the recently studied variants of the secretary problem are of the following type. Elements (agents) of a set appear one at a time, each revealing a nonnegative weight when appearing. As before, one has to decide immediately and irrevocably after the appearance of an element whether to select it. The goal is to maximize the expected weight of the selected elements subject to a given set of constraints that the selected elements have to fulfill. A variety of constraint types have been considered, starting with a simple cardinality constraint imposing that any elements can be selected [32]. In particular, matroid constraints111We recall that a matroid is a tuple , where is a finite set, called ground set, and is a nonempty family of subsets of , called independent sets, fulfilling the following properties:
(i) if and , then ;
(ii) if and , then such that . We refer to [41] for more information on matroids.
have proven to be a very interesting and promising constraint type, capturing a wide set of relevant problems, while offering at the same time many structural properties enabling the design of strong online algorithms. Consequently, matroid constraints have been by far the best-studied constraint class for the secretary problem.
The secretary problem under matroid constraints was introduced by Babaioff et al. [4], and is known as the Matroid Secretary Problem (MSP). Constant-competitive algorithms for MSP exist for numerous classes of matroids, including graphic matroids [4, 34], co-graphic matroids [43], laminar matroids [28, 29, 37], transversal matroids [4, 11, 34, 31], regular and decomposable matroids [13], and linear matroids with a matrix representation having at most a constant number of non-zero entries per column [43]. Moreover, the above list can be extended by a result of [4], showing that any -competitive algorithm for MSP over a given matroid can be transformed into a -competitive algorithm for MSP over any truncation of . For general matroids, is the currently best known competitive ratio, where is the rank of the underlying matroid [17, 35]. It remains open, whether a constant-competitive algorithm for MSP exists, with the well-known Matroid Secretary Conjecture claiming this being the case.
Motivated by various applications, secretary problems subject to constraint families beyond matroids have recently gained attention, including matching constraints in graphs and hypergraphs [11, 31, 34], knapsack constraints [2], independent sets in graphs [24], and the intersection of (a constant number of) laminar matroids [37]. Moreover, for arbitrary downward-closed set systems, Rubinstein [40] presents an algorithm for the secretary problem that nearly matches a known information-theoretic hardness bound of by Babaioff et al. [4], where is the number of elements.
The flurry of results on MSP and constraints beyond matroids has led to numerous algorithmic ideas. However, there are still large gaps in our understanding of secretary problems, and despite the many known results for various specific constraint families, generally applicable techniques to design new strong secretary algorithms are still largely missing. The goal of this work is to partially fill this gap by presenting a general framework for combining MSP algorithms for specific matroids into a strong secretary algorithm over the intersection of these matroids (we use the name Matroid Intersection Secretary Problem (MISP) for the secretary problem over such intersections). This framework allows us to leverage the extensive existing literature on MSP towards the design of secretary algorithms for a considerably more general class of constraints in an essentially black-box way. Previously, it was unclear how to obtain nearly-optimal competitive ratios when dealing with combined constraints, and a constant-competitive algorithm for the intersection of a constant number of matroids was only known when the involved matroids were laminar [37]. However, this procedure was heavily specialized to laminar matroids, and hard to extend. In particular, a question in [28], which was open since, asks whether it is possible to obtain an -competitive algorithm for the secretary problem on the intersection of a matroid and a single laminar matroid, given a -competitive algorithm for MSP on . As a very special case of our framework, we resolve this question affirmatively (under a mild assumption on the algorithm for ). More generally, we get constant-competitive secretary algorithms for the intersection of any constant number of matroids as long as for each involved matroid a constant-competitive MSP algorithm is known (again, assuming this algorithm obeys the above-mentioned mild assumption). Moreover, by extending a technique of [19], we show that our results extend to the submodular secretary problem.222In the submodular secretary problem, the objective function is a nonnegative submodular function on the ground set , i.e., fulfills for any . Moreover, access to is provided via a value oracle, which can be queried with any subset of elements that revealed so far, and returns the value .
1.1 Overview of our results and techniques
For better clarity, and to highlight our main ideas, we build our framework in several steps based on a sequence of results which we think to be of independent interest. In this section, we give a brief overview of our main techniques and their implications.
In order for our techniques to work, our framework requires that the single-matroid MSP algorithms used within it are order-oblivious, a notion introduced in [1]. An order-oblivious secretary algorithm works in two phases. In the first phase it observes a certain number of all elements without selecting any of them, to learn about their weights. Only in the second phase elements get selected. However, the second phase must not depend on the elements arriving in random order, and has to work even if the elements appear in adversarial order. Order-obliviousness is a quite weak assumption in the sense that most known MSP algorithms are order-oblivious. Moreover, for all matroid classes known to the authors that have been studied in the context of MSP, the currently best competitive ratio is either already achieved by an order-oblivious algorithm, or an order-oblivious algorithm with a competitive ratio at most a constant-factor worse than the best-known one can easily be obtained from existing procedures. Thus, the restriction to order-oblivious algorithms is a rather benign assumption. Furthermore, when combining algorithms it is clear that some assumption of this nature is required (otherwise, the combining technique must be sophisticated enough to combine, for example, two algorithms such that the first of them only selects a subset of the first elements, while the second only selects a subset of the last elements). In Section 2, we provide a more formal definition of order-oblivious algorithms.
Let us now present our results for MSP algorithms that are -competitive (for some ) because they select each element of the offline optimum with probability at least . We call such algorithms -competitive, or more precisely --competitive (Section 4 contains a formal definition).333Throughout this paper we assume that no two elements have the same weight, which can easily be achieved by breaking ties between elements of identical weight in an arbitrarily (but consistent) way. One important consequence of this assumption is that the offline optimum is unique. Many MSP algorithms in the literature are -competitive, including algorithms for partition, laminar and co-graphic matroids; however, most are not. At a later stage we significantly weaken the condition of -competitiveness to capture the best-known algorithms (up to a constant factor) for all matroid classes that were studied in the context of MSP, to the best of the authors’ knowledge.
Consider now the secretary problem over the intersection of two matroids and , and assume that we have an order-oblivious --competitive algorithm for MSP over , where . A natural naïve approach would be to run for both and the algorithms and independently in parallel, with the rule that we only select elements that get selected by both procedures simultaneously. However, this approach could have an arbitrarily bad competitive ratio due to the following. Clearly, since both and are --competitive algorithms, we will select elements of with constant probability, where for is the offline optimum with respect to only . The issue is that and may have very little or no overlap (another technicality is to make sure that we do not have bad correlations between the algorithms). A key part of our framework is to show that this issue can be resolved in a general way, such that we can assume to have an instance where the weight of is a constant fraction of the weight of .
More precisely, consider the intersection of matroids on the same ground set . We show that the following preprocessing procedure leads to a new instance where the single-matroid offline optima , one for each where , have large overlap. We start by observing a well-chosen fraction of all elements, obtaining a set of observed elements . We then consider the solution that the greedy algorithm for the intersection of the matroids returns when applied to . Finally we define a new MISP instance that, among the non-sampled elements , only considers elements such that ; we call such elements greedy-relevant, or more precisely, greedy-relevant with respect to .444There are several technical aspects one has to take care of which we did not address in this brief outline. In particular, instead of defining a new MISP instance on a subset of the elements, we really define a preprocessing procedure leading to a new MISP instance on all elements (but with a modified weight function ). This allows us to use existing MSP algorithms in a black-box fashion. Our main technical contribution here is to show that the intersection of the single-matroid offline optima on only the greedy-relevant elements has a total weight of . Furthermore, we show that this allows us to obtain the following.
Theorem 1.1**.**
Consider matroids on a common ground set . Suppose that, for , there is an order-oblivious --competitive MSP algorithm on matroid . Then, there is an order-oblivious -competitive online algorithm for MISP on the intersection .
The above theorem already has interesting implications. In particular, constant-competitive and order-oblivious algorithms are known—or can be easily obtained from known algorithms by a slight modification—for several matroids, including partition, laminar and co-graphic matroids. Hence, Theorem 1.1 implies that the secretary problem on the intersection of any constant number of such matroids admits a constant-competitive algorithm.
We later show how the requirement of --competitiveness can be substantially weakened, by extending our framework to capture, to the best of the authors’ knowledge, all classes of matroids that have been studied in the literature in the context of MSP, and leading to the following general result on MISP. For simplicity, we state the result for the intersection of a constant number of matroids; however, in a similar spirit as the statement of Theorem 1.1, the result can be generalized to a super-constant number of matroids (see Section 5 for more details).
Theorem 1.2**.**
*Consider MISP over the intersection of matroids, where each of the first matroids is either a partition, laminar, graphic, co-graphic, regular, max-flow min-cut, column-sparse linear, or transversal matroid—which are the matroids for which -competitive MSP algorithms are known—and each of the remaining matroids can be arbitrary. Then, there is a -competitive algorithm for this MISP, where denotes the cardinality of a maximum cardinality common independent set of all matroids.555A direct use of the -competitive algorithms for MSP on general matroids in our framework would lead to a competitive ratio of , where is the rank of the -th general matroid. However, in the MISP setting, one can improve this ratio to . This can be achieved by truncating each general matroid such that only -many elements can be chosen from it. If the matroids are known upfront, this truncation can be performed upfront; otherwise, has to be first estimated through sampling (see [17] for an application of this technique). *
Theorem 1.2 allows for leveraging the best-known competitive ratios for the thoroughly studied MSP in the context of MISP. Moreover, it is important to mention that we assume in this theorem that a matroid of a given class is known upfront to the MISP algorithm exactly when the current MSP state of the art algorithm for this class needs this information. Currently these are the algorithms for graphic, co-graphic, regular, max-flow min-cut, column-sparse linear and transversal matroids.
Using an extension of a technique presented in [19], we can also extend secretary algorithms for MISP to deal with nonnegative submodular objectives.
Theorem 1.3**.**
Let be an -competitive algorithm for an MISP instance on the intersection of matroids. Then, this algorithm can be transformed into an -competitive secretary algorithm for maximizing a nonnegative submodular function over the intersection of the same matroids. Moreover, if is order-oblivious, then so is the transformed algorithm for submodular MISP.
When algorithm has one of a few common properties, the result obtained by [19] can be improved. This is true also for the result given by Theorem 1.3. However, to avoid repeating large sections from [19], we give here only the basic result, and refer the reader to [19] for more information about these possible improvements.
1.2 Further related work
We highlight that for MISP on the intersection of matroids it is not hard to obtain an -competitive algorithm by bucketing the weights of the elements in many classes and greedily selecting only elements from one randomly chosen class.666See, for example, [17] for details about how to do the bucketing without knowing the maximum weight upfront. However, the thus obtained competitive ratio is typically far from optimal. Interestingly, Bateni et al. [7] obtained a generalization of this result achieving a competitive ratio of for MISP over the intersection of matroids even in the presence of a submodular objective function. In contrast, our framework implies an -competitive algorithm for the same setting.
Many variants of the secretary problem have been considered in the literature. In particular, different assumptions can be made on the order in which elements arrive and how weights are assigned to the elements. We recall that the secretary problem assumes a uniformly random arrival order and adversarial weights. Progress has been achieved under various other assumptions [43, 38, 29, 30]. Increased interest also arose in the secretary problem with nonlinear objectives, with a focus on the maximization of submodular functions [6, 7, 16, 25, 37, 19]. Moreover, a class of problems that are closely related to the secretary problem are prophet inequalities (see [33, 1, 14, 18] and references therein). For this setting, the authors recently introduced a framework, based on an online version of contention resolution schemes (see [10]), that allows for combining constraints [18]. However, despite the affinity between secretary problems and prophet inequalities, it is not clear how these techniques could be carried over to the secretary problem.
Finally, we want to highlight a nice survey by Dinitz [12] on MSP, which contains many further links to related results.
1.3 Organization of the paper
We start with some preliminaries in Section 2. In Section 3, we prove the key result that allows us to reduce a general MISP instance on the intersection of matroids to an instance where the intersection of the offline optima for the individual matroids contains an -fraction of the weight of an optimum offline solution for the original instance. Section 4 demonstrates how this result can be used to obtain strong secretary algorithms for MISP when we are given order-oblivious -competitive algorithms for MSP with respect to each single matroid, thus obtaining Theorem 1.1. In Section 5, we present a generalization of our framework that significantly weakens the requirement of the existence of an -competitive MSP algorithm for each single matroid, leading to a broadly applicable framework for MISP based on algorithms for MSP. Theorem 1.2 is one consequence of this framework. Appendix A shows how existing MSP algorithms can easily be adapted to our framework. Finally, Appendix B discusses submodular objective functions and proves Theorem 1.3.
2 Preliminaries
As highlighted in the introduction, we focus on order-oblivious algorithms in this paper, which is a benign assumption. Order-oblivious algorithms do not require the (full) random arrival assumption of the secretary problem, but only need to be able to observe a uniformly random subset of elements of a chosen cardinality, before starting to select any elements. To formalize this, we thus assume to work in the following order-oblivious secretary model.
Definition 2.1** (Order-oblivious secretary model).**
In the order-oblivious secretary model there are elements with unknown non-negative weights, and a down-closed constraint family given by an independence oracle, i.e., for any one can check whether . An algorithm in this model first specifies a number and requests a uniformly random sample of elements of (thereby, learning the weights of the sampled elements). This is called the sampling phase, and none of the elements observed during it can be selected. The algorithm then observes one-by-one (in adversarial order777Even though this is typically not of central importance, we highlight that the adversarial order may depend on the elements observed during the sampling phase, but is independent of potential random bits used by the algorithm.) the elements that do not belong to the sample. Whenever an element is observed, it reveals its weight and the algorithm has to decide immediately and irrevocably whether to select it. The set of all selected elements must be in , and the goal is to maximize the expected weight of the selected elements.
In the literature, different assumptions have been made about what is known upfront about the ground set and the constraint . The weakest assumption that is typically made, is that one only knows the number of elements, and that the independence oracle can only be called on elements that appeared so far. However, some algorithms in the literature make the stronger assumption that both and are fully known upfront. We use the weaker assumption as the default assumption for MSP, and we explicitly mention it whenever we rely on an algorithm needing the stronger one. Naturally, our MISP algorithms require access to the same information as required for the MSP algorithms they employ. In other words, when employing for a given matroid an MSP algorithm that relies on the default assumption, our algorithms need only an independence oracle for this matroid which can check the independence of sets consisting of elements that appeared so far; and when employing for a given matroid an MSP algorithm relying on full access to the matroid, then our algorithms also need full access to this matroid.
An important observation that we use is that if an algorithm in the order-oblivious secretary model sets the number of elements to be observed in the sampling phase randomly according to a binomial distribution , for some , then this corresponds to observing each element independently with probability . For brevity, we will sometimes simply say that an algorithm observes each element with probability during the sampling phase.
Finally, whenever we talk about an optimum solution, typically denoted by , we assume that does not contain any elements of weight [math]. Moreover, for simplicity we often use ‘’ and ‘’ to denote adding/removing a single element to/from a set. For example, .
3 Making optimal sets of different matroids overlap
In this section, we describe a key step in our framework: selecting (online) a weight function so that the optimal solutions of the different matroids have large overlap. As discussed in the introduction, this overcomes the issue that the optimal solutions of the matroids may have little overlap (if at all). Indeed, once the optimal solutions overlap, there is a natural way to combine -competitive algorithms for MSP as explained in the next sections.
The setting is as follows. We have matroids on a common ground set whose elements are weighted by . Recall that we assume that a consistent tie-breaking rule is used to compare elements of equal weights, and let us number the elements of by in such a way that, for every , either or and is considered larger according to the tie breaking rule. We also let denote the feasible sets in the intersection of the matroids. An important ingredient of our approach is the standard offline greedy algorithm:
- Initialize a partial solution . For , if then add to .
The set returned by the greedy algorithm after iterating through all the elements is well-known to be a -approximation when applied to the problem of finding a maximum weight common independent set in the intersection of matroids. When referring to the greedy algorithm we shall use the following notation:
Definition 3.1**.**
Let . We denote by the output of the greedy algorithm when run on the subset of the elements. We say that an element is greedy-relevant with respect to if . Moreover, we denote by all elements that are greedy-relevant with respect to .
We are now ready to present Algorithm 1 that takes as input a subset of the elements and defines a weight function on the remaining elements. We remark that Algorithm 1 can clearly be implemented in an online manner on the elements in since the weight of an element is only a function of and . We show below that, in expectation over the input set , the optimal solutions of with respect to have a large overlap.
One should think of the set supplied to Algorithm 1 as a “sample”. Indeed, in all our uses of this algorithm the set is obtained from elements arriving during the sample phase of an order-oblivious algorithm. Note that the “sampled” elements of receive a weight of [math]. This is important as it is indeed easy to define a weight function such that the optimal solutions overlap on already seen elements. The nice property of Algorithm 1 is that the weight function defined for each element as a function of is such that the optimal solutions with respect to have a large overlap despite containing only unseen elements from that our online algorithm can still select (recall that we assume that the optimal solution does not contain elements of weight [math]). For further reference, we summarize two useful properties of in the following observation.
Observation 3.2**.**
On input , Algorithm 1 defines a weight function satisfying (i) and (ii) if or is a loop in one of the matroids (i.e., is a dependent set in this matroid).
We now formally analyze the expected weight of the overlap of the optimal solutions with respect to when is a randomly chosen subset. Recall that is a function of the set (we do not explicitly write this dependency as the set that depends on will always be clear from the context). For , we let denote the distribution over subsets of where each element is included in the subset with probability independently of other elements. For notational convenience we also denote, for , by the (unique) maximum weight independent set in with respect to . Notice that, by definition and since we assume that the optimal solutions do not contain any elements of weight [math], we have that the optimal independent set of with respect to equals the optimal solution with respect to when only considering elements in . In particular, . We also let denote the maximum weight solution (with respect to ) in the intersection of the matroids . The main result of this section can now be stated as follows.
Theorem 3.3**.**
For ,
[TABLE]
(We remark that is a function of via .)
As , the above theorem implies that . The theorem follows from the following slightly stronger and more technical lemma. Let be the set containing the elements of highest weight.
Lemma 3.4**.**
Let , and let and be random variables defined by . Then,
[TABLE]
We prove this lemma in the next subsection. Let us now see how it implies Theorem 3.3.
Lemma 3.4 implies Theorem 3.3.
Substituting in Lemma 3.4 yields, for every ,
[TABLE]
As the elements of are ordered in a decreasing weight order according to , the last inequality implies . Additionally, we can observe that for every element , and thus, .
We complete the proof by showing that . For this purpose, let be the maximum weight set in which is independent in all the matroids. Then, we have
[TABLE]
Moreover, the greedy algorithm is a -approximation algorithm when applied to the intersection of matroids, which implies
[TABLE]
and the desired inequality follows by combining the last two inequalities. ∎
Proof of Lemma 3.4
To prove Lemma 3.4, we consider the offline algorithm given as Algorithm 2, which constructs sets and with a joint distribution identical to the random variables and in the statement of the lemma (recall that is the maximum weight independent set of restricted to greedy-relevant elements).
Without loss of generality, we prove Lemma 3.4 only for . The case of general then follows by considering a restricted ground set consisting only of the elements of . Indeed, it is clear from the description of Algorithm 2 that elements in do not affect the distributions of and .
For analysis purposes we extend Algorithm 2 to maintain additional sets and (for ). Algorithm 3 extends Algorithm 2 so as to describe how we maintain these sets (the changes are highlighted in gray for convenience). One can observe that the way each set is maintained, guarantees that throughout the execution of Algorithm 3 we have .
In the following, we denote by and the sets and at the end of iteration of the algorithm. Maintaining that for is independent in throughout the algorithm can thus be rephrased as for . Additionally, one can observe that the way is maintained also implies that the span of equals the span of . Thus, we have at Step 3 of Algorithm 3 whenever we have at Step 3, and therefore, the constructed set is always a subset of . We proceed to prove the inequality , which is stronger than the statement of the lemma.
For we define the events
[TABLE]
and let
[TABLE]
The following are two basic observations related to the above quantities.
[TABLE]
We further relate the above quantities by providing an upper bound on . More precisely, we will consider how changes over the iterations of the algorithm. The intuition why this quantity is of interest is as follows. Suppose that at some point during the algorithm for all , then the next element such that is put in with probability and put in with probability . This indicates that it is desirable for the quantity to be small. That we can upper bound this quantity in expectation follows from the fact that, if there is an element for which but would not be added to because for some , then we have (due to Step 3) that the quantity decreases in expectation if is chosen appropriately. We continue with the formal analysis. For we define
[TABLE]
where . To obtain a bound on , we study the changes . First, notice that if neither event happens nor , then , and the change is zero. Hence, by the law of total expectation, we have for
[TABLE]
Furthermore, for every such it holds that
[TABLE]
due to the following. Let . Hence, corresponds to , whereas corresponds to . If gets added to , which happens with probability , then in each for one element of is replaced by to obtain . Moreover, if does not get added to , which happens with probability , then is added to each with to obtain . Hence, overall we have
[TABLE]
where the expectation is only over the decision whether to add to or not. Equation (3) now follows by plugging into the above equality, and (4) follows by observing that, for , the above expression is maximized for .
We thus obtain
[TABLE]
Finally, by reordering terms (and using our previous observation that , and thus, ), we obtain the statement of Lemma 3.4 for as desired. Recall that this implies the lemma for all as discussed in the beginning of the proof.
4 Extending -selecting MSP algorithms to the intersection of matroids
In this section, we use the reduction presented in the previous section to combine algorithms for MSP. In order to achieve a good guarantee for the intersection of the matroids we make two assumptions on the considered single-matroid algorithms. As already discussed, we consider algorithms that are order-oblivious, and, in addition, we shall introduce the assumption of -competitiveness. These assumptions are easily satisfied by existing algorithms for MSP when the matroid is a partition, laminar or co-graphic matroid. To capture other algorithms in the literature (that are not -competitive) such as algorithms for graphic matroids, transversal matroids and the best known algorithm for general matroids, we generalize the framework in the next section. As the proofs in this section are rather clean, we believe that it serves as a good starting point and motivation before reading the more complex (and general) framework. In what follows, we first define -competitiveness, and then state and prove the main theorem of this section.
Definition 4.1** (-competitiveness).**
We say that an order-oblivious algorithm is --competitive if for any ,
[TABLE]
*where denotes the elements selected by when using the random bits , given the sample , and where the elements of arrive in the second phase according to the adversarial order that is allowed to depend on and the considered element . *
We remark that a --competitive algorithm is clearly -competitive, but the other direction may not hold. At first sight, -competitiveness perhaps seems like a less severe restriction than order-obliviousness. However, it turns out that most888In fact all current algorithms which are known to the authors can be made order-oblivious by losing at most a small constant factor in the competitive ratio. MSP algorithms are order-oblivious, but many are only -competitive and not --competitive. The generalization of the framework in the next section is therefore designed so as to relax the assumption of -competitiveness while we keep the rather benign assumption of order-obliviousness.
Having defined -competitiveness, the result of this section follows rather easily from our reduction in the previous section.
Theorem 1.1.
Consider matroids on a common ground set . Suppose that, for , there is an order-oblivious --competitive MSP algorithm on matroid . Then, there is an order-oblivious -competitive online algorithm for MISP on the intersection .
Proof.
Let denote the family of independent sets of matroid . We describe an order-oblivious algorithm for MISP on the intersection . At first we describe the sample phase of the algorithm (Steps 1 and 2 below) as if we could take several independent samples from the set , and we then explain how we can implement these steps by taking a single sample. The algorithm proceeds as follows:
Let , and let be a sample containing every element of with probability , independently. Observe that , and thus, we can use Algorithm 1 on to obtain a weight function on all the elements of that satisfies the properties of Observation 3.2 and Theorem 3.3. 2. 2.
For each , let be the number of elements samples, and let be a uniformly at random sample from of cardinality (if the number of elements samples is random, let be the outcome in the current execution of ). 3. 3.
Finally, let , and start the selection phase of the algorithms with the weight function . For each arriving remaining element (i.e., those elements that were not in any sample), add it to our solution (i.e., set ) if each one of the algorithms selects element .
We remark that the output is an independent set in the intersection of since each selects a set that is independent in and .
Before analyzing the expected weight of , we explain how to implement the algorithm in an order-oblivious fashion.
Claim**.**
The above algorithm can be implemented in the order-oblivious model.
Proof.
To implement the algorithm in the order-oblivious model, we need to turn the several samples made in Steps 1 and 2 into a single sample during the sample phase (and leave the selection phase, i.e., Step 3, untouched). Let and for be the cardinality of the sets. In addition, let , i.e., denotes cardinality of the intersection of with . Notice that the execution of Steps 1 and 2 produces a distribution over integers and an equivalent way of sampling would be to first sample according to , and then obtain by selecting elements uniformly at random from , by selecting elements uniformly at random from and elements from , by selecting elements uniformly at random from and elements uniformly at random from , and so on. We can thus implement the sampling phase order-obliviously as follows.
- •
Sample according to distribution .
- •
Take to be a uniformly at random set of cardinality (this is our single sample of the elements in the sample phase).
- •
Obtain by selecting elements from uniformly at random. Additionally, for every , obtain by selecting elements from and elements from uniformly at random. ∎
Having explained how to implement the algorithm, we proceed to analyze the expected weight of the returned set. By Theorem 3.3 in the previous section, we have (using that )
[TABLE]
where the expectation is taken over the sample . Recall that denotes the maximum weight independent set in with respect to weight function (not including elements of weight [math]), and denotes the maximum weight independent set in the intersection with respect to weight function . Let . We remark that, as for every element (see Observation 3.2), .
We shall analyze the expected weight by showing that, for a fixed sample , each element in is taken with a good probability:
Claim**.**
For each element ,
[TABLE]
where the probability is over the sets and the randomness used by the algorithms .
Proof.
By definition,
[TABLE]
where is the given order of the elements seen in the selection phase (Step 3), i.e., of the elements .999Strictly speaking, expects to see elements in the selection phase. This can be achieved by simply feeding the elements of to in any order at the end (without including any of them in our solution ). We can clearly lower bound this probability by selecting the worst-case order (even allowing a different order for each algorithm):
[TABLE]
where is an ordering of the elements in that is allowed to depend on and . The beauty of this lower bound is that now the execution of each algorithm becomes independent. Indeed,
[TABLE]
where the last equality follows since the samples are independent and the inequality follows since is --competitive (and ). ∎
By linearity of expectation, the above claim combined with (5) implies the theorem. ∎
Remark: The competitive ratio guaranteed by Theorem 1.1 (and our more general framework presented in Section 5) is exponential in even when are all constants. This is the result of the fact that we need to execute independently the algorithms for the individual matroids of the intersection. In many cases this can be avoided using the FKG inequality. More specifically, many algorithms for individual matroids have the property that the probability of an element to be selected can only increase as other elements are added to , and moreover, this probability approaches as the sample becomes very large. For such algorithms one can use a common very large sample, and get an algorithm which selects every given element in the intersection of the optimal solutions of the individual matroids with a significant probability. We omit the technical details, but note that this mode of employment of our ideas resembles the contention resolution schemes framework of [10]. Moreover, we would like to stress that there are examples of algorithms for MSP which do not have the above property—the most notable of which are the algorithms for general matroids of [4, 8, 17, 35].
5 A generalized framework to extend MSP algorithms to MISP
In Section 4 we have seen a simple version of our framework that works for algorithms that are -competitive. Unfortunately, many known algorithms for MSP are not -competitive, and there is no obvious way to make them -competitive. Definition 5.2 relaxes -competitiveness in a way that makes it include algorithms that are not -competitive due to two common issues. The first issue is that some algorithms occasionally select high weight non- elements early, and these elements then block them from selecting some elements later. Intuitively, this should not be an issue since the algorithm is guaranteed to select good elements instead of the elements of , however, this violates -competitiveness. The second issue is that some algorithms ignore very light elements of the optimal solution whose total contribution to the solution is minor.
Definition 5.2 is based on a slight extension of the order-oblivious secretary model which is presented by the following definition.
Definition 5.1**.**
We occasionally assume the existence of a “switching adversary” with the following power. Consider an execution of an order-oblivious algorithm for MSP on matroid . Every time after selects an element , the switching adversary immediately and irrevocably puts it in exactly one of two “sub-solutions” named and . The algorithm learns the decision of the switching adversary immediately after it is made, and must keep the sub-solution independent in , i.e., it cannot select an element if its addition to would violate ’s independence because the switching adversary may decide to add to this set. In contrast, the set (and also the union ) need not be kept independent.
Intuitively, one can think of the switching adversary as an adversary with the power to partially discard elements from the solution of the algorithm by assigning them to the sub-solution . In the context of -competitiveness, we want this discard to be meaningful only for non- elements. In other words, elements that are discarded by the switching adversary should still count towards the algorithm’s objective. The following definition formalizes this intuitive notion.
Definition 5.2**.**
Consider an order-oblivious algorithm for MSP on matroid with weight function which is executed against a switching adversary. Let be the heaviest element in , let and let —where is the maximum value in for which . Note that is not well-defined when , and thus, we assume in this case . Using these definitions, we say that is -weakly--competitive if, for every given switching adversary, there exists a random set , which is a function of the sample , the random bits of the algorithm, and the arrival order of the elements in the non-sample phase such that
[TABLE]
and
[TABLE]
Given the above discussed intuition, it is relatively easy to see that any --competitive algorithm is also -weakly--competitive with the set chosen as the set of elements selected by given the sample , the random bits and the arrival order . Conversely, any -weakly--competitive algorithm is -competitive in the absence of a switching adversary because one can think of the absence of a switching adversary as equivalent to a switching adversary placing all elements of ’s solution into .
Another class of algorithms that are not -competitive consists of algorithms that work by reducing their input problem into MSP on a simpler matroid for which there exists an -competitive algorithm. The next definition captures a wide range of algorithms of this kind. Our framework applies to any algorithm that can be made to fit into this definition.
Definition 5.3**.**
A -reduce-and-solve algorithm for MSP on matroid is a collection of the following three entities.
- •
A (possibly random) ground set with a function mapping every element of to a source element in . We call a refinement of , and say that the elements of refine the element of . Moreover, it must be possible to evaluate for every element that has been observed, and, for technical reasons, every element of must have at least one refinement element in .
- •
A (possibly random) matroid such that for every independent set of there exists a random set which is independent in and obeys
[TABLE]
Moreover, it must be possible to evaluate independence oracle queries with respect to for subsets containing only refinements of elements of that have already been observed.
- •
A -weakly--competitive algorithm for MSP on restrictions of to subsets of containing exactly one refinement element of every source element of . Moreover, this algorithm must have the extra property that is independent in the original matroid .101010In fact, we can even allow to be dependent in as long as is independent in . However, this is not necessary for any of the algorithms that are currently known to fall into our framework.
Technically, a -reduce-and-solve algorithm on matroid is not really a secretary algorithm on . However, our framework shows that it implies an -competitive secretary algorithm on . Moreover, every -weakly--competitive algorithm can be cast as a -reduce-and-solve algorithm by simply setting , and (with the function mapping elements of to being the identity function). We now state our main theorem.
Theorem 5.4**.**
Consider matroids with a common ground set . Suppose that, for , there is a -reduce-and-solve algorithm on matroid . Then, there is an order-oblivious algorithm for MISP on the intersection which is -competitive.
In the rest of this section our objective is to prove Theorem 5.4. We begin with the following simple observation. Let .
Observation 5.5**.**
The expected weight of the set is at least .
Proof.
Fix an arbitrary element . By definition, contains a refinement of with probability at least , which implies that contains with at least this probability. Since the membership of in each set is independent, we get that the probability that belongs to is at least . The observation now follows by the linearity of expectation. ∎
The following lemma generalizes results from Section 3. The proof of this lemma is based on a quite technical adaptation of the proofs of Observation 3.2 and Theorem 3.3, and is, thus, deferred to the next subsection.
Lemma 5.6**.**
There is an algorithm that given the matroids and a set for produces a weight function for all the elements of and a function for every such that
- •
* assigns each element of to one of its refinements in .*
- •
* for every , and whenever or is a loop in for some .*
- •
For every , let be the optimal set in the matroid with respect to a weight function assigning to each element of the weight . Then,
[TABLE]
where the expectation is over the randomness of .
We can now present the algorithm that we use to prove Theorem 5.4. The following description of the algorithm assumes that the algorithm can obtain multiple independent samples of elements from . This assumption can be lifted using the same technique used to remove this assumption from the algorithm presented in Section 4.
Let , and let be a sample containing every element of with probability , independently. Observe that , and thus, we can use the algorithm whose existence is guaranteed by Lemma 5.6 on to obtain the weight function and the functions whose properties are given by the lemma. 2. 2.
For each , let be the number of elements samples, and let be a uniformly random sample from of cardinality (if the number of elements samples is random, let be the outcome in the current execution of ). Then, for every such , pass as the sample to algorithm . 3. 3.
Finally, let be the output set of this algorithm, and start the selection phase of algorithms . For each arriving element which has not been seen yet (i.e., does not belong to any sample), pass to the algorithm for every with the weight . If all the algorithms select the elements they got, then add to and make the switching adversary of each algorithm put into the set . In contrast, if at least one of the algorithms rejects the element it got, then do not add to and make the switching adversary of every algorithm that accepts put into the set .
One can observe that for every the algorithm is executed on a restriction of to the subset . This means that, by the definition of a reduce-and-solve algorithm, that the sets are independent in the matroids , respectively. Moreover, one can observe that all these sets are in fact equal to , and thus, is independent in the intersection of these matroids. Thus, to prove Theorem 5.4 it only remains to analyze the competitive ratio of .
Let , where denotes the random bits of and is the order in which the elements are fed to algorithm in Step 3 of the above algorithm. It is useful to observe that every set obeys . In other words, is the inverse function of when the domain of is restricted to elements of . Additionally, we define the weight according to of an element in as equal to the weight of its source element in according to this weight function. Notice that this definition is consistent with the weights passed to the algorithms .
Lemma 5.7**.**
, where the expectation is over the samples and the random bits .
Proof.
Consider an arbitrary element , and observe that
[TABLE]
The rightmost hand side of the above equality can be lower bounded by replacing the orders induced by Step 3 of our algorithm with worst case orders that are allowed to depend on and (but not on the random bits ). Thus, we get
[TABLE]
Since the random bits of each algorithm are independent of the random bits of the other algorithms , we get that for every the membership of the element in the set is independent of this membership for other values of (given that and are all considered deterministic). Plugging this observation into the above lower bound on , we get
[TABLE]
where the last equality holds since is a function of the sample , which is independent of the sample for every ; and the last inequality follows from the facts that is -weakly--competitive and . Using the linearity of expectation, we now get
[TABLE]
It remains to show that
[TABLE]
If , then we are done. Otherwise, for every , let , and let be one of the values maximizing . Since , we get that and that is not a loop of for any . One corollary of these observations is that is one of the candidates to be the first element of when this optimal set is constructed by the greedy algorithm. Since the greedy algorithm picks , we get that , which can coexist with the definition of only when . In other words, we have proved that for every . Hence, , where the inclusion holds because cannot be in . This already proves Inequality (6) when . Hence, we may assume from now on .
For ease of the reading, let us denote . One can observe that the definition of implies that is either empty or contains all the elements of whose weight according to is below some threshold. Thus, there must exist some such that for every . Using this observation, we get
[TABLE]
where the last inequality holds by the definition of . Note that this completes the proof of Inequality (6) since we assume . ∎
It turns out that the weights of and can be related.
Lemma 5.8**.**
.
Proof.
Fix . The fact that is -weakly--competitive implies that
[TABLE]
Recall that , which implies . Thus,
[TABLE]
where the first and last inequalities hold since —which implies the inclusion .
We now observe that if an element belongs to the set for every , then this means that each one of the algorithms accepted its corresponding element , which implies that is also a member of . Thus, we can lower bound by
[TABLE]
where the second inequality follows from Inequality (7). Rearranging Inequality (8), we get
[TABLE]
The lemma now follows by observing that the left hand side of the last inequality is upper bounded by . ∎
We are now ready to prove Theorem 5.4.
Proof of Theorem 5.4.
Recall that the output of our algorithm is independent in by the above discussion. Additionally,
[TABLE]
where the first inequality holds since for every element , the second inequality holds due to Lemma 5.8, the third due to Lemma 5.7, the fourth due to Lemma 5.6 and the last due to Observation 5.5. ∎
Proof of Lemma 5.6
We begin the proof of the lemma by presenting the algorithm whose existence it guarantees. This algorithm assumes that, for every matroid and element , there exists a fixed order over the refinements of . This order should be independent of . However, if there is no natural candidate for this order, one can simply use a uniformly random order. The first component of the guaranteed algorithm is the generalization of the greedy algorithm given as Algorithm 4. This generalization uses to denote the collection of independent sets of .
Like in the case of the standard greedy algorithm, we define an element as greedy-relevant with respect to if and only if . Recall that is the set of elements that are greedy-relevant with respect to . For a greedy-relevant element we also denote by the element of which is added to by . Using this notation we can now give, as Algorithm 5, the promised algorithm whose existence is guaranteed by Lemma 5.6.
The following observation can be immediately deduced from Algorithm 5. This observation corresponds to Observation 3.2 from Section 3.
Observation 5.9**.**
On input , Algorithm 5 defines a weight function and functions for every satisfying:
- •
* maps every element of to one of its refinements in .*
- •
.
- •
* whenever or is a loop in for some .*
To prove Lemma 5.6 it remains to show that
[TABLE]
where the expectation is over the randomness of , and is the optimal set in the matroid with respect to a weight function assigning to each element of the weight . For that purpose we need to describe an equivalent way to get the functions defined by Algorithm 5. Consider the following extended ground set.
[TABLE]
For every element we define as the element of in . We now extend each matroid to the ground set by treating every element as equivalent to . More formally, for every matroid we define as a matroid over such that a set is independent in if and only if the set is independent in and, additionally, there are no two distinct elements such that . Note that the second condition is a technical condition necessary for guaranteeing that is indeed a matroid because it ensures that applying the function to every element of an independent set of maps the set to an independent set of of the same size. We also need an additional partition matroid over in which a set is independent if and only if for every element .
We extend the weights function to in the natural way, i.e., the weight of an element is defined by . In the rest of this section, whenever we refer to the greedy algorithm or to greedy-relevant elements, we assume that the greedy algorithm is executed with respect to the weight function and the constraint defined by the intersection of the matroids and . Additionally, we assume that the greedy algorithm uses a tie breaking rule which is consistent with the orders mentioned above within the refinements of every element . More specifically, consider two distinct arbitrary elements and of such that and are both refinements of the same element for every . Then, we assume that the greedy algorithm breaks ties between and in favor of whenever it holds that, for every , is either equal to or appears before . Given these assumptions, one can observe that Algorithm 6 defines the same functions and as Algorithm 5.
Recalling that contains every element of with probability , one can observe that Algorithm 7 is an offline algorithm which constructs sets and with a joint distribution identical to the random variables and . This algorithm uses to denote the collection of independent sets of .
At this point we observe that Algorithm 7 is very similar to Algorithm 2. In particular, it is similar enough for the proof from Section 3 of the inequality
[TABLE]
to carry over, with only technical modifications, also to Algorithm 7. Additionally, let be a subset of obtained by picking for every element an element such that for every . Observe that , and is independent in for every since is independent in ( is also independent in by construction). Moreover, since has the same distribution as the output of the greedy algorithm on , and the greedy algorithm is a -approximation algorithm when its constraint is the intersection of matroids, we get
[TABLE]
where the expectation is over the choice of . Combining this inequality with Inequality (9), we get
[TABLE]
which completes the proof of Lemma 5.6.
Appendix A Algorithms for specific classes of matroids
In this appendix we describe algorithms for MSP on various specific classes of matroids. All the algorithms we give here can be fitted into our framework. Moreover, the competitive ratio of the algorithm we describe for every class matches up to a (small) constant the state of the art competitive ratio for MSP on this class of matroids.
A.1 Partition matroids
In a (generalized) partition matroid the ground set is the disjoint union of multiple partitions , and each partition is associated with a positive integer parameter . A set is independent in such a matroid if and only if for every . A particularly interesting class of partition matroids is the class of simple partition matroids, in which the parameters are all equal to (i.e., an independent set may include at most one element from each partition of the ground set). Azar et al. [1] give an order-oblivious -competitive secretary algorithm on rank matroids, and this algorithm can be easily extended to simple partition matroids since the selection of an element from each partition of a simple partition matroid can be done independently. Nevertheless, for the sake of completeness we give here explicitly, as Algorithm 8, the algorithm obtained for simple partition matroids. This algorithm has a parameter , which is a probability to be determined later. Additionally, the algorithm uses the notation to denote the partition of element .
One can observe that Algorithm 8 is an order-oblivious algorithm which always outputs a solution set which is independent in the simple partition matroid, and moreover, it can be implemented using only independence oracle queries on sets of elements that already arrived. Thus, we concentrate here on analyzing the competitive properties of Algorithm 8.
Theorem A.1**.**
Algorithm 8 is a --competitive order-oblivious algorithm for MSP on simple partition matroids. Hence, for it is --competitive.
Proof.
We begin the proof by noting that the way is defined as a uniformly random subset of of size , where is distributed according to the binomial distribution , implies that contains every element of with probability , independently.
Consider now an arbitrary element , where is the maximum weight independent set of the simple partition matroid. Note that the weight of is the largest weight of any element in because otherwise we could improve by replacing with a heavier element of its partition. There are now two cases to consider. We begin with the case that contains other elements beside , and let be the heaviest element in . Observe that in this case Algorithm 8 is guaranteed to take when and because the presence of in prevents any element of other than itself from being selected by the algorithm. Moreover, this happens with probability by the above discussion regarding the distribution of . It remains to consider the case that contains only . In this case Algorithm 8 selects whenever , which happens with probability . ∎
The above theorem implies, by the discussion in Section 5, the following corollary.
Corollary A.2**.**
For , Algorithm 8 is a -weakly--competitive order-oblivious algorithm for MSP on simple partition matroids. Moreover, it implies a -reduce-and-solve algorithm for this problem.
We now shift our attention to the more general class of (generalized) partition matroids. The MSP algorithm we give for this class is Algorithm 9. This algorithm denotes by the partition of element , and by the parameter associated with this partition.
Once again, one can observe that Algorithm 8 is an order-oblivious algorithm which always outputs a solution set which is independent in the partition matroid. The following observation shows that, additionally, Algorithm 8 can be implemented using only independence oracle queries on sets of elements that already arrived.
Observation A.3**.**
Algorithm 9 can be implemented using only independence oracle queries on sets of elements that already arrived.
Proof.
Let us consider the arrival of an arbitrary element during the second (non-sample) phase of Algorithm 9. This arrival requires the algorithm to check a few conditions. One of these conditions is whether , which can be checked by simply checking whether is independent since itself is always independent. Implementing the other conditions is somewhat more involved. Let be the maximum weight independent set in . Notice that can be found using the greedy algorithm. If is independent, then we get that , which allows us to implement the other conditions of the algorithm (notice that is not well-defined in this case, which is fine because in this case we do not need it for evaluating the condition of the if statement on Line 9). Consider now the case that is not independent. In this case we have . Moreover, is the lightest element of , other than itself, whose removal restores the independence of . ∎
It remains to analyze the competitive properties of Algorithm 9.
Theorem A.4**.**
Algorithm 9 is a --competitive order-oblivious algorithm for MSP on partition matroids.
Proof.
Like in the proof of Theorem A.1, we have here also that contains every element of with probability , independently. Consider now an arbitrary element , where is the maximum weight independent set of the partition matroid. Note that contains the elements of with the largest weights (unless there are less than elements in of non-zero weight, in which case simply consists of all these elements) because otherwise we could improve by replacing one of its elements in with a heavier element from this partition.
Let us define now two events. The event is the event that , and the event is the event that one of the following happens:
- •
, and there are less than elements in whose weight is larger than .
- •
is not defined since , and .
One can observe that the events and imply together that is selected by Algorithm 9. Thus, it is enough to prove that . Moreover, since it clearly holds that , it remains to show that .
We prove the last inequality by showing that, conditioned on , if does not happen when is equal to some set , then it must happen when ; which implies the inequality since it implies that, given , holds for at least one half of the possible values for (and each of these values happens with equal probability). Hence, in the rest of the proof we assume that happens, and concentrate on a set such that does not happen when . We first observe that whenever is well-defined (i.e., ), then the fact that happened (and thus —which is an element of —does not belong to ) implies that is not an element of since it is defined as the element with the -th largest weight in . In particular, we get that the inequality holds whenever is well defined. We now need to consider two cases.
- •
If , then the fact that did not happen implies that . This means that when then is well defined, and thus, Additionally, we have in this case , which implies that the total number of elements in is less than , and thus, the number of elements in this set whose weight is larger than must also be less than . Combining all the above, we get that happens when .
- •
It remains to consider the case that . In this case is well defined when , and thus, we have by the above discussion. Since does not happen when , this implies that contains at least elements whose weight is larger than , where is the element which becomes when . If we now denote by the element that becomes when , then the above observation implies . Moreover, by definition, there are less than elements in whose weight is larger than , and thus, when there are less than elements in whose weight is larger than . Hence, we get that happens when . ∎
The above theorem implies, by the discussion in Section 5, the following corollary.
Corollary A.5**.**
Algorithm 9 is a -weakly--competitive order-oblivious algorithm for MSP on partition matroids. Moreover, it implies a -reduce-and-solve algorithm for this problem.
A.2 Graphic matroids
A graphic matroid is defined by a graph whose edges form the ground set of the matroid. A set of edges is independent in the graphic matroid if and only if it is acyclic. Azar et al. [1] explain how to get a -competitive order-oblivious algorithm for the secretary problem on graphic matroids based on an algorithm of [34]. Unfortunately, this algorithm is not known to be -competitive (or even weakly--competitive) for any constant. However, it can be easily adapted to be a -reduce-and-solve algorithm. Here we present a different reduce-and-solve algorithm for this problem which has different values for the parameters. It is important to note that both the algorithms of [1, 34] and our algorithm assume more than independence oracle access to the graphic matroid. Specifically, they assume the ability to determine the endpoints for every given edge .
The reduce-and-solve algorithm we suggest for the graphic matroid consists of the following components:
- •
The ground set consists of two elements for every edge . These elements are denoted by and , where and are the end points of . Accordingly, the function assigns to be the source element for both and . Note that it is possible to evaluate given access to alone.
- •
The matroid is a simple partition matroid over the ground set containing a single partition for every node of . The partition of a node , which we denote by , contains the elements —where denotes the set of edges of hitting .
- •
The order-oblivious algorithm for MSP on restrictions of is given by Algorithm 10. This algorithm denotes by the ground set of the restriction on which it is applied. Additionally, one can note that, aside from notational issues, this algorithm is identical to Algorithm 8 except for the change in Line 10 preventing an element from being added to if that addition will result in a cycle in .
One can note that the output set of Algorithm 10 is independent in , and moreover, is independent in the original graphic matroid. Thus, is a valid reduce-and-solve algorithm for graphic matroids. It remains, however, to determine the parameters of this algorithm. The next lemma shows that for this algorithm.
Lemma A.6**.**
For every independent set of the graphic matroid, there exists an independent set of such that for every edge .
Proof.
We assume for the sake of simplicity that the edges of induce a connected graph. If that is not the case, then the proof has to be applied separately for every connected component of .
Fix a root node for the graph induced by , and let us denote for every edge by the end point of which is further away from . Note that is well defined since the independence of implies that the graph induced by is a tree. We now define . Clearly, we have by definition for every edge . Additionally, must be independent in because otherwise there must be two distinct edges such that , and this leads to a contradiction as it implies that contains two different paths from to (). ∎
The next lemma gives values for the two other parameters of .
Lemma A.7**.**
Algorithm 10 is a --competitive algorithm for MSP on restrictions of . Hence, for it is --competitive.
Proof.
Consider now an arbitrary element , where is the maximum weight independent set of the input restriction of . Let be the event that Algorithm 10 gets to Line 10 with (i.e., Algorithm 10 adds to unless this creates a cycle in ), and moreover, is the first element of with which Algorithm 10 gets to Line 10. Following the same argument as in the proof of Theorem A.1, we get that the probability of is at least . In the rest of the proof we show that there exists an event which is independent of , has a probability of at least and implies that the addition of to does not create a cycle in . Note that the lemma follows from the existence of such an event.
Let be the end point of which is not , and let be the heaviest element in . We define as the event that . If does not exist, i.e., , then we simply assume happens always. Note that depends only on elements of the partition , and thus, it is independent of which depends on an element of . It remains to explain why implies that the addition of to does not create a cycle in . Assume towards a contradiction that this is not the case, and consider the connected component of in after the addition of to . Algorithm 10 adds to at most one element from each partition of a node of . Moreover, implies that no element from the partition of is added to , and thus, the number of elements in from partitions of nodes of must be strictly less than the number of such nodes. Since every edge in corresponds to at least one element of belonging to the partitions of the nodes of , we get also that the number of edges in is strictly less than the number of nodes in it. However, this is a contradiction since is, by definition, a connected component containing a cycle. ∎
Corollary A.8**.**
For , is a -reduce-and-solve algorithm for MSP on graphic matroids.
A.3 Column-sparse linear matroids
A linear matroid is a matroid defined by a matrix over a field . The ground set of this matroid is the set of columns of , and a set of columns is independent in this matroid if and only if the columns of the set are independent as linear vectors. Graphic matroids can be represented as linear matroids defined by a matrix containing at most two non-zero values in each column. Motivated by this observation, Soto [43] studies MSP on linear matroids defined by a matrix with at most non-zero values in each column, where is an arbitrary constant, and describes a -competitive algorithm for this problem. Like the state of the art algorithm for graphic matroids, this algorithm is not order-oblivious, but it can be made order-oblivious at the cost of a small loss in the competitive ratio (specifically, it deteriorates to ). Moreover, this order-oblivious version of the algorithm is not known to be -competitive (or even weakly--competitive) for any constant, but it can be easily adapted to be a -reduce-and-solve algorithm. Here we take a different approach, and adapt the reduce-and-solve algorithm given above for graphic matroids to this more general setting, which results in a reduce-and-solve algorithm with different values for the parameters. It is important to note that both the algorithm of [43] and our algorithm assume more than independence oracle access to the matroid. Specifically, they assume the ability to determine, given a column of the matrix , the rows in which this column has non-zero values.
The reduce-and-solve algorithm we suggest for MSP on linear matroids defined by a matrix containing at most non-zero values in each column consist of the following components:
- •
The ground set is defined as , where is the set of rows in which the column has non-zero values. Additionally, the function assigns every element to its corresponding column . Note that it is possible to evaluate given access to the column alone.111111Technically, for to be a valid reduce-and-solve algorithm we need to guarantee that is not empty for every . This does not happen when some columns contain only zero values, and thus, we need to create a dummy element for every such column , add it to , set and make a loop element of . For simplicity, we ignore this technical issue.
- •
The matroid is a partition matroid over the ground set containing a single partition for every row of . The partition of row , which we denote by , contains the elements .
- •
The order-oblivious algorithm for MSP on restrictions of is given by Algorithm 11. Like Algorithm 10, this algorithm denotes by the ground set of the restriction on which it is applied. Moreover, one can note that, aside from notational issues, this algorithm is identical to Algorithm 8 except for the change in Line 11 preventing an element from being added to if already contains an element from one of the partitions associated with the other rows in which has a non-zero value.
The following lemma implies that is a valid reduce-and-solve algorithm for MSP on linear matroids defined by a matrix containing at most non-zero values in each column.
Lemma A.9**.**
The set , where is the output set of Algorithm 11, is always independent in the original linear matroid.
Proof.
Assume towards a contradiction that this is not the case, and let be an arbitrary cycle in . Additionally, let be the first element that was added to such that . We observe that must contain a second column containing the row —otherwise, the removal of from could not make an independent set, as required by the definition of as a cycle. Next, let us denote by an element of such that . When arrived the solution already contained the element which belongs to the partition . Note that this leads to a contradiction since Algorithm 11 is guaranteed not to add to if there is already an element in from one of the partitions associated with rows in which has a non-zero value, and is one of these rows. ∎
It remains to determine the parameters of as a reduce-and-solve algorithm. The next lemma shows that for this algorithm.
Lemma A.10**.**
For every independent set of the original linear matroid, there exists an independent set of such that for every column .
Proof.
Consider a bipartite graph in which one side consists of the columns of , the other side consists of the rows of and there is an edge between a given pair of a column and a row if and only if . Soto [43] observed that, since is independent, there must be a matching in this graph covering all columns of . This follows from Hall’s theorem since the independence of implies that contains at least rows for every subset of . Using the matching , we can now define
[TABLE]
Since this is a matching, contains at most a single element from each partition of , and is, thus, independent in . Additional, for every column , the set contains all the element of , and thus, has a non-empty intersection with . ∎
The next lemma gives values for the two other parameters of .
Lemma A.11**.**
Algorithm 11 is a --competitive algorithm for MSP on restrictions of . Hence, for it is --competitive.
Proof.
Consider now an arbitrary element , where is the maximum weight independent set of the input restriction of . Let be the event that Algorithm 11 gets to Line 11 with (i.e., Algorithm 11 adds to unless already contains an element from some partition of associated with a different row in which takes a non-zero value), and moreover, is the first element of with which Algorithm 11 gets to Line 11. Following the same argument as in the proof of Theorem A.1, we get that the probability of is at least . In the rest of the proof we show that there exists an event which is independent of , has a probability of at least and implies that no element is ever added to from the partitions associated with rows other than in which takes a non-zero value. Note that the lemma follows from the existence of such an event.
For every row , let denote the heaviest element in . We define as the event that for every row having . Note that depends only on elements of the partition , and thus, it is independent of which depends on elements from other partitions. Additionally, the probability of is at least since every element of belongs to with probability , independently. It remains to observe that implies that, for every row associated with a non-empty partition , the heaviest element of the partition appears within the sample , and this prevents Algorithm 11 from adding to any elements of this partition. ∎
Corollary A.12**.**
For , is a -reduce-and-solve algorithm for MSP on linear matroids defined by a matrix containing at most non-zero values in each column.
A.4 Co-graphic matroids
A co-graphic matroid is defined by a graph whose edges form the ground set of the matroid. A set of edges is independent in the co-graphic matroid if and only if their removal from does not increase the number of connected components in . Alternatively, as implied by its name, the co-graphic matroid can also be defined as the dual matroid of the graphic matroid defined by . Soto [43] describes a procedure that given a co-graphic matroid outputs a random simple partition matroid such that every element belonging to the optimal solution in the original co-graphic matroid also belongs to the optimal solution of the new simple partition matroid with probability .
Soto [43] used his procedure to get a -competitive algorithm for MSP on co-graphic matroids by applying a -competitive MSP algorithm on the simple partition matroid produced by the procedure. Unfortunately, the algorithm obtained this way is not order-oblivious because the -competitive algorithm for MSP on simple partition matroids is not order-oblivious (or more accurately, it is not -competitive when the arrival order in the second phase is adversarial). This issue can be fixed by using instead of this algorithm the --competitive order-oblivious algorithm for MSP on simple partition matroids given by Algorithm 8. This gives us the following result.
Theorem A.13**.**
There exists a --competitive order-oblivious algorithm for MSP on co-graphic matroids.
Proof.
Let us denote the input co-graphic matroid by and the maximum weight independent set of this matroid by . In this proof we consider an algorithm that executes the procedure of [43] on , to get a random simple partition matroid such that every element of belongs to the optimal solution for with probability . Then, it executes Algorithm 8 on . We observe that, by Theorem A.1, every element that belongs to the optimal solution of is selected by Algorithm 8 with probability at least . Combining this with the properties of [43]’s procedure, we get that every element ends up in the output of the above algorithm with probability at least . ∎
It is worth to mention that the algorithm whose existence is guaranteed by the above theorem, like the original algorithm of [43] for co-graphic matroids, requires full access to the co-graphic matroid from the beginning. In other words, the algorithm knows the graph from the beginning, but learns the weight of every edge only when it arrives. Additionally, the above theorem implies, by the discussion in Section 5, the following corollary.
Corollary A.14**.**
There exists a -weakly--competitive order-oblivious algorithm for MSP on co-graphic matroids, and this implies a -reduce-and-solve algorithm for this problem.
A.5 Transversal matroids
A transversal matroid is defined by a bipartite graph in which the ground set forms one side. A set of nodes is independent in the transversal matroid if and only if there exists a matching in whose edges hit all nodes of . A few algorithms with constant competitive ratios have been suggested for MSP on transversal matroids. The first such algorithm was described by [11], and was later simplified and improved by [34]. Both the original algorithm of [11] and the improved algorithm of [34] are order-oblivious, but are not known to be -competitive (or even weakly--competitive) for any constant. In a later work, Kesselheim et al. [31] came up with a very different algorithm for MSP on transversal matroids. The algorithm of [31] achieves an optimal competitive ratio of , but is, unfortunately, not order-oblivious.
Given the above survey of existing results, one can observe that currently there is no algorithm for MSP on transversal matroids known to be order-oblivious and --competitive for any constant . Thus, we have no choice but to directly define here a reduce-and-solve algorithm for transversal matorids. We assume that , like all the above mentioned algorithms for transversal matroids, knows the nodes of and also gets to know all the edges hitting a node when this node arrives. The components of are given as follows:
- •
The ground set is the set of edges of the graph , and the function assigns every edge to the single node of it hits. Note that for every it is possible to evaluate after the arrival of .121212Technically, for to be a valid reduce-and-solve algorithm we need to guarantee that is not empty for every . This does not happen when there are nodes hitted by no edges, and thus, we need to create a dummy element for every such node , add it to , set and make a loop element of . For simplicity, we ignore this technical issue.
- •
The matroid is a simple partition matroid over the ground set containing a single partition for every node of . The partition of a node , which we denote by , contains the edges hitting it.
- •
We need an order-oblivious algorithm for MSP on restrictions of containing exactly one edge from for every node . Moreover, we need to have the extra property that, if we denote by its output set, then is always independent in the original transversal matroid. Fortunately, we observe that in this case this extra property is meaningless because any independent set of such a restriction must be a matching of (no two edges in it hit a node by the definition of the restriction, and no two edges in it hit a node since it is independent in ), which implies that is independent in the original transversal matroid. Hence, we can choose as any order-oblivious algorithm for MSP on simple partition matroids, and we choose it to be Algorithm 8.
It remains to determine the parameters of the reduce-and-solve algorithm . The fact that Algorithm 8 is --competitive by Theorem A.1 implies that and . The next lemma shows that the last parameter () takes the value for this algorithm.
Lemma A.15**.**
For every independent set of the transversal matroid, there exists an independent set of such that for every node .
Proof.
Since is independent, there must be a matching in whose edges hit all nodes of . Let be this matching. Note that, for every node , the set contains all edges hitting , and thus, it must have a non-empty intersection with the matching which contains such an edge by definition. ∎
Corollary A.16**.**
* is a -reduce-and-solve algorithm for MSP on transversal matroids.*
A.6 Laminar matroids
Consider a collection of subsets of a ground set and an upper bound for every subset . One can define that a subset is independent if and only if for every . It turns out that this way to define independence results in a matroid whenever the subsets of are laminar, i.e., any two subsets in are either disjoint or one of them contains the other. The matroid obtained this way is called a laminar matroid.
Ma et al. [37] describe a -competitive algorithm for MSP on laminar matroids which can be implemented using only independence oracle queries on sets of elements that already arrived. Moreover, the algorithm of [37] is order-oblivious, and its analysis by [37] shows that there exists a random set that depends only on the sample of the algorithm such that: is a subset of the output of the algorithm for every adversarial order in the second phase of the algorithm, and contains every element of with probability at least (where is the maximum weight independent set in the laminar matroid). Combining these facts with our terminology, we get the following theorem.
Theorem A.17**.**
The algorithm of [37] for MSP on laminar matroids is a --competitive order-oblivious algorithm (and thus, also -weakly--competitive). Moreover, it implies a -reduce-and-solve algorithm for this problem.
A.7 Regular and max-flow min-cut matroids
In this section we show how our framework captures regular and max-flow min-cut matroids.
A regular matroid is a matroid that can be represented as a linear matroid (over the field ) using a totally unimodular matrix (see Subsection A.3 for a definition of linear matroids). We recall that a matrix is totally unimodular (TU) if and only if the determinant of every square submatrix of is either , [math], or . An equivalent definition of a regular matroid is that a matroid is regular if and only if it can be represented as a linear matroid over any field (in fact, the representation by a TU matrix works simultaneously over any field). We refer the interested reader to [39] for more information on regular matroids.
Dinitz and Kortsarz [13] presented a -competitive algorithm for MSP on regular matroids, assuming that the matroid is known upfront, which we assume throughout this subsection. In a preprocessing step, before observing or selecting any elements, their algorithm constructs a random matroid with the following properties:
- (i)
and , i.e., each independent set of is independent in . 2. (ii)
For each independent set , there is a random set , where the randomness is also over the random construction of , such that
[TABLE] 3. (iii)
The matroid is a disjoint union of graphic and co-graphic matroids. Hence, there is a partition of the ground set , where , and matroids for such that
- •
is graphic or co-graphic for each ,
- •
.
In words, the matroid can be interpreted as a more restrictive version of , leading to a much simpler structure, but losing a factor of at most in terms of the maximum weight independent set. The MSP algorithm of [13] first constructs the matroid , and then simply applies in parallel a -competitive algorithm for all graphic matroids in the decomposition and a -competitive algorithm for all co-graphic matroids. A direct analysis would lead to a competitive ratio of , which follows from the factor loss incurred due to (ii) multiplied by the competitive ratio of for co-graphic matroids. The competitive ratio of obtained in [13] follows by a more careful analysis. We briefly address this in a comment at the end of this subsection.
To obtain a reduce-and-solve algorithm for regular matroids, we can simply first construct the matroid with the above properties as described in [13], and then run in parallel our previously-described reduce-and-solve algorithms for graphic and co-graphic matroids. A technicality we have to watch out for, is to make sure that we stay in the order-oblivious model. More precisely, when running order-oblivious secretary algorithms in parallel, then each algorithm may want to query a certain number of elements of its ground set during the sampling phase. However, to make sure that the algorithm which corresponds to the parallel run of several algorithms is still order-oblivious, we can only decide about uniformly random elements that will be sampled overall. There are different ways around this problem. One simple way to resolve this is to make sure that both algorithms we use for graphic and for co-graphic matroids observe, during their sampling phase, each element of their ground set with probability (or any other common value within ). This way, we can simply observe each element of the combined ground set with probability . Our -reduce-and-solve algorithm for co-graphic matroids already has this property. The algorithm we suggested for graphic matroids (see Corollary A.8) observes each element with probability . However, we can run the same algorithm for , which, by Lemma A.7, leads to a slightly weaker -reduce-and-solve algorithm for graphic matroids that observes each element with probability in the sampling phase. Hence, by running these algorithms in parallel, we obtain a -reduce-and-solve algorithm for any matroid that is a disjoint union of graphic and co-graphic matroids. Moreover, we loose a factor of due to the reduction to the matroid . It is not hard to observe that the reduction to done at the beginning of the algorithm can be interpreted as part of the reduce-and-solve algorithm, leading to a -reduce-and-solve procedure.
Theorem A.18**.**
There is a -reduce-and-solve algorithm for MSP on regular matroids.
Furthermore, it was shown in [13] that their technique naturally extends to a generalization of regular matroids, known as max-flow min-cut matroids (see [42] for a formal definition). The approach is analogous to the one used for regular matroids, with the difference that instead of losing a factor of through the reduction to , a factor of is lost. By the same reasoning as above we therefore get.
Theorem A.19**.**
There is a -reduce-and-solve algorithm for MSP on max-flow min-cut matroids.
Remark: The algorithms presented in [13] do the reduction from to in two steps. In a first step, a matroid is obtained that is a disjoint union of graphic, co-graphic, and one additional simple type of matroid, which depends on whether is a regular or a max-flow min-cut matroid. This reduction only loses a factor of . In a second step, the additional type of matroid is reduced to a graphic matroid at a loss of either for regular matroids or for max-flow min-cut matroids. However, this additional loss is compensated by the fact that the competitive ratio of graphic matroids is better than for co-graphic matroids, leading to an overall competitiveness of for regular matroids and max-flow min-cut matroids. With a similar analysis we could also avoid losing a factor of for regular matroids and for max-flow min-cut matroids, respectively. For clarity we decided to present here a slightly weaker, but simpler, reduction.
A.8 General matroids
In this section we describe a weakly--competitive algorithm for MSP on a general matroid constraint which is based on the algorithm of [17] for MSP. We begin by recapping some of the details of the last algorithm.
One can interpreted the algorithm of [17] as an algorithm getting two parameters and , and then defining weight classes by
[TABLE]
After defining these weight classes, the algorithm executes one of two procedures, which, for simplicity, we simply call Procedure A and Procedure B. More precisely, the algorithm decides at the beginning at random, with well-defined probabilities, which of the two procedures to run. For simplicity, we can assume that each one of the two procedures is chosen with probability . This is not the probability employed in [17], but the change in the probability only changes the guarantee of the algorithm by a constant factor. For the interested readers, we note that the algorithm of [17] is parameterized by a parameter which is chosen uniformly at random. What we denote as Procedure A is the algorithm obtained by choosing uniformly at random within , whereas Procedure B corresponds to letting the algorithm of [17] run with .
Both Procedure A and Procedure B first observe a subset containing each element of with probability (equivalently, is a sample elements, where is distributed according to the binomial distribution B(|N|,$$\nicefrac{{1}}{{2}}$$)). Then, they select elements of in a way that we describe later. The following is a key quantity in the analysis of both procedures.
[TABLE]
where is the union of all the classes .
Selection by Procedure A.
Based on , Procedure A randomly constructs a matroid , with and , and then greedily accepts any appearing element that, together with the already accepted elements, forms an independent set in . The key power of Procedure A is that has the following property for every and .
[TABLE]
where the probability is with respect to the randomness of and the random construction of . We recall that an element is free in a matroid if it is not spanned by all the other elements together. Hence, a free element can be added to any independent set without destroying independence. Consequently, a free element in is always selected by Procedure A, regardless of the order in which the elements of appear.
Selection by Procedure B
Like Procedure A, Procedure B also randomly constructs a matroid based on with and , and then greedily selects appearing elements, maintaining an independent set in . However, the properties of are different. The first property that has is that it is a disjoint union of matroids, where each one of the matroids is defined over for a different . Consequently, the selection of an element of for some does not affect the set of elements that can be select from for any . The second property of is that it has a random independent set such that
[TABLE]
where the probability is, again, with respect to the randomness of and the random construction of .
We now would like to run Procedures A and B against a switching adversary. The switching adversary places each element selected by the procedures into one of two sets and , and we assume that Procedure X (where is either or ) adds an arriving element to the solution if and only if the addition of this element to will not destroy the independence in of . Observe that always remains independent in since . The following lemma shows that we already have an algorithm which is close to be weakly--competitive.
Lemma A.20**.**
Executing Procedures A or B, with probability each, against a switching adversary satisfies the following inequality.
[TABLE]
where is a set, depending only on and the random coins used by the procedures, containing each element of with probability at least .
Proof.
First, we define to be the set of elements of which are either free in if Procedure A is applied or appear in if Procedure B is applied. According to the properties of Procedures A and B described above, the probability of every element of to belong to is at least
[TABLE]
There are now two cases to consider. If Procedure A is executed, then all the elements of are selected because they are free elements of , which implies . Hence, we get
[TABLE]
Consider now the case that Procedure B is executed, and recall that is independent in and has the property that the selection of elements from one class does affect the possibility to select elements from the other classes. These facts imply that if we denote the set of elements of which are not selected by , then there must be at least elements from which appear in and prevented the selection of the elements of . Since the weights of all the elements of are equal up to a factor of , this implies
[TABLE]
Using this inequality we can now get
[TABLE]
There are still a few issues that we need to take care of in order to get a true weakly--competitive algorithm. Specifically, we need to find a way to set values for and , and we need to guarantee that all the elements of outside the weight classes belong to . Algorithm 12 takes care of these issues.
Remark: Technically, as given, Algorithm 12 is not order-oblivious since it requests the sample set , and then Procedures A and B might require a second sample from . However, since the event that these procedures require a second sample is independent of the content of , this technical issue can be fixed by taking a larger sample (containing every element of with probability ) when a second sample is necessary, and then splitting it randomly into the two samples. We omit the very technical details of the split.
Observe that the definition of a weakly--competitive algorithm requires nothing in the case that . Thus, we may assume in the rest of this section, for simplicity, that . Let us now introduce some additional notation. Recall that is the heaviest element in , and let be the second heaviest non-loop element in (the first must be itself). Next, let be the event that , and Algorithm 12 gets to Line 12 (if does not exist, i.e., contains only one non-loop element, then we drop the requirement from the definition of ). Additionally, let be the event that , and Algorithm 12 gets to Line 12. It is easy to see that . Bounding the probability of is more involved, and it is done by the next lemma.
Lemma A.21**.**
Fix any element . Then, .
Proof.
The event requires both that belongs to and that Algorithm 12 gets to Line 12. Each one of these conditions holds with probability , independently, and the second of them is also independent of . Thus,
[TABLE]
where the penultimate equality holds since is an independent set, and the last equality holds since each element belongs to with probability , independently. It remains to prove that
[TABLE]
which is equivalent to
[TABLE]
Observe that
[TABLE]
Thus, Inequality (10) can be rewritten as
[TABLE]
To see why this inequality is true, we observe that can be viewed as the sum of independent random variables taking values from the set , which implies by Lemma 2.3 of [5] that the left hand side of the last inequality is upper bounded by
[TABLE]
Let be a set which takes a value depending on the events and . When happens . When happens , where is the set whose existence is guaranteed by Lemma A.20 for the execution of Procedures A or B on the matroid (recall that implies that Algorithm 12 gets to Line 12, and thus, executes one of the Procedures A or B). Finally, when neither nor happen, we define to be the empty set. We observe that is a function of the random bits used by Algorithm 12 and Procedures A and B and on the samples used by these algorithms.
Lemma A.22**.**
When Algorithm 12 is executed against a switching adversary the following inequality is satisfied:
[TABLE]
Proof.
The lemma is trivial when . Thus, we only need to consider the cases that either or happen. Let us consider first the case that occurs. By definition, implies . Additionally, one can observe that it also implies that is set to (when exists), and thus, it guarantees that Algorithm 12 picks when it gets to Line 12. Hence, implies , and we get
[TABLE]
Consider now the case that occurs. In this case we have, by Lemma A.20,
[TABLE]
Since , the last inequality implies
[TABLE]
Lemma A.23**.**
For every element ,
[TABLE]
Proof.
There are two cases to consider. First, consider the case that . Observe that, by the definition of ,
[TABLE]
It remains to consider the case that . Note that this case implies , and let us prove that the inequality must hold in this case. Assume towards a contradiction that this inequality does not hold, and recall that contains all the elements of whose weight is at most some threshold , where the threshold is selected to be the maximal threshold in such that the total weight of is less than . By our assumption and the fact that , we get
[TABLE]
Hence, setting the threshold to would have kept the total weight of no larger than , and thus, must be at least as large as . However, this leads to a contradiction since the fact that implies .
Next, let us denote by the optimal solution of , and consider now what happens when the event happens and . These events imply together a few things. First, implies that since . Second, we get that since an element which belongs to the maximum weight independent set of a matroid must also belong to the corresponding set in every restriction of the matroid containing it. Finally, we also get , which implies that belongs to one of the weight classes because any element belongs to these classes if its weight is at most and larger than
[TABLE]
By Lemma A.20, the above observations imply together that, conditioned on and , contains with probability , where the equality holds since
[TABLE]
Since is a subset of when happens, this yields
[TABLE]
where the last inequality follows from Lemma A.21. ∎
Combining Lemmata A.22 and A.23, we get the following corollary.
Corollary A.24**.**
Algorithm 12 is a -weakly--competitive algorithm for MSP. Hence, there exists a -reduce-and-solve algorithm for this problem.
Appendix B Submodular MISP
In this section we prove our reduction from the submodular version of MISP to its linear version, i.e., Theorem 1.3. This proof is an extension of an approach used in [19], which implied a reduction from submodular MSP to linear MSP. Throughout this section, let for be matroids on a common ground set , and let be a nonnegative submodular function over . We start by stating some properties of the greedy algorithm for (offline) submodular function maximization (SFM). We recall that the greedy algorithm for SFM over some constraint family , which, in our case, will be , is defined analogously as in the case of a linear function , and thus works as follows:
Start with the empty set . As long as there is an element such that , choose such an element maximizing and add it to . As soon as no such element exists anymore, return .
As in the case of linear objective functions, we denote by , or when we want to be more specific by , the set returned by the greedy algorithm. Moreover, for sets we use the notation for the marginal value of with respect to .
Moreover, following the approach in [19], we use convolutions of . More precisely, for a vector , the function is defined by
[TABLE]
This is a well-known construction in the field of submodular optimization, and leads to a function with many interesting properties. In particular, if is nonnegative submodular and , then is also a nonnegative submodular function. For more information, we refer the interested reader to the discussion in [19] and references therein.
We note that, for simplicity, we do not present here the strongest possible analysis. In particular, we present the submodular to linear reduction independently of our framework for MISP. One could merge this reduction with the procedure we use in the design of MISP algorithms to make the optimal solutions overlap, and this way obtain better competitive ratios.
B.1 The algorithm to reduce submodular MISP to linear MISP
The algorithm we suggest is identical to the one used in [19] with the only exception that we deal with matroid intersection constraints instead of a single matroid constraint. Algorithm 13 repeats the algorithm presented in [19] adjusted to our context. We denote by an -competitive algorithm for the linear MISP problem over . Algorithm 13 describes how, after having observed each element with probability , the remaining elements get passed to in a black-box way. To best match our description to the one used in [19], Algorithm 13 is described in the random arrival model, where elements arrive one-by-one in a uniformly random random. However, it is clear from its description that Algorithm 13 is an order-oblivious reduction, in the sense that it can be used with any order-oblivious algorithm in an order-oblivious model. Notice that the set constructed in Algorithm 13 is the set of greedy-relevant elements with respect to , i.e., .
For simplicity, our description of Algorithm 13 only passes elements to which are not part of the sample . Strictly speaking, this would require that remains -competitive even if only a subset of all elements of the ground set are passed to it. However, this can easily be resolved by also passing the elements of to in a uniformly random order, such that the appearance order of any element of is uniformly at random. This reasoning is analogous to the one we used in Section 3 as part of our MISP to MSP reduction.
In the rest of this section, we prove the theorem below, which shows that this reduction indeed allows for obtaining a guarantee on the competitive ratio for Submodular MISP from the -competitiveness of . Moreover, Theorem B.1 implies our main theorem on Submodular MISP (Theorem 1.3).
Theorem B.1**.**
By choosing in Algorithm 13, we obtain
[TABLE]
B.2 Analysis of Algorithm 13
The following lemma is a slight generalization of Lemma 3 in [25], the only difference being that is not assumed to be normalized (i.e., ).131313Moreover the Lemma in [25] is stated for -independence systems, which is a generalization of the intersection of matroids. Since we only need the statement for the intersection of matroids, we state it here in this form for simplicity. The proof presented in a long version [26] of the paper [25] easily carries over to non-normalized functions, and we therefore do not repeat it here.
Lemma B.2** (See [26]).**
The solution returned by the greedy algorithm for the maximization of a nonnegative submodular function over the intersection of matroids satisfies
[TABLE]
Lemma B.2 immediately implies that for monotone submodular functions , the greedy algorithm is a -approximation algorithm (a fact which was known since the late 1970’s [21]). However, analogously to the approach in [19], we want to obtain results for nonmonotone submodular function maximization, and it is well known that the greedy algorithm is not a constant-factor approximation algorithm for such objectives even on a single matroid constraint. The following is a generalization of Lemma IV.3 of [19], which was originally presented in the context of applying the greedy algorithm to a single matroid constraint, to the intersection of matroids. It shows that letting the greedy algorithm run on a randomly sampled subset provides approximation guarantees even for nonmonotone SFM. Again, the proof is identical with the only difference that we invoke Lemma B.2 for a general instead of .
Lemma B.3** (see [19]).**
Let be a random set containing every element of with probability , independently, then
[TABLE]
Notice that the set constructed in Algorithm 13 is indeed obtained by applying to a random subset of containing each element of with probability , independently. Lemma B.3 thus implies the following.
Corollary B.4**.**
[TABLE]
The proof of the following two lemmata from [19] do not depend on being the independent sets of a matroid, and therefore, also hold in our setting.
Lemma B.5** (Lemma IV.5 of [19]).**
[TABLE]
Lemma B.6**.**
[TABLE]
The following observation is implied by the fact that is -competitive for linear objectives. The term denotes here the maximum weight independent subset of with respect to the weight function .
Observation B.7** (Observation IV.7 of [19]).**
[TABLE]
The next lemma is a generalization of Lemma IV.8 in [19] from one to matroids. This lemma is a key element of the reduction, and it needs to be adjusted to the setting of matroids.
Lemma B.8**.**
[TABLE]
Proof.
Similar to the way we proceeded in Section 3, we define Algorithm 14, which is an extended version of Algorithm 13. More precisely, Algorithm 14 produces sets and with the same joint distribution as the ones constructed by Algorithm 13. Moreover, Algorithm 14 also constructs a set satisfying , and which we use to show that is large through the inequality . The main difference compared to Algorithm 3, which we used in Section 3 to prove a related result, is that the sets are only updated when we add an element to either or . The proof now closely follows the reasoning of the proof of Lemma IV.8 in [19].
Consider an arbitrary element processed by Algorithm 14, and fix all history up to that point. Let , , and for be the sets , , and at that moment. Notice that, since we fixed the history, the weight of is no longer a random variable.
We are interested in studying the expected increase in and following the processing of . If or , then the expected increase in the weight of both sets is [math]. Now, consider the case where and . The expected increase in is equal to because gets added to with probability . The expected increase in depends on whether for all . If this is the case, then the expected increase in is equal to because gets added to with probability . Otherwise, if there is a such that , then the expected increase in is [math]. To compensate for this, we charge in this case units to the element that is removed from in line 14 if gets added to . If several elements from different sets (for different ) get removed, we only charge one arbitrarily chosen element among them. It is important to note that we do this charging regardless of whether actually ends up being added to or not. In summary, if is such that and , then the expected increase of is and we either have an expected increase of for or increase the load of an element by . Let be the total load that an element obtains through this process. Notice that is a random variable. By the above explanation we have
[TABLE]
We now analyze how large the expectation of all charged values is. For this observe that only elements in get charged, because we only charge elements that may be removed from a set in line 14 of Algorithm 14; hence, these are elements that are not part of but are contained in at that moment of the algorithm. Since contains a subset of elements of and , the element must be contained in . Now, consider an element . Whenever Algorithm 14 considers an element that, if added to , would lead to being removed from at least one set for , then has a probability of to be removed from (the probability of to be added to ). Thus, for a fixed , the number of times that will be charged due to is upper bounded by a random variable with geometric distribution of parameter . Moreover, notice that , whenever we consider an element that leads to being charged, which follows by the fact that the weights of considered elements are non-increasing in Algorithm 14. Hence, the expected load of element due to a conflict in is upper bounded by . Since there are sets due to which can be charged, we obtain the following overall bound on the expected load on an arbitrary element :
[TABLE]
Using the above bound in (11), we finally obtain
[TABLE]
and the result follows from . ∎
Combining Observation B.7 and Lemma B.8 we obtain the following.
Corollary B.9**.**
[TABLE]
The following proposition corresponds to Proposition IV.10 in [19] with the only difference that we obtain a different factor on the right-hand side in front of due to the fact that its proof is based on Corollary B.4 and Corollary B.9 which we use for general instead of . Otherwise, the proof is identical, and we therefore refer the interested reader to [19] for further details.
Proposition B.10** (See Proposition IV.10 in [19]).**
If for some value , then
[TABLE]
The following observation, which is Observation IV.11 from [19], shows that the above proposition can always be applied with .
Observation B.11** (Observation IV.11 in [19]).**
[TABLE]
Finally, we obtain Theorem B.1, which implies our main result (Theorem B.1) as discussed above.
Theorem B.1.
By choosing in Algorithm 13, we obtain
[TABLE]
Proof.
By Observation B.11, we can choose in Proposition B.10. The theorem now follows by plugging in and in the inequality stated in Proposition B.10, and simplifying the resulting expression by using and , which leads to
[TABLE]
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] P. D. Azar, R. Kleinberg, and S. M. Weinberg. Prophet inequalities with limited information. In Proceedings of the 25th Annual ACM -SIAM Symposium on Discrete Algorithms (SODA) , pages 1358–1377, 2014.
- 2[2] M. Babaioff, N. Immorlica, D. Kempe, and R. Kleinberg. A knapsack secretary problem with applications. In Proceedings of the 10th International Workshop on Approximation, Randomization, and Combinatorial Optimization (APPROX) , pages 16–28, 2007.
- 3[3] M. Babaioff, N. Immorlica, D. Kempe, and R. Kleinberg. Online auctions and generalized secretary problems. SI Gecom Exchanges , 7(2):7:1–7:11, 2008.
- 4[4] M. Babaioff, N. Immorlica, and R. Kleinberg. Matroids, secretary problems, and online mechanisms. In Proceedings of the 18th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA) , pages 434–443, 2007.
- 5[5] Ashwinkumar Badanidiyuru and Jan Vondrák. Fast algorithms for maximizing submodular functions. In Proceedings of the Twenty-Fifth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA) , pages 1497–1514, 2014.
- 6[6] S. Barman, S. Umboh, S. Chawla, and D. Malec. Secretary problems with convex costs. In Proceedings of International Colloquium on Automata, Languages, and Programming (ICALP) , pages 75–87, Berlin, Heidelberg, 2012. Springer-Verlag.
- 7[7] M. H. Bateni, M. T. Hajiaghayi, and M. Zadimoghaddam. Submodular secretary problem and extensions. ACM Transactions on Algorithms , 9(4):32:1–32:23, 2013.
- 8[8] Sourav Chakraborty and Oded Lachish. Improved competitive ratio for the matroid secretary problem. In Proceedings of the Twenty-Third Annual ACM-SIAM Symposium on Discrete Algorithms (SODA) , pages 1702–1712, 2012.
