Misplaced Pages

GYO algorithm

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
This article relies largely or entirely on a single source. Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources.
Find sources: "GYO algorithm" – news · newspapers · books · scholar · JSTOR (December 2023)

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.

Definition

A hypergraph is a generalization of a graph. Formally, a hypergraph H = ( V , E ) {\displaystyle H=(V,E)} 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.

Principle 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 H {\displaystyle H} is an ear if one of the following two conditions holds:

  • e {\displaystyle e} is isolated, i.e., for every other hyperedge e {\displaystyle e'} , we have e e = {\displaystyle e\cap e'=\emptyset } ;
  • e {\displaystyle e} is almost covered by another hyperedge, i.e., there exists another hyperedge f {\displaystyle f} such that all vertices in e f {\displaystyle e\setminus f} occur only in e {\displaystyle e} .

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 is α {\displaystyle \alpha } -acyclic

Assume first the GYO algorithm ends on the empty hypergraph, let e 1 , , e m {\displaystyle e_{1},\ldots ,e_{m}} be the sequence of ears that it has found, and let H 0 , , H m {\displaystyle H_{0},\ldots ,H_{m}} the sequence of hypergraphs obtained (in particular H 0 = H {\displaystyle H_{0}=H} and H m {\displaystyle H_{m}} is the empty hypergraph). It is clear that H m {\displaystyle H_{m}} , the empty hypergraph, is α {\displaystyle \alpha } -acyclic. One can then check that, if H n {\displaystyle H_{n}} is α {\displaystyle \alpha } -acyclic then H n 1 {\displaystyle H_{n-1}} is also α {\displaystyle \alpha } -acyclic. This implies that H 0 {\displaystyle H_{0}} is indeed α {\displaystyle \alpha } -acyclic.

For the other direction, assuming that H {\displaystyle H} is α {\displaystyle \alpha } -acyclic, one can show that H {\displaystyle H} has an ear e {\displaystyle e} . Since removing this ear yields an hypergraph that is still acyclic, we can continue this process until the hypergraph becomes empty.

References

Notes

  1. Yu, C.T.; Ozsoyoglu, M.Z. (1979). "An algorithm for tree-query membership of a distributed query". COMPSAC 79. Proceedings. Computer Software and the IEEE Computer Society's Third International Applications Conference, 1979. pp. 306–312. doi:10.1109/CMPSAC.1979.762509.
  2. Brault-Baron, Johann (2014-03-27). "Hypergraph Acyclicity Revisited". arXiv:1403.7076 . See Theorem 6 for the existence of an ear
Categories: