Gray Codes for AT-Free Orders
Jou-Ming Chang, Ton Kloks, Hung-Lung Wang

TL;DR
This paper presents a method to generate AT-free vertex orders in graphs efficiently, enabling faster algorithms for processing such graphs.
Contribution
It introduces a novel algorithm that produces AT-free orders in constant amortized time, improving upon previous methods.
Findings
AT-free orders can be generated in constant amortized time
The method improves efficiency for processing AT-free graphs
Potential applications in graph algorithms and optimization
Abstract
AT-free graphs are characterized by vertex elimination orders. We show that these AT-free orders of a graph can be generated in constant amortized time.
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
TopicsAdvanced Graph Theory Research · Coding theory and cryptography · graph theory and CDMA systems
11institutetext: Institute of Information and Decision Sciences
National Taipei University of Business, Taipei, Taiwan
(spade,hlwang)@ntub.edu.tw
Gray Codes for -Free Orders††thanks: A preliminary version “Gray codes for -free orders via antimatroids” was presented in the 26th International Workshop on Combinatorial Algorithms (IWOCA 2015), Verona, Italy.
Jou-Ming Chang 11
Ton Kloks
Hung-Lung Wang 11
Abstract
-free graphs are characterized by vertex elimination orders. We show that these -free orders of a graph can be generated in constant amortized time.
1 Introduction
-free graphs are those that do not have an asteroidal triple — that is — -free graphs do not have three vertices of which every pair is connected by a path that avoids the neighborhood of the third.
Broersma et al. [2] introduced the following ‘betweenness relation’ to characterize -free graphs. Let be an -free graph. For a vertex let denote its neighborhood and let denote its closed neighborhood; . A vertex is between and if there is a path from to that avoids and similarly there is a path from to that avoids .
Let stand for the set of vertices that are between and . Then a graph is -free if and only if for any three vertices , and the following property holds.
[TABLE]
A set system is a pair where is a finite set and is a collection of subsets of . The elements of will be called convex. The problem to determine for which set systems a greedy algorithm optimizes linear objective functions has a long history — for a brief overview see eg Helman et al. [7] For set systems that are convex geometries Kashiwabara and Okamoto [8] characterize linear programming problems for which a greedy algorithm finds an optimum.
A convex geometry is a set system that satisfies the following properties.
- (1.)
and . 2. (2.)
is closed under intersections. 3. (3.)
The anti-exchange property holds, that is, for all convex sets and ,
[TABLE]
For some interesting ‘prospective applications’ of convex geometries in cloud computing we refer to Kordecki [9].
Let be an -free graph. Define a set system on as the collection of convex sets in — where a set is convex if it contains with any two of its elements the elements that are between them.
In the following section we show that the collection of convex sets in an -free graph constitutes a convex geometry. This completes the result of Alcón et al. [1] who proved a similar result for interval graphs.
2 -free convex geometries
A set system which satisfies and which is closed under intersections is called an alignment by Edelman and Jamison [6]. They show that an alignment satisfies the anti-exchange property if and only if either one of the following two properties holds.
- (1.)
For any and the element is extreme in — that is — is convex. 2. (2.)
Any convex set , , has an element such that is convex.
The following definition allows us to characterize convex geometries with a third property (which is equivalent to the characterization [6, Theorem 2.3]).
Definition 1
Let be an alignment, let and let . Let . The set induces a cycle on if for all
[TABLE]
Lemma 1
An alignment is a convex geometry if and only if any set which induces a cycle on a set is contained in .
All proofs we skip here can be found in the appendix. We proceed to prove that the convex sets in an -free graph constitute a convex geometry via the following three lemmas. (Some easily-made drawings might be helpful to the reader.)
Lemma 2
Let be an -free graph. Any four vertices satisfy the following property.
[TABLE]
Lemma 3
Let be an -free graph. Any five vertices satisfy the following property.
[TABLE]
(In [3] Chvatál describes a subclass of convex geometries by a property similar to Lemma 3.) A component of a graph is a maximal subset of vertices of which every pair is connected by a path.
Lemma 4
Let be an -free graph. Let and let . Assume that and that no subset of induces a cycle on . If — for all — there exist such that then
[TABLE]
Theorem 2.1
Let be an -free graph. The convex sets in constitute a convex geometry on .
3 Generating -free orders
When is a convex geometry then is an antimatroid and this defines all antimatroids — here we write
[TABLE]
Crapo [5] characterizes formal languages that are antimatroids as follows.
Definition 2
A language is an antimatroid if its words satisfy the following properties.
- (1.)
Every symbol of the alphabet occurs in at least one word. 2. (2.)
Every word of contains at most one copy of every symbol in the alphabet. 3. (3.)
Every prefix of a word in is in . 4. (4.)
If and if contains at least one symbol that is not in then there is a symbol such that .
— Observe that — when is the language whose words are prefixes of -free orders of a graph then is an antimatroid. The basic words of are those of maximal length which are the -free orders.
Definition 3
A linear order of the vertices of a graph is an -free order if any three vertices satisfy the following property.
[TABLE]
A graph is -free if and only if it has an -free order [4].
Pruesse and Ruskey [11, 12] considered the problem of producing a Gray code for the basic words of an antimatroid.
Let be an antimatroid. Consider the graph whose vertices are the basic words of two vertices being adjacent when one is obtained from the other by a transposition of an adjacent pair. The prism is obtained from two copies ( and ) of this graph and the addition of edges joining copies of similar vertices. Pruesse and Ruskey show that this prism is Hamiltonian for all antimatroids. Their generic algorithm generates all the basic words of in the order of a Hamiltonian traversal of the prism — whilst reporting only the (transpositions in the) copies.
Assume that a graph is connected and -free. Let be a vertex such that the number of vertices in the largest component of is as large as possible. Let be a largest component of and let and . When is not a clique then is a partition of .
By our choice of every vertex of is adjacent to every vertex of — that is — is a module, hence, convex. Since is -free is convex as well.
Consider -free orders for and — say
[TABLE]
Notice that the linear order
[TABLE]
is an -free order for — we call a canonical order when and are that of and . It is easy to obtain a canonical order in polynomial time.
Consider an arbitrary order of the vertices of . We write for the linear order induced on and for the linear order induced on . Observe that is an -free order if and only if
and are -free orders of and 2. 2.
for and
[TABLE]
that is — all vertices of should appear before the first element of a pair that satisfies and that is in a ‘wrong’ order — namely — .
In proving that the prism of is Hamiltonian we may assume that the prisms of and are that. — Furthermore — we may assume that is an edge of both Hamiltonian cycles. A Hamiltonian cycle in the prism of that uses the edge is easily obtained from this [12, Theorem 3.3].
It follows that the -free orders of can be generated such that each order differs from its predecessor by at most one or two adjacent transpositions.
It remains to establish the timebound.
Theorem 3.1
The -free orders of an -free graph can be generated in constant amortized time.
Proof
Pruesse and Ruskey developed a generic algorithm to produce all basic words of an antimatroid [11, 12]. The amortized time complexity is determined by an — antimatroid specific — transposition oracle which answers whether two adjacent elements in a basic word may swap places to produce another basic word.
We use the notation introduced above. For an -free order with an induced order on and define as follows.
[TABLE]
Then is an -free order if and only if and are that and when . We show that can be maintained during a swap of two adjacent elements in . Notice that is easily computable for a canonical order.
Sawada [13, Theorem 15 ff.] introduces the counter for ordered pairs and as the number of vertices with and . Two elements and can be swapped to produce a new -free order only if . Sawada shows that can be maintained during a generation of -free orders in constant amortized time [13, Theorem 13 and Observation 1].
Notice that . This proves the theorem.
4 Concluding remark
The family of ideals in a poset constitutes a convex geometry on the elements of the poset. This convex geometry is usually referred to as a poset shelling. A convex geometry is a poset shelling if and only if its family of convex sets is closed under unions [10]. (See [8] for other characterizations.)
The family of convex sets of the -free graph shown in the figure is not a poset shelling. To see that let and let . Then and are convex but their union is not since .
Appendix: proofs
Lemma 2
An alignment is a convex geometry if and only if any set which induces a cycle on a set is contained in .
Proof
When is a cycle on then is not convex for any . When there exists a vertex such that is not convex. By Edelman and Jamison’s characterization is not a convex geometry.
Assume that any set that induces a cycle on is contained in .
Let be a convex set and assume that . We show that there exists an element which satisfies
[TABLE]
(notice that this proves the claim — by Edelman and Jamison’s characterization of convex geometries).
Let be an inclusion-minimal subset of such that is convex. We claim that . — Otherwise — has at least two elements. By the assumption that is set–inclusion minimal
[TABLE]
which implies that some nonempty subset induces a cycle on . By the assumption — that any set which induces a cycle on is contained in — which is a contradiction.
For vertices and that are not adjacent we write for the component of that contains the vertex .
Lemma 3
Let be an -free graph. Any four vertices satisfy the following property.
[TABLE]
Proof
If then the left-hand is only satisfied when is an asteroidal triple. Otherwise
[TABLE]
The vertices and are connected by a path that avoids since . — Also — the vertices and are connected by a path that avoids since .
This proves the lemma.
Lemma 4
Let be an -free graph. Any five vertices satisfy the following property.
[TABLE]
Proof
Assume that and . Observe that the vertices and are connected by a path that avoids . If there are no paths from to nor from to that avoid then
[TABLE]
However, there is a path from to that avoids which implies that there is a path from to that avoids . By concatenation of this path with a path from to that avoids we find a path from to that avoids . Similarly, there is a path from to that avoids . This proves .
Assume . There is a path from to that avoids . If there is no path from to that avoids we have
[TABLE]
since there is a path connecting and that avoids . Since separates and which implies
[TABLE]
There is a path from to that avoids since . Since there is a path from to that avoids . Since there is a path from to that avoids which implies .
Assume . In an analogous manner it follows that or .
This proves the lemma.
Note that
Lemma 5
Let be an -free graph. Let and let . Assume that and that no subset of induces a cycle on . If — for all — there exist that satisfy then
[TABLE]
Proof
Assume that the lemma does not hold. Choose and so that intersect at least two components of and is minimal. Then .
Since is minimal
[TABLE]
By Lemma 3
[TABLE]
Assume . Consider . For
[TABLE]
Since there exists of a path from to in . This contradicts the assumption.
Assume . Consider . We have otherwise . — Moreover —
[TABLE]
since the first equality would imply that is an asteroidal triple and the second equality would imply .
When ,
[TABLE]
and thus
[TABLE]
Notice that implies that and are connected by a path that avoids . This implies
[TABLE]
Let . Then
[TABLE]
since otherwise . — Furthermore — for which implies that intersects any -path that avoids . This proves the lemma.
Theorem 2.1
Let be an -free graph. The convex sets in constitute a convex geometry on .
Proof
Assume there exist sets and that contradict this theorem — that is — induces a cycle on . Let . We may assume that is minimum and that .
— Also —
[TABLE]
where all arithmetics here are taken with modulo . By Lemma 3
[TABLE]
Consider the following two cases.
Case :
Assume . Then
[TABLE]
since otherwise . By ,
[TABLE]
Notice that Eq. (4) holds for all . Then, by repeatedly apply Eq. (3) we have for all and . This contradicts the assumption that induces a cycle on .
Case :
Assume . Without loss of generality assume . We show that and . It suffices to show that and are connected by a path that avoids .
Consider
[TABLE]
Since — by Lemma 4 — and are in the same component of . Since this proves that and are connected by a path that avoids — as claimed.
This proves the theorem.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Alcón, L., B. Brešar, T. Gologranc, M. Gutíerrez, T. Šumenjak, I. Peterin and A. Tepeh, Toll convexity, European Journal of Combinatorics 46 (2015), pp. 161–175.
- 2[2] Broersma, H., T. Kloks, D. Kratsch and H. Müller, Independent sets in asteroidal triple-free graphs, SIAM Journal on Discrete Mathematics 12 (1999), pp. 276–287.
- 3[3] Chvátal, V., Antimatroids, betweenness, convexity. In (Cook, Lovász, Vygen eds.) Research Trends in Combinatorial Optimization (2009), Springer, Berlin, Heidelberg, pp. 57–64.
- 4[4] Corneil, D. and J. Stacho, Vertex ordering characterizations of graphs of bounded asteroidal number, Journal of Graph Theory 78 (2015), pp. 61–79.
- 5[5] Crapo, H., — Selectors — A theory of formal languages, semimodular lattices, branching and shelling processes, Advances in Mathematics 54 (1984), pp. 233–277.
- 6[6] Edelman, P. and R. Jamison, The theory of convex geometries, Geometriae Dedicata 19 (1985), pp. 247–270.
- 7[7] Helman, P., B. Moret and H. Shapiro, An exact characterization of greedy structures, SIAM Journal on Discrete Mathematics 6 (1993), pp. 274–283.
- 8[8] Kashiwabara, K. and Y. Okamoto, A greedy algorithm for convex geometries, Discrete Applied Mathematics 131 (2003), pp. 449–465.
