In combinatorics, a greedoid is a type of set system. It arises from the notion of the matroid, which was originally introduced by Whitney in 1935 to study planar graphs and was later used by Edmonds to characterize a class of optimization problems that can be solved by greedy algorithms. Around 1980, Korte and Lovász introduced the greedoid to further generalize this characterization of greedy algorithms; hence the name greedoid. Besides mathematical optimization, greedoids have also been connected to graph theory, language theory, order theory, and other areas of mathematics.
A set system is a collection of subsets of a ground set (i.e. is a subset of the power set of). When considering a greedoid, a member of is called a feasible set. When considering a matroid, a feasible set is also known as an independent set.
An accessible set system is a set system in which every nonempty feasible set contains an element such that
X\setminus\{x\}
A greedoid is an accessible set system that satisfies the exchange property:
X,Y\inF
|X|>|Y|,
x\inX\setminusY
Y\cup\{x\}\inF.
(Note: Some people reserve the term exchange property for a condition on the bases of a greedoid, and prefer to call the above condition the “augmentation property”.)
A basis of a greedoid is a maximal feasible set, meaning it is a feasible set but not contained in any other one. A basis of a subset of is a maximal feasible set contained in .
The rank of a greedoid is the size of a basis. By the exchange property, all bases have the same size.Thus, the rank function is well defined. The rank of a subset of is the size of a basis of . Just as with matroids, greedoids have a cryptomorphism in terms of rank functions.A function
r:2E\to\Z
X,Y\subseteqE
e,f\inE
r(X)\le|X|
r(X)\ler(Y)
X\subseteqY\subseteqE
r(X)=r(X\cup\{e,f\})
r(X)=r(X\cup\{e\})=r(X\cup\{f\})
Most classes of greedoids have many equivalent definitions in terms of set system, language, poset, simplicial complex, and so on. The following description takes the traditional route of listing only a couple of the more well-known characterizations.
An interval greedoid is a greedoid that satisfies the Interval Property:
A,B,C\inF
A\subseteqB\subseteqC,
x\inE\setminusC:
Equivalently, an interval greedoid is a greedoid such that the union of any two feasible sets is feasible if it is contained in another feasible set.
An antimatroid is a greedoid that satisfies the Interval Property without Upper Bounds:
Equivalently, an antimatroid is (i) a greedoid with a unique basis; or (ii) an accessible set system closed under union. It is easy to see that an antimatroid is also an interval greedoid.
A matroid is a non-empty greedoid that satisfies the Interval Property without Lower Bounds:
It is easy to see that a matroid is also an interval greedoid.
In general, a greedy algorithm is just an iterative process in which a locally best choice, usually an input of maximum weight, is chosen each round until all available choices have been exhausted.In order to describe a greedoid-based condition in which a greedy algorithm is optimal (i.e., obtains a basis of maximum value), we need some more common terminologies in greedoid theory.Without loss of generality, we consider a greedoid with finite.
A subset of is rank feasible if the largest intersection of with any feasible set has size equal to the rank of .In a matroid, every subset of is rank feasible.But the equality does not hold for greedoids in general.
A function
w:E\to\R
\{x\inE:w(x)\geqc\}
An objective function
f:2S\to\R
S
X\subseteqS,
w:S\to\Re.
Proposition. A greedy algorithm is optimal for every R-compatible linear objective function over a greedoid.
The intuition behind this proposition is that, during the iterative process, each optimal exchange of minimum weight is made possible by the exchange property, and optimal results are obtainable from the feasible sets in the underlying greedoid. This result guarantees the optimality of many well-known algorithms. For example, a minimum spanning tree of a weighted graph may be obtained using Kruskal's algorithm, which is a greedy algorithm for the cycle matroid. Prim's algorithm can be explained by taking the line search greedoid instead.