GYO algorithm
The GYO algorithm is an algorithm that applies to hypergraphs. The algorithm takes as input a hypergraph and determines if the hypergraph is α-acyclic. If so, it computes a decomposition of the hypergraph.
The algorithm was proposed in 1979 by Graham and independently by Yu and Özsoyoğlu, hence its name.
01Definition
A hypergraph is a generalization of a graph. Formally, a hypergraph consists of a set of vertices V, and of a set E of hyperedges, each of which is a subset of the vertices V. Given a hypergraph, we can define its primal graph as the undirected graph defined on the same set of vertices, in which we put an edge between any two vertices which occur together in some hyperedge.
A hypergraph H is α-acyclic if it satisfies two conditions: being chordal and being conformal. More precisely, we say that H is chordal if its primal graph is a chordal graph. We say that H is conformal if, for every clique of the primal graph, there is a hyperedge of H containing all the vertices of the clique.
The GYO algorithm takes as input a hypergraph and determines if it is α-acyclic in this sense.
02Principle of the algorithm
The algorithm iteratively removes the so-called ears of the hypergraph, until the hypergraph is fully decomposed.
Formally, we say that a hyperedge e of a hypergraph is an ear if one of the following two conditions holds:
is isolated, i.e., for every other hyperedge
, we have
;
is almost covered by another hyperedge, i.e., there exists another hyperedge
such that all vertices in
occur only in
.
In particular, every edge that is a subset of another edge is an ear.
The GYO algorithm then proceeds as follows:
- Find an ear e in H.
- Remove e and remove all vertices of H that are only in e.
If the algorithm successfully eliminates all vertices, then the hypergraph is α-acylic. Otherwise, if the algorithm gets to a non-empty hypergraph that has no ears, then the original hypergraph was not α-acyclic:
The GYO algorithm ends on the empty hypergraph if and only if H isAssume first the GYO algorithm ends on the empty hypergraph, let be the sequence of ears that it has found, and let
the sequence of hypergraphs obtained (in particular
and
is the empty hypergraph). It is clear that
, the empty hypergraph, is
-acyclic. One can then check that, if
is
-acyclic then
is also
-acyclic. This implies that
is indeed
-acyclic.
For the other direction, assuming that is
-acyclic, one can show that
has an ear
. Since removing this ear yields an hypergraph that is still acyclic, we can continue this process until the hypergraph becomes empty.
Sources and credits
This article is adapted from the Wikipedia article “GYO algorithm”, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.
Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.