ArticleslgStudy

computer science

Greedoid

Greedoid is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Greedoid rather than just read about it. In short: 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.

Greedoid — main illustration
Greedoid — illustration

Key takeaways

  • Greedoid belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Greedoid to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Greedoid from memory before moving on to harder problems.

Reference excerpt

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.

Definitions A set system (F, E) is a collection F of subsets of a ground set E (i.e. F is a subset of the power set of E). When considering a greedoid, a member of F is called a feasible set. When considering a matroid, a feasible set is also known as an independent set. An accessible set system (F, E) is a set system in which every nonempty feasible set X contains an element x such that X∖{x} is feasible. This implies that any nonempty, finite, accessible set system necessarily contains the empty set ∅. A greedoid (F, E) is a finite accessible set system that satisfies the exchange property:

for all X,Y∈F with |X|>|Y|, there is some x∈X∖Y such that Y∪{x}∈F. (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 X of E is a maximal feasible set contained in X. 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 X of E is the size of a basis of X. Just as with matroids, greedoids have a cryptomorphism in terms of rank functions. A function r:2E→ℤ is the rank function of a greedoid on the ground set E if and only if r is subcardinal, monotonic, and locally semimodular, that is, for any X,Y⊆E and any e,f∈E we have:

subcardinality: r(X)≤|X| monotonicity: r(X)≤r(Y) whenever X⊆Y⊆E local semimodularity: r(X)=r(X∪{e,f}) whenever r(X)=r(X∪{e})=r(X∪{f})

Classes 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 (F, E) is a greedoid that satisfies the Interval Property:

if A,B,C∈F with A⊆B⊆C, then, for all x∈E∖C: A∪{x}∈FC∪{x}∈F⟹B∪{x}∈F. 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 (F, E) is a greedoid that satisfies the Interval Property without Upper Bounds:

if ⁠A,B∈F⁠ with ⁠A⊆B,⁠ then, for all ⁠x∈E∖B,⁠ ⁠A∪{x}∈F⁠ implies ⁠B∪{x}∈F.⁠ 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 (F, E) is a non-empty greedoid that satisfies the Interval Property without Lower Bounds:

if ⁠B,C∈F⁠ with ⁠B⊆C,⁠ then, for all ⁠x∈E∖C,⁠ ⁠C∪{x}∈F⁠ implies ⁠B∪{x}∈F.⁠ It is easy to see that a matroid is also an interval greedoid.

Examples

Consider an undirected graph G. Let the ground set be the edges of G and the feasible sets be the edge set of each forest (i.e. subgraph containing no cycle) of G. This set system is called the cycle matroid. A set system is said to be a graphic matroid if it is the cycle matroid of some graph. (Originally cycle matroid was defined on circuits, or minimal dependent sets. Hence the name cycle.) Consider a finite, undirected graph G rooted at the vertex r. Let the ground set be the vertices of G and the feasible sets be the vertex subsets containing r that induce connected subgraphs of G. This is called the vertex search greedoid and is a kind of antimatroid. Consider a finite, directed graph D rooted at r. Let the ground set be the (directed) edges of D and the feasible sets be the edge sets of each directed subtree rooted at r with all edges pointing away from r. This is called the line search greedoid, or directed branching greedoid. It is an interval greedoid, but neither an antimatroid nor a matroid. Consider an m × n matrix M. Let the ground set E be the indices of the columns from 1 to n and the feasible sets be F={X⊆E: submatrix M{1,…,|X|},X is an invertible matrix}. This is called the Gaussian elimination greedoid because this structure underlies the Gaussian elimination algorithm. It is a greedoid, but not an interval greedoid.

Greedy algorithm 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 G = (F, E) with E finite. A subset X of E is rank feasible if the largest intersection of X with any feasible set has size equal to the rank of X. In a matroid, every subset of E is rank feasible. But the equality does not hold for greedoids in general. A function w:E→ℝ is R-compatible if {x∈E:w(x)≥c} is rank feasible for all real numbers c. An objective function f:2S→ℝ is linear over a set S if, for all X⊆S, we have f(X)=∑x∈Xw(x) for some weight function w:S→ℜ. 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.

See also Matroid Polymatroid

References

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Greedoid

Start with the simplest possible case. Write down what Greedoid claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Greedoid before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Greedoid ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Greedoid

In research
Greedoid appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Greedoid in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Greedoid is common in secondary-school and first-year university syllabi. It links to neighbouring topics Combinatorial optimization, Families of sets, Greedy algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for Greedoid outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Greedoid” →

How to study Greedoid in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Greedoid means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Greedoid out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Greedoid in simple terms?

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.

Why does Greedoid matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Greedoid?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Greedoid.

Tags

  • Combinatorial optimization
  • Families of sets
  • Greedy algorithms
  • Order theory

Keep exploring