Manuscript Offprint
arXiv:2611.03906Proper Conflict-Free Coloring on Structured Graph Classes: Bounds, Exact Algorithms, and Hardness
Abstract
A proper conflict-free coloring is a proper vertex coloring in which every non-isolated vertex has a neighbor whose color appears exactly once in its open neighborhood. We study this coloring on chordal and ordered bipartite graph classes. For well-partitioned chordal graphs, we prove the tight bound and give an construction from a partition tree. Every assignment of lists of at least colors also admits a PCF coloring that respects the lists. Deciding whether colors suffice is NP-complete, even when the partition tree is a star. This also proves NP-completeness on chordal graphs when the number of colors is part of the input. For interval graphs, we prove that lists of size always suffice, improving the previous ordinary-coloring bound of . We use matchings to characterize when colors suffice and give an endpoint algorithm taking time. We also characterize the exact value when the clique number is at most three and give a linear-time algorithm from sorted interval endpoints. For biconvex graphs, we prove a tight five-color bound and give a direct exact algorithm taking time. For bipartite permutation graphs, a smaller dynamic program gives an exact algorithm. Finally, if a bipartite graph is convex over an ordered shore , we prove the sharp bound and construct a coloring in linear time from the order.
Keywords: Proper conflict-free coloring; Well-partitioned chordal graph; Interval graph; Biconvex graph; Bipartite permutation graph; Convex bipartite graph; Dynamic programming; NP-completeness.
1 Introduction
A proper coloring gives different colors to adjacent vertices. In a proper conflict-free coloring, each non-isolated vertex must also have a neighbor whose color appears only once in its open neighborhood. We call this neighbor a witness. Proper coloring of the square of a graph satisfies this condition, since all neighbors of a vertex then have different colors. A proper conflict-free coloring asks for much less: one uniquely colored neighbor is enough. If colors are viewed as communication channels, the two requirements have simple roles. Properness separates adjacent transmitters, and the witness condition lets every vertex identify at least one neighbor by its color.
Even a path on three vertices shows why the extra condition matters. A proper two-coloring gives both leaves the same color, so the middle vertex has no witness. A third color is needed. On larger graphs, the gap between ordinary and proper conflict-free coloring can be much larger. We study both the number of additional colors needed and the difficulty of finding an optimal coloring.
Fabrici et al. introduced proper conflict-free coloring in its present form [9]. Caro et al. studied its relation to ordinary coloring and maximum degree [5]. They conjectured that every connected graph with maximum degree at least three has a proper conflict-free coloring with at most colors. Cho et al. proved the conjecture for chordal graphs [6]. Liu obtained general list-coloring bounds using structural graph parameters [14].
The computational problem is difficult even on bipartite graphs, where ordinary coloring needs at most two colors. Ahn et al. proved NP-completeness for every fixed number of colors [1]. Pradhan and Sharma proved hardness on perfect-elimination bipartite graphs and gave algorithms for block,
*kamal.7.2013@gmail.com, kamal.santra@iitg.ac.in proper interval, chain, and pseudo-split graphs [15]. Sharma et al. proved the split-graph bound and gave exact equality criteria [16, Theorems 1–3, pp. 503–504]. Their AT-free bound implies an additive-three bound for permutation graphs and a tight five-color bound for bipartite permutation graphs [16, Theorem 9, Corollaries 4–5, and Lemma 1, pp. 507–508]. For interval graphs, they proved [16, Theorem 11, p. 509]. For proper interval graphs, they proved the sharp bound, an equality criterion, and linear-time exact solvability [16, Theorems 12–13 and Corollary 3, p. 510]. Jiménez et al. proved that six colors suffice for biconvex graphs, whereas no constant suffices for convex bipartite graphs [13].
The graph classes considered. Chordal graphs are perfect, so their ordinary chromatic number is their clique number. This makes them a natural setting for comparing the two coloring parameters. We first consider well-partitioned chordal graphs. Such a graph has a partition into clique bags arranged in a tree. Edges between adjacent bags form a complete bipartite graph between two boundary sets. The class contains split and block graphs [2]. This representation lets us color one bag at a time while keeping a witness color unique. It also allows large leaf cliques. Our hardness proof shows that these leaf cliques are enough to make exact coloring difficult, even when the partition tree is a star.
We next consider interval graphs. Their vertices are intervals on a line, and the intervals containing a fixed point form a clique. We use this order to construct a coloring from left to right. Interval graphs also lie between proper interval graphs, for which exact algorithms are known, and chordal graphs, for which we prove hardness when the number of colors is part of the input. Neither result settles exact coloring on general interval graphs.
Our last setting is a hierarchy of bipartite graph classes. Every bipartite permutation graph is biconvex, and every biconvex graph is convex bipartite. In a biconvex graph, both parts can be ordered so that every neighborhood is consecutive. A connected graph in this class also has a multichain distance layering, which we use for coloring. A convex bipartite graph requires a consecutive order on only one shore. Ordinary coloring uses at most two colors throughout this hierarchy. Proper conflict-free coloring behaves differently: five colors suffice in the biconvex case, while the number needed in the convex case is unbounded. We give a quantitative bound for this larger class.
Our results. Write , , and . Our results are as follows.
-
Well-partitioned chordal graphs. We prove and give an coloring algorithm from a partition tree. The proof also shows that lists of size suffice. The bound is tight. Deciding whether colors suffice is NP-complete, even when the partition tree is a star, and all vertices of each leaf bag have the same neighborhood in the central bag. The same reduction proves NP-completeness on chordal graphs when the number of colors is part of the input. For each fixed , the chordal problem is polynomial-time solvable by a standard treewidth dynamic program.
-
Interval graphs. We prove that arbitrary lists of size suffice. Since interval graphs are perfect, this improves the earlier bound for the whole interval class by one color and also allows prescribed lists. The ordinary bound was already known for proper interval graphs. When every vertex has the common set of colors , we construct a coloring in time from an interval model. To study whether colors suffice, we give a chain-cover characterization and a matching criterion for prescribed witnesses. An endpoint dynamic program takes time. We characterize the exact value for and give a linear-time algorithm from sorted interval endpoints. An eleven-vertex example shows that a simple intersection test on maximum cliques does not extend to .
-
Biconvex and bipartite permutation graphs. We prove that five colors suffice for every bipartite graph with a multichain ordering. This gives a tight bound for biconvex graphs and improves the known bound of six. The five-color bound and a tight example for bipartite permutation graphs are due to Sharma et al. [16, Corollary 5 and Lemma 1, pp. 507–508]. We retain their example and proof to show tightness for the larger biconvex class. Our direct dynamic programs find an optimal coloring in time on biconvex graphs and time on bipartite permutation graphs. The second algorithm uses a fixed-color dynamic program that applies to every permutation graph supplied with a permutation diagram.
-
Convex bipartite graphs. If is convex over an ordered shore , we prove . Given the order, a coloring can be found in time. We construct an infinite family attaining equality. Unboundedness on this class was already known [13]; our result gives a sharp bound in terms of .
Relation to general algorithms. General results already imply polynomial-time solvability on biconvex graphs and bipartite permutation graphs. For a fixed number of colors, proper conflict-free coloring is a locally checkable condition that needs only color counts truncated at two. The count of a vertex's own color must be zero, and a non-isolated vertex must see a count of one. The algorithm of Gonzalez and Mann [11], together with the neighborhood decompositions of Belmonte and Vatshelle [4] and the known constant biconvex bound, therefore gives an exact polynomial-time algorithm. Our dynamic programs give direct constructions and explicit running-time bounds. The algorithms parameterized by clique number likewise use standard bounded-treewidth ideas once a bound on the number of colors is available.
The contributions developed here are the list bounds for well-partitioned chordal and interval graphs, hardness on well-partitioned chordal graphs, the interval structural criteria and endpoint algorithm, the extension of the five-color bound to biconvex graphs, and the sharp convex bound. We distinguish these results from the known split and proper interval special cases and from the published bipartite permutation bound and example. The direct algorithms provide explicit recurrences and running times in settings where earlier general methods already imply tractability.
Organization. Section 2 gives notation and the graph representations. Section 3 treats well-partitioned chordal graphs and derives the chordal hardness result. Section 4 studies interval graphs. Section 5 treats the ordered bipartite classes. Section 6 gives further questions.
Definition 1. A coloring is a proper conflict-free coloring, or a PCF coloring, if it is proper and, for every non-isolated vertex , there is a color with . The unique neighbor with that color is a witness of . The least number of colors in a PCF coloring is denoted by .
For a list assignment , a PCF -coloring must also satisfy for every vertex. A graph is PCF -choosable if such a coloring exists for every assignment of lists of size at least . The problem PCF COLORABILITY takes and asks whether . In PCF- COLORABILITY, the target is the clique number of the input graph. We distinguish the case in which is fixed from the case in which it is part of the input.
The PCF condition depends only on whether a color appears zero times, once, or at least twice in a neighborhood. We therefore replace every relevant count by . All algorithms check the condition only at non-isolated vertices. Different components may reuse the same colors. An algorithm is fixed-parameter tractable in a parameter if its running time is . A bound gives an XP algorithm in .
Chordal and well-partitioned chordal graphs. A graph is chordal if it has no induced cycle of length at least four. Chordal graphs are perfect, have a perfect elimination ordering, and have treewidth . A connected graph is well-partitioned chordal if its vertices can be partitioned into clique bags that form a tree . Nonadjacent bags are anticomplete. Between adjacent bags and , the edges are exactly for subsets and . These subsets are the boundaries of the tree edge. A partition tree can be found in polynomial time [2].
Interval graphs. An interval graph is the intersection graph of closed intervals on the real line. Endpoints can be made distinct without changing the graph: at an equal coordinate, place all left endpoints before all right endpoints, then order ties within each type arbitrarily. The maximal cliques have a clique-path order in which the cliques containing each vertex are consecutive. The interval order places before when . Stable sets are exactly its chains.
Ordered bipartite classes. A bipartite graph is convex over if has an order in which is consecutive for every . It is biconvex if both shores have such an order. A bipartite permutation graph has orders and such that, whenever , and , both and are edges. These are strong orders. Recognition and the construction of strong orders take linear time [17].
A distance layering is a multichain ordering if the edges between each pair of consecutive layers form a chain graph. A chain graph is bipartite, and its neighborhoods on each shore are nested by inclusion. Every connected biconvex graph has a multichain ordering [7]. We apply this property only to bipartite graphs, so all edges join consecutive layers.
3 Well-partitioned chordal graphs
Sharma et al. proved that split graphs satisfy [16, Theorem 1, p. 503]. We extend this bound to well-partitioned chordal graphs: colors always suffice. This leaves only two possible values for the PCF chromatic number. We then prove that deciding whether colors suffice is NP-complete, even when a simple partition tree is given. The same reduction proves hardness on chordal graphs when the number of colors is part of the input.
3.1 Partition trees and boundaries
A connected graph is well-partitioned chordal if its vertices can be partitioned into cliques, called bags, that are arranged as the nodes of a tree . Bags that are not adjacent in have no edges between them. Between adjacent bags and , all edges run between a subset of and a subset of , and every possible edge between these subsets is present. The tree is a partition tree. Ahn et al. introduced this class and gave a polynomial-time recognition algorithm that produces a partition tree [2]. For a disconnected graph, we use a partition tree for each component.
For adjacent bags , write and . These are the boundaries of the edge . Thus, the edges between the two bags are exactly . Both bags are cliques, so is also a clique. In particular, .
A clique meets at most two bags. Otherwise, three bags containing its vertices would be pairwise adjacent, which is impossible in a tree. If a clique meets two bags, these bags are adjacent, and its vertices lie in their boundaries. Conversely, each bag and each union of two opposite boundaries is a clique. Therefore,
Here is the set of bags. If the tree has only one bag, we omit the second maximum. This formula lets us compute the clique number from the supplied partition tree and its boundaries.
3.2 A coloring with one additional color
Properness gives the lower bound . To obtain the upper bound, we color the bags one at a time, starting at a leaf of the partition tree. In each bag with at least two vertices, we choose two vertices to serve as witnesses. We call them anchors. The first anchor will witness every other vertex of its bag, and the second will witness the first. When we color a child bag, we keep the relevant witness colors out of its boundary.
Theorem 2. Every well-partitioned chordal graph satisfies . Given a partition tree for each component, a PCF coloring with at most colors can be found in time.
Proof. We may consider one connected component at a time and reuse the colors in other components. An isolated vertex can receive any color. Consider, therefore, a connected graph with at least two vertices. Put , , and . We will give distinct colors to the vertices within each bag.
If the partition tree has one bag, the graph is a clique and any coloring with distinct colors is PCF. Otherwise, root the tree at a leaf bag and process parents before their children. Connectedness ensures that both boundaries of each tree edge are nonempty.
For a bag with at least two vertices, let denote its two anchors. Our goal is to make a witness for every vertex of and to make a witness for . If a nonroot bag is a singleton
, we choose its witness in the parent boundary instead. We choose these vertices as the bags are colored.
Color the root bag with distinct colors. If it has at least two vertices, choose any two as its anchors. If the root is a singleton, it needs no anchor at this stage. It has only one child, because we rooted the tree at a leaf, and any vertex in that child's boundary will witness the root.
Now let be an uncolored bag whose parent has already been colored. Put and . All edges between these bags join to . We must therefore avoid the colors of when coloring . We also protect at most one further color. If has two anchors, define
The symbol means that there is no additional color to protect. If is a nonroot singleton, put . If is the singleton root, put . Let consist of the colors on , together with when it is defined.
The additional color, when present, is different from every color on . For a parent with two anchors, the protected anchor lies outside , and the colors in are distinct. For a singleton parent, and is adjacent to its only vertex, so properness gives the same conclusion. In all cases, . Since is a clique, we have . Thus at least colors remain for . Give its vertices distinct colors outside .
If is a singleton, choose any and proceed to the next bag. Suppose instead that . Choose . If , choose . Both anchor colors then avoid all colors on . If , choose and give it a color outside . This is possible because . In either case, both anchor colors are absent from the parent boundary. Give distinct unused colors to the remaining vertices of . This is possible because .
We first check properness. Vertices in one bag have different colors. For adjacent bags, the colors on the child boundary avoid the colors on the parent boundary. These are all the edges of the graph, so the coloring is proper.
We next check the witnesses. Let have at least two vertices and take . Inside , the color of occurs only once. If is not the root and has a neighbor in its parent, that neighbor lies in . The color of was chosen outside , so the parent does not duplicate it. Now consider a child adjacent to . If , properness keeps its color out of . If , the first rule in (2) protects its color. Hence no child duplicates the color either, and witnesses .
For the vertex , use as the witness. Its color occurs only once in and, when a parent exists, was chosen outside the parent boundary. A child has no effect if . If both anchors belong to , properness keeps the color of out of . If only belongs to , the second rule in (2) protects the color of . Thus witnesses .
Finally, let be a nonroot singleton. Its chosen witness belongs to the parent boundary. The colors in the parent bag are distinct, so occurs exactly once among the neighbors of in that bag. Every child boundary avoids by the singleton rule. Thus remains a witness in the completed graph. If the root itself is a singleton, its neighbors are exactly the vertices of its only child's boundary. Those vertices have distinct colors, so the root also has a witness. The coloring is therefore PCF.
The clique number is computed from (1). Each bag is processed once. Scanning the palette when assigning a color to a vertex takes at most time. The total size of all boundary lists is at most , so forming the forbidden sets also fits within time. The algorithm stores the coloring and the chosen witnesses. The lower bound follows from properness.
Algorithm 1 gives the construction for one connected component. Its input includes the boundary sets.
Corollary 3. Every well-partitioned chordal graph is PCF -choosable.
Proof. Put and suppose that each vertex has a list of at least colors. We use the same construction as in Theorem 2, choosing every color from the list of the vertex being colored. The root bag can be colored with distinct list colors, because it has at most vertices.
For a child bag with parent , put and as before. The forbidden set has at most colors. Thus each vertex has at least colors in . Color
Algorithm 1: PCF coloring from a partition tree.
Input: A connected well-partitioned chordal graph and a partition tree with all boundaries. Output: A PCF coloring using at most colors.
1 Compute from Equation (1) and set
2 if has one bag then
3 color injectively and return
4 Choose a leaf bag as the root and color injectively
5 if then
6 choose distinct anchors
7 foreach non-root bag in root-to-leaf order do
8 let be the parent of , and put and
9 if then
10 if then
11
12 else if then
13
14 else
15
16 else
17 if then
18
19 else
20
21 ; if , set
22 color injectively with colors from
23 if then
24 let be the vertex of and choose
25 else
26 choose
27 if then
28 choose
29 else
30 choose and color it from
31 color all still uncolored vertices of injectively with colors unused in
32 return
the vertices of one at a time, avoiding the colors already used in . At most such colors have been used at any step, so a choice always remains.
Choose the anchors as in the theorem. If has at least two vertices, both anchors are already colored. If and , choose . Its list contains a color outside , because this set has at most colors. Finally, color each remaining vertex of from its own list, avoiding all colors already used in . There are at most colors to avoid, so this is possible. Singleton bags use the same witness rule as before.
These choices preserve every property used in the proof of Theorem 2: each bag has distinct colors, child boundaries avoid their forbidden colors, and both anchors avoid the parent boundary colors. The same witness argument therefore proves that the resulting list coloring is PCF. Components can be handled separately.
One additional color is sometimes necessary. The example below is a block graph and is covered by the characterization of Pradhan and Sharma [15]. We include the argument because it shows why a coloring with only the clique number of colors can fail.
Proposition 4. For every integer , there is a well-partitioned chordal graph with and .
Proof. Take two copies of with exactly one common vertex and no other edges between them. Use one copy as a bag and the remaining vertices of the other copy as a bag . The two bags form a partition tree with boundaries and . Hence the graph is well-partitioned chordal and has clique number .
In a proper -coloring, each copy of uses every color once. The color of is absent from , and each other color occurs twice there, once in each clique. Thus has no witness, so colors do not suffice. Theorem 2 gives a PCF coloring with colors.
The maximum-degree bound in the next corollary is already known for all chordal graphs [6]. It also follows directly from our clique bound on well-partitioned chordal graphs. This is the bound conjectured by Caro et al. [5].
Corollary 5. Every connected well-partitioned chordal graph with at least two vertices satisfies .
Proof. If is complete, distinct colors give . Otherwise, a maximum clique has a vertex with a neighbor outside , because is connected and has more than vertices. That vertex has at least neighbors. Hence , and Theorem 2 gives the result.
3.3 The equality problem is NP-complete
The upper bound leaves one exact question: does the graph have a PCF coloring with colors? We call this problem PCF--COLORABILITY. For well-partitioned chordal graphs, we supply a partition tree as part of the input. The following hardness result therefore holds even when the representation is already available.
Theorem 6. PCF--COLORABILITY is NP-complete on well-partitioned chordal graphs. This remains true when the supplied partition tree is a star, and all vertices of a leaf bag have the same neighborhood in the central bag.
Proof. The problem is in NP. We can check properness and the conflict-free condition in polynomial time. We can also compute from the supplied partition tree using (1).
We reduce from EXACT COVER BY 3-SETS (X3C) [10]. Let and let be three-element subsets of . We ask whether of these sets partition . We may assume that and . If , the answer is yes and we may output , whose PCF chromatic number equals its clique number. If and , the answer is no and we may output , whose clique number is two and whose PCF chromatic number is three.
For each set , introduce two vertices , called its ports. Make a clique, and put . For each element , define . Add a clique of size , and make it complete to and anticomplete to . Also add a clique of size , complete to and anticomplete to all ports. The cliques and are pairwise anticomplete. These are all the vertices and edges of the construction.
The bags have positive size. Indeed, gives , and . There are leaf bags, each of size at most , so the construction has polynomial size. Figure 1 shows the partition tree. Each line represents a complete join between the indicated subsets.
The star centered at , with leaves and , is a partition tree. The boundaries of are and ; those of are and . Thus all vertices of a leaf bag have the same neighbors in . This also gives a direct check of chordality: each vertex of a leaf bag is simplicial, and deleting all leaf bags leaves the clique .
The central clique has order , as does for every . The largest clique using is , of order . No clique meets two leaf bags. Consequently, .
Consider any proper -coloring of this graph. The clique uses every color exactly once, so we can name a color by the vertex of that receives it. Each clique also uses all colors. It follows that for every . The clique forces the vertices of to use distinct port colors. Exactly port colors are missing from . Let be the set of ports with these missing colors. Thus .
For an element vertex , we have . We can now count every color in this neighborhood:

All leaf bags are pairwise anticomplete; ports are anticomplete to Z.
Figure 1: The star partition tree used in the reduction from X3C. The central bag is the clique . Each displayed line denotes a complete join between the indicated boundary in and the whole leaf bag. The omitted bags are constructed in the same way.
| vertex of representing the color | multiplicity in |
|---|---|
| 0 | |
| an element | 2 |
| a port of with | 2 or 3 |
| a port of with and | 2 |
| a port of with and | 1 |
The color of another element occurs once in and once in . A port belonging to a set that does not contain is outside , so its color occurs in both and , and possibly also in . A port belonging to a set that contains has its color absent from . That color appears only once in precisely when it is also absent from , that is, when the port belongs to . Therefore has a witness if and only if . In other words, at least one missing port color must correspond to a set containing .
Every other vertex already has a witness in any proper -coloring. The two ports witness one another. To see this for , observe that occurs once in . The port has no neighbor in . For every leaf bag adjacent to , both ports belong to , so the identity excludes from that bag. The argument for is the same. For , the entire neighborhood is a nonempty clique. For , the same is true of . The colors in each of these neighborhoods are distinct, so these vertices also have witnesses.
Suppose the X3C instance has an exact cover , where . Color with all colors. Color each with the colors on , using each once. Choose and color with all port colors except those on , again using each once. This coloring is proper. Since the chosen sets cover , the neighborhood calculation gives a witness for every element vertex. The preceding paragraph gives witnesses for all other vertices. Thus has a PCF -coloring.
Conversely, suppose has a PCF -coloring, and let be its set of missing port colors, identified with their ports in . The neighborhood calculation shows that covers . This family contains at most distinct sets, each with three elements. Since , we obtain . Equality throughout forces exactly sets with no overlap. Hence is an exact cover. This proves the reduction.
The upper bound and the reduction give the following consequence.
Corollary 7. Every well-partitioned chordal graph satisfies . Deciding whether is NP-complete, even when a star partition tree is supplied. Computing the exact value is therefore NP-hard. Algorithm 1 uses at most one color more than an optimal coloring.
3.4 Consequences for chordal graphs and parameterized algorithms
Every well-partitioned chordal graph is chordal. We therefore obtain the same hardness when the input is an arbitrary chordal graph and the number of colors is part of the input.
Corollary 8. Given a chordal graph and an integer , deciding whether has a PCF coloring with at most colors is NP-complete. The hardness holds when , even on well-partitioned chordal graphs.
Proof. A proposed coloring can be checked in polynomial time. For hardness, apply Theorem 6 and output . The construction has and admits a PCF -coloring exactly when the X3C instance has an exact cover.
Here the number of colors is , which grows with the original instance. For a fixed number of colors, a standard dynamic program on a tree decomposition gives a polynomial-time algorithm.
Proposition 9. For every fixed positive integer , PCF -colorability can be decided in polynomial time on chordal graphs.
Proof. If , the graph has no proper -coloring. Otherwise, a perfect elimination ordering gives a tree decomposition of width . Convert it into a nice tree decomposition and process it from the leaves towards an empty root.
For each vertex in the current bag, a state stores its color and one counter for each of the colors. A counter records the number of neighbors of that color that have already been forgotten, with every value at least two replaced by two. The colors of adjacent bag vertices must differ. Every forgotten vertex must already have passed the PCF test. A leaf with an empty bag has one empty state.
At an introduce node, choose a color different from those of the new vertex's neighbors in the bag and initialize its counters to zero. There cannot be a previously forgotten neighbor of this vertex, by the connectedness condition for bags in a tree decomposition. At a forget node for , add the colors of its neighbors that remain in the bag to its stored counts. These are all its remaining neighbors. Unless is isolated, retain the state only if some resulting count is one. Then add the color of to the counters of its remaining neighbors and remove from the state. At a join node, the two child states must give the same colors to the common bag. Add their counters coordinatewise and cap the sums at two. The forgotten vertex sets in the two subtrees are disjoint, so no neighbor is counted twice. A nonempty table at the empty root means that a PCF coloring exists.
A bag has at most vertices. Each vertex has possible colors and possible counter vectors, so there are at most states per bag. Even checking all pairs of states at a join keeps the dependence on within . The number of bags and the work on each state are polynomial in the input size for fixed . This proves the claim.
For well-partitioned chordal graphs, we need to test only the smaller of the two possible values.
Proposition 10. For an -vertex well-partitioned chordal graph , an optimal PCF coloring can be found in time.
Proof. Put and run the preceding dynamic program with the colors . A state gives each bag vertex a color and a vector in . Its th coordinate counts the forgotten neighbors of color , capped at two. Introduce, forget, and join nodes use exactly the transitions above. In particular, a vertex is tested only when all its neighbors have been accounted for.
Each bag has at most vertices, so there are at most states per bag. The join transitions also fit within time. Store one predecessor choice for each retained state. If the table at the empty root is nonempty, following these choices recovers a PCF -coloring, which is optimal. If the table is empty, Theorem 2 gives the exact value , and Algorithm 1 constructs an optimal coloring.
Sharma et al. gave the additive-one bound and exact equality criteria for split graphs [16, Theorems 1–3, pp. 503–504]. These criteria yield a polynomial-time exact algorithm. Pradhan and Sharma also studied exact coloring on split graphs [15]. A split graph has a star partition tree whose leaf bags are singletons. Our construction still has a star partition tree, but its larger leaf cliques force the sets of colors that they use. These larger bags already make exact PCF coloring NP-hard.
4 Interval graphs
Sharma et al. proved for interval graphs [16, Theorem 11, p. 509]. For proper interval graphs, they already proved the sharp bound, an equality criterion, and a linear-time exact algorithm [16, Theorems 12–13 and Corollary 3, p. 510]. We improve the bound for all interval graphs to and prove that arbitrary lists of this size suffice. Since interval graphs satisfy , this saves one color from the earlier general interval bound. In particular, every interval graph has PCF chromatic number either or . We then study how to decide which value occurs.
Let be an interval representation, where . We may move equal endpoints slightly so that all endpoints are distinct while preserving every intersection.
4.1 A list-coloring bound
We color intervals in order of their left endpoints. Each vertex other than the first chooses an earlier neighbor as its witness. We choose these neighbors so that each step forbids at most one extra color beyond those needed for a proper coloring.
Theorem 11. Let be an interval graph, let , and let be a list assignment such that for every . Then has a proper conflict-free -coloring. In particular, . Given an interval representation, the coloring can be found in time when color names allow constant-time marking. If every vertex has the common palette , the running time is .
Proof. We color each connected component separately. An isolated vertex may receive any color in its list, so consider a component with at least two vertices.
Choose an interval with the smallest right endpoint. If is a neighbor of , then and . Every interval for a neighbor of therefore contains , so is a clique. We may extend the left endpoint of to the left of every endpoint in the representation without creating an edge. Indeed, an interval disjoint from cannot lie to its left, since its right endpoint would then precede . Order the vertices as by increasing left endpoint in the resulting model.
For each , let be the largest index with . This index records how far extends in the left-endpoint order. For , let be the set of earlier intervals that are still active when begins. Thus . These are exactly the earlier neighbors of . Every interval in contains , and hence . Moreover, is nonempty. Otherwise all earlier intervals would end before begins. No earlier vertex could then be adjacent to or any later vertex, contradicting connectedness.
For , choose with as large as possible. We call this vertex the anchor of ; it will be the witness of . Color the vertices in the order . Give any color in its list. When is reached, forbid the colors already appearing on . In addition, suppose an active vertex has an anchor that is no longer active, so . We also forbid the color of that anchor. Thus the forbidden set is
At most one active vertex contributes an anchor color to the second set in (3). To see this, suppose that are two such indices. Since , we have , and therefore . The choice of the anchor of gives . This contradicts . The vertices of form a clique, and their colors are pairwise distinct. We therefore have . Since the list of contains at least colors, a color in always exists. Avoiding the first set of colors makes the coloring proper.
We next show that the anchor of every , with , is a witness. Since belongs to the clique , properness shows that occurs exactly once among the earlier neighbors of . Consider any later neighbor of . Then . If , the anchor is also in , and properness prevents from receiving its color. If , the second set in (3) prevents the same assignment. Thus is the only neighbor of with its color.
Finally, is a nonempty clique. All its vertices have distinct colors in a proper coloring, so any one of them witnesses . This proves that the constructed coloring is proper and conflict-free.
For arbitrary lists, first keep any colors from each list. The proof applies to these smaller lists as well. At each step, scan the active vertices, mark the forbidden colors, and scan the retained list
Algorithm 2: INTERVAL-PCF-GREEDY()
Input: An interval representation of a connected nontrivial interval graph. Output: A PCF coloring with colors in .
1 Choose an interval of minimum right endpoint and extend its left endpoint to the left of all other endpoints 2 Order the intervals as by increasing left endpoint, compute every , and put 3 Initialize an empty max-heap , an empty min-heap , the set of currently unused colors, and Boolean flags active[] false 4 Create expiration buckets 5 for to do 6 foreach do 7 active[] false and insert into 8 Delete inactive entries from the tops of and 9 // the extra expired-anchor color 10 if then 11 Let be the active index at the top of 12 if is nonempty and its top entry satisfies then 13 14 Choose and set 15 Delete from , set active[] true, and insert into 16 if then 17 insert into 18 return
until an allowed color is found. With constant-time marking for color names, this takes time after reading the lists and sorting the representation. Including the list input gives time. The implementation below improves the bound when all vertices have the same palette.
For a common palette, use a max-heap with key to choose each anchor. A second heap stores for every active vertex with a defined anchor, using the first coordinate as a minimum key. Before consulting either heap, remove inactive entries from its top. The second heap then identifies the one possible anchor color that must still be avoided after the anchor has expired. A balanced set stores the colors absent from the active intervals. Buckets indexed by identify intervals when they expire. Algorithm 2 gives the procedure for one connected component.
The proof of Theorem 11 shows that is never empty. Each interval enters and leaves the active structures once, and every heap entry is deleted at most once. Endpoint sorting and all updates therefore take time. If a sorted endpoint representation is supplied, all and the clique number can be computed in linear time, but the balanced-set implementation still gives the stated bound.
The bound is tight for every clique number at least two. For , let consist of two copies of with exactly one common vertex and with no edge between their exclusive parts. This is a proper interval graph with clique number and maximum degree . Its value therefore already follows from the equality criterion of Sharma, Paul, and Pandey [16, Theorem 13, p. 510]. We include the short argument for completeness. In every proper -coloring, both cliques use every color. Every color other than therefore occurs twice in , while properness excludes from that neighborhood. Thus has no unique-colored neighbor. Theorem 11 now gives .
Deleting any vertex from reduces its PCF chromatic number to at most . Deleting leaves two copies of . If a noncentral vertex is deleted, color the intact with all colors and color the shortened clique with of them, retaining the color of . The color omitted on the shortened side is unique in , and every other vertex is witnessed inside its clique.
Corollary 12. Every interval graph satisfies , and the upper value is attained for every .
Proof. Properness gives . Theorem 11 gives the upper bound, and the graphs attain it.
4.2 The exact lower-value problem
We now study when colors suffice. First, we record how the answer depends on the connected components.
Lemma 13 (Components). For a nonempty graph, the PCF chromatic number is the maximum of the values on its connected components. An interval graph therefore has value exactly when some component satisfies and .
Proof. A coloring is proper and conflict-free exactly when its restriction to each component has these properties. Reusing the palette on different components proves the first assertion. For the second, apply the additive-one theorem to each component and observe that a component of clique number below uses at most colors.
For a vertex , let be the family of maximum cliques that contain .
Lemma 14 (An obstruction from maximum cliques). Let be a nonisolated vertex. If a nonempty subfamily satisfies , then has no -coloring. The condition holds if and only if is nonempty and the intersection of all its members is .
Proof. Put and consider a proper -coloring. Every clique in has order and therefore contains every color exactly once. Fix a color . If occurred only once in , say at , then would be the -colored representative in every clique of . This would put in , impossible because . Hence every color other than occurs at least twice in , while does not occur there. Thus has no conflict-free witness.
In particular, two maximum cliques of order at least two that meet in one vertex force the upper value. For clique number four, this condition is no longer necessary, as the following example shows.
Proposition 15. There is an interval graph J on eleven vertices such that and , although no two maximum cliques of J meet in exactly one vertex.
Proof. Order the vertices by left endpoint and use the interval model shown in Figure 2. Equivalently, put . For , the edge is present exactly when . Its only cliques of order four are , , and . Their pairwise intersections have orders three, zero, and zero.
Suppose that a PCF four-coloring exists. Name the colors on so that , , , and . The clique forces . Since is a triangle, the color of is some ; let denote the other member of . The vertex is adjacent to and , so its color belongs to . Now . If , each of the colors 1,2,3 occurs at least twice in this neighborhood. Therefore the conflict-free requirement at forces .
The triangle on gives . Since is a , the colors on are 0, 2, 3 in some order. Among the neighbors of other than , color 0 occurs on and in , color occurs on and in , and color occurs once, in . The vertex therefore has a witness only if . But then has color multiset , a contradiction.
The color vector gives a PCF five-coloring. For completeness, sees color 3 once, sees color 1 once, and sees color 1 once. Each of sees the color of once. The vertex and each of see the color of once. The displayed vector is proper on every edge, so .
4.3 An exact endpoint dynamic program
The complexity of deciding whether colors suffice remains open when the clique number is unbounded. We give an explicit algorithm whose running time is fixed-parameter tractable in . It follows the standard dynamic programming approach along the interval endpoints.
Process the endpoints from left to right. After each endpoint, let be the set of intervals that have begun and have not yet ended. The set is a clique and has order at most . A state consists of an injective coloring and, for every and , a value . The value counts already forgotten neighbors of with color , with every count of at least two recorded as 2. We retain only partial colorings in which every forgotten nonisolated vertex has already passed the witness test.

Figure 2: An interval model of the graph in Proposition 15.
At the left endpoint of , choose a color absent from the active clique, add to the state, and set its counters to zero. This initialization is correct because an interval that ended before began cannot be adjacent to . At the right endpoint of , every neighbor of is known. For each color, add to its stored counter the number of other active intervals of that color, again capping at two. Unless is isolated, retain the state only if one of these totals equals one. Then forget and increment the -counter of every remaining active interval. These transitions are summarized in Algorithm 3.
The counters have the stated meaning after every transition. When a vertex is introduced, all its earlier neighbors are active, and the color choices consider every proper extension. When a vertex is forgotten, each of its neighbors has either already been forgotten or is still active. The test therefore checks its full neighborhood. Later intervals cannot affect that neighborhood. This proves that every surviving final state gives a PCF coloring. Conversely, any PCF -coloring selects a valid color at each introduction and passes every test at a right endpoint. It therefore gives a surviving sequence of states.
For an active set of size , there are at most states. With , this is . We have therefore proved the following.
Theorem 16. Given an interval representation, one can decide whether and reconstruct a coloring, when one exists, in time. If the test rejects, Algorithm 2 constructs an optimal -coloring.
4.4 Chain covers and matchings
A proper coloring of an interval graph can also be viewed as a partition into chains. This gives another way to test whether colors suffice.
Let be the interval order defined by when . Two vertices are incomparable exactly when they are adjacent in . The chains are therefore the stable sets of , and the antichains are its cliques. The width of is . By Dilworth's theorem [8], a minimum chain cover has chains. Giving one color to each chain gives a proper -coloring.
Form a bipartite graph with two copies of and an edge whenever . A matching of size gives disjoint directed paths after the two copies of each vertex are identified. Each vertex has at most one predecessor and one successor. Every link follows the order, so there is no directed cycle. The paths form a minimum chain cover. Conversely, linking consecutive vertices of each chain gives a matching of size .
For such a matching , let and be the predecessor and successor of on its chain, when they exist. Put , with when there is no predecessor. Similarly, put , with when there is no successor. Call locally covering if every nonisolated vertex has a neighbor such that and . Thus lies between the predecessor and successor of . It meets but no other interval on that chain.
Theorem 17 (Chain-cover characterization). An interval graph has a PCF -coloring if and only if has a locally covering matching of size .
Proof. Take a minimum chain cover and a vertex on one chain with . Its color occurs only once in if and only if no other interval of the chain meets .
We need only inspect the predecessor and successor of . A predecessor disjoint from must lie to its left. It cannot lie to the right of , since it precedes and meets . All earlier members
Algorithm 3: TEST-INTERVAL-PCF()
Input: An interval representation and an integer .
Output: A PCF -coloring, or a report that none exists.
1 Sort the distinct endpoints of the representation 2 3 foreach endpoint event from left to right do 4 5 if introduces an interval then 6 7 8 else 9 Let be the interval ending at 10 11 12 13 14 15 16 17 18 19 if then 20 21 return a coloring recovered from the backpointers
of the chain then lie to the left of as well. The required condition is . Likewise, the successor and every later member avoid if and only if . A suitable neighbor for each nonisolated gives the PCF condition. The correspondence between chain covers and matchings proves both directions.
Some links are forced by consecutive maximum cliques.
Lemma 18 (Forced links between maximum cliques). Let and be consecutive maximum cliques in a clique-path order. Suppose that both have order and that and . If precedes , then and have the same color in every proper -coloring. Moreover, belongs to the matching associated with every minimum chain cover.
Proof. The common vertices have distinct colors, so both and must use the remaining color. They are nonadjacent, since otherwise would be a clique of order . The clique-path order places before in the interval order.
Suppose a vertex lay between them on their color chain. Every interval in meets both and , so it spans the gap between them and meets . The set would be a maximum clique between and , contrary to their consecutiveness. Thus and are consecutive on their chain, giving the stated matching edge.
4.5 Choosing witnesses
For some vertices, properness alone guarantees a witness. Let be the largest order of a clique containing , and put . We call the members of critical vertices.
Lemma 19 (Vertices that need no additional constraint). In every proper coloring, each nonisolated vertex with has a uniquely colored neighbor.
Proof. A largest clique containing gives neighbors with distinct colors. If none of these colors were unique in , each would occur there at least twice. This would give , a contradiction.
Choose one neighbor for each . We want to be the witness of . From , delete every edge with and every edge with . Denote the remaining graph by . These deletions prevent a neighbor of from appearing immediately before or after on its color chain.
For a balanced bipartite graph with left shore , define its Hall deficiency by .
Theorem 20 (A matching test for chosen witnesses). For an interval graph of order and clique number , the following statements are equivalent.
-
.
-
Some witness function leaves a matching of size in .
-
.
-
Some witness function satisfies for every .
Proof. Suppose a PCF -coloring is given, and link consecutive vertices of each color class. For every critical vertex , choose a witness . Its predecessor and successor on its color chain cannot belong to . Hence all matching edges remain in , proving the second statement.
Conversely, a matching of size in gives a minimum chain cover. The predecessor and successor of are nonneighbors of . By the proof of Theorem 17, no other member of this chain is adjacent to . Thus witnesses . Lemma 19 supplies witnesses for the remaining nonisolated vertices. Giving each chain its own color gives a PCF -coloring.
Hall's theorem gives . Since and , the deficiency is at least . A matching of size exists if and only if this deficiency equals . This proves the third statement. The fourth is the same equality written using the definition of deficiency.
The edges of have a useful endpoint description. For each , put and . Then if and only if and . The first inequality puts a successor of to the right of every interval for which is a chosen witness. The second puts a predecessor of to the left of every interval for which is a chosen witness.
There are at most witness functions. For each one, construct in time and find a maximum matching. Hopcroft–Karp [12] takes time because has vertices and at most edges. If no witness choice admits a matching of size , the additive-one theorem gives the optimal value .
Corollary 21. The PCF chromatic number can be computed in time on interval graphs. If is empty, every proper -coloring is PCF.
For fixed , this running time is polynomial. It is FPT for the combined parameter . For alone, the bound gives an XP algorithm.
The next example shows why an arbitrary maximum matching need not give a PCF coloring. Let have vertices and right-extent sequence . Thus, for , the edge is present if and only if . Its edges are and . The chains , , and give the PCF coloring . Order both shores of by vertex index. The corresponding matching contains the crossing edges . Uncrossing them gives the chains , , and . Now sees each of the first two colors twice and has no witness.
Every noncrossing maximum matching fails on this graph. A matching of size three must saturate , the only left vertices with successors. If is matched to , then lie on the same chain and has no witness. Otherwise, noncrossingness forces the targets in this order. The vertex again has no witness.
4.6 Universal vertices and two maximal cliques
Joining a universal vertex gives an exact formula for every perfect graph. For disjoint graphs , write for their join. The case of at least two universal vertices below follows from the known identity of Ahn, Im, and Oum [1, Lemma 1.4]. We include its direct proof alongside the one-vertex formula.
Theorem 22 (Joining a universal clique). Let be a nonempty perfect graph, let , and let be its family of maximum cliques. Then
For every , one has .
Proof. Let be the new universal vertex. In a proper -coloring of , its color is absent from , while every maximum clique of uses all other colors. The vertex witnesses every vertex of . To witness , we need an -coloring of with a singleton color class, say .
Such a coloring exists if and only if . Since is perfect, this is equivalent to , which says that belongs to every maximum clique of . This proves the first case of (4) and excludes colors in the second case. In that case, color properly with colors, give a fresh color, and recolor one vertex of with another fresh color. The first fresh color witnesses every vertex of , and the second witnesses . Thus colors suffice.
For , the identity above applies to , with when , and gives colors. Directly, color properly with colors and give the vertices of distinct fresh colors. Every vertex of is witnessed by a vertex of . Every vertex of is witnessed by another vertex of that clique. The construction uses colors, so it is optimal.
Universal intervals can be added to any interval model. Thus attains its clique bound for every interval graph . Taking shows that the property is not hereditary within interval graphs: fails it, but satisfies it. Therefore no family of forbidden induced subgraphs can characterize this property on all interval graphs.
Corollary 23 (Two maximal cliques). Let be a connected graph with exactly two distinct maximal cliques . Put and . Then
In particular, the formula applies to interval graphs with two maximal cliques.
Proof. Connectedness and maximality give . An edge between and would belong to a third maximal clique, so there is no such edge. Hence . For , Theorem 22 gives the value . For , the two exclusive cliques have an empty maximum-clique intersection if and only if their orders agree, or equivalently . Apply (4).
4.7 Clique number at most three
For , two maximum cliques with just one common vertex give a complete test. The proof gives a linear-time coloring algorithm.
Theorem 24. Let G be a connected interval graph containing an edge.
-
If , then if and only if ; otherwise .
-
If , then if and only if two maximum cliques intersect in one vertex.
An optimal coloring can be found in time from a sorted interval representation. Sorting arbitrary endpoints adds time.
Proof. Suppose first that . Since is chordal and triangle-free, it is a tree. In a proper two-coloring, all neighbors of a vertex have the opposite color. A vertex has a witness if and only if its degree is one. Thus only has a PCF two-coloring.
For a PCF three-coloring of a tree, choose a root and give it color 1. Give one child color 2 and all other children color 3. At each later vertex with parent , give every child the third color, different from and . The root has one neighbor of color 2. Every other vertex has just one neighbor of its parent color. This proves the first part.
Now let . Suppose maximum triangles meet only at . In every proper three-coloring, each color different from occurs at least twice in . The vertex has no witness, so four colors are necessary.
Conversely, assume no pair of triangles meets in just one vertex. We first describe the blocks of . A maximal clique of order two in a chordal graph is a bridge. Otherwise, a shortest alternative path between its ends would give either a triangle containing the edge or an induced cycle of length at least four. Hence every maximal clique of a 2-connected block has order three.
Take the clique-path order in such a block. A block with is a triangle. If , consecutive cliques meet in two vertices, since an intersection of order one would be a cut vertex. Put . If , these two edges in meet in one vertex. The running-intersection property gives , contrary to our assumption. Thus all equal a fixed edge . Every other vertex is adjacent to , and no two of these other vertices are adjacent. Call the core and the other vertices the tips. Such a block is a book; a triangle is a book with one tip. No vertex belongs to two books, since a triangle from each would meet only in that vertex. All other blocks are bridges.
Root the block-cut tree at a book. Give its core vertices colors 1,2 and its tips color 3. For a child bridge at a core, give the other endpoint color 3. For a child bridge at a tip, give the other endpoint color 1. Each core is witnessed by the other core, and each tip is witnessed by the core of color 2. These bridge colors do not affect the chosen witnesses.
Continue through the block-cut tree. At an ordinary vertex reached through a bridge , give each child the third color, different from and . The parent color stays unique in .
A nonroot book is reached through a bridge . The color has already been assigned. Put and let be the third color. Use the following rules.
-
If is a core vertex, give the other core color and every tip color . Give the other endpoints of child bridges at a core color , and those at a tip color . The cores witness one another. Every tip is witnessed by the core of color .
-
If is a tip, give the cores colors and all tips color . Give the other endpoints of child bridges at a tip color , and those at a core color . The cores witness one another. Every tip is witnessed by the core of color . At the entry tip, its parent also has color , which leaves the witness of color unchanged.
All bridge edges are proper. No vertex belongs to two books, so the rules give consistent assignments. They supply a witness at every vertex and give a PCF three-coloring.
The blocks and maximal cliques can be listed in time. To test for an obstructing pair, check whether every 2-connected block has a common core edge and whether any vertex belongs to two book blocks. A block without a common core has two different consecutive intersections , which give the required pair of triangles. A vertex in two books gives a pair by choosing one triangle from each. If there is no obstruction, the coloring rules take linear time.
When an obstruction exists, use the additive-one construction with four colors. At most three intervals are active at any event, so direct scans replace the heaps and balanced set by constant-time work. The four-coloring therefore takes linear time once the endpoints are sorted. Since a chordal graph with clique number three has edges, the whole procedure takes time.
Corollary 25 (Small obstructions at clique number three). For an interval graph with , one has if and only if contains an induced or . Both graphs have five vertices, and deleting any vertex reduces their PCF chromatic number to at most three.
Proof. Take maximum triangles meeting only at . The graph induced by is chordal and triangle-free; a triangle there would form a with . On , the edges are present. There is at most one edge between and . Two such edges sharing an endpoint would give a triangle, while two independent ones would give an induced four-cycle. Thus these vertices induce or . Together with , they give one of the two stated graphs.
Conversely, either graph contains two maximum triangles meeting only at their universal vertex. Theorem 24 gives the value four. Deleting a nonuniversal vertex leaves no such pair and gives a graph with a PCF coloring using at most three colors. Deleting the universal vertex leaves a forest, which also needs at most three colors. Two triangles with exactly one common vertex require at least five vertices.
4.8 Further questions for interval graphs
The case is solved, but we do not know the complexity of deciding whether an arbitrary interval graph has a PCF -coloring. The eleven-vertex graph in Proposition 15 shows that checking pairs of maximum cliques is not enough. Its forced color choices prevent a PCF four-coloring even though no pair has singleton intersection.
A related question concerns vertices common to all maximum cliques. Let be the family of these cliques.
Conjecture 1 (Two common vertices in maximum cliques). If a connected interval graph has at least two vertices common to all its maximum cliques, then it has a PCF -coloring.
The conjecture holds if every vertex belongs to a maximum clique. Choose two common vertices . A maximum clique containing any vertex also contains , so both are universal. In a proper -coloring, their colors occur nowhere else. They witness one another, and witnesses every remaining vertex. The conjecture also holds for by Theorem 24.
Some intervals may belong only to cliques smaller than . These can lie at either end of the clique path or between maximum cliques. We do not yet have a coloring argument that handles these intervals while preserving witnesses near the common vertices.
The endpoint description of suggests trying to choose witnesses and a matching together in polynomial time. It is also natural to ask whether the bound can be improved, or whether the XP algorithm for can be replaced by an FPT algorithm for this parameter alone.
5 Ordered bipartite graph classes
We study three nested classes of bipartite graphs. Bipartite permutation graphs are biconvex, and biconvex graphs are convex. For biconvex graphs, we prove a tight five-color bound and give a direct exact algorithm. A permutation representation gives a smaller dynamic program for bipartite permutation graphs. For convex graphs, the PCF chromatic number is unbounded, but we give a logarithmic upper bound and show that it is attained for infinitely many sizes of the ordered shore.
The ordering assumptions are useful because PCF--COLORING is NP-complete on general bipartite graphs for every fixed [1]. Our dynamic programs record at most two relevant vertices of each color at a boundary. This is enough to distinguish the three possible neighborhood counts: zero, one, and at least two. Isolated vertices have no conflict-free requirement. The empty graph has the empty coloring and PCF chromatic number zero; the algorithms return this answer immediately. We assume in the running-time analyses.
5.1 Biconvex graphs
A bipartite graph is biconvex if each shore has an order in which every neighborhood from the other shore is an interval. We use a multichain ordering to describe the edges between distance layers. For a connected graph, let be the distance layers from a single root vertex. The layering is a multichain ordering if the bipartite graph between and is a chain graph for every . Thus, on either side of each boundary, the neighborhoods in the other side are ordered by inclusion. Every connected biconvex graph has a multichain ordering, which can be obtained from a biconvex straight ordering [7].
5.1.1 A tight five-color theorem
The proof adapts the cyclic use of three fresh witness colors in the AT-free argument of Sharma, Paul, and Pandey [16, Theorem 9, p. 507]. Here the multichain ordering supplies one vertex in each layer that dominates the next layer. This extends the known five-color bound for bipartite permutation graphs to all biconvex graphs. We give the construction and its proof in full.
Theorem 26. Let be a connected bipartite graph with a multichain ordering. Then . Given the ordering, a PCF coloring with at most five colors can be constructed in linear time. The bound is tight, even for bipartite permutation graphs.
Proof. Let be the given ordering. If , then is a single vertex and one color suffices. Suppose . For each , the sets , with , are ordered by inclusion. Their union
Algorithm 4: MULTICHAIN-FIVE-COLOR()
Input: A connected bipartite graph with a multichain ordering .
Output: A PCF coloring using colors from .
1 if then 2 assign color 1 to the sole vertex and return 3 for to do 4 choose with 5 choose any 6 for to do 7 give every vertex of color 8 give color 9 return
is , because every vertex of has a neighbor in . A largest set in this nested family is therefore all of . Choose with , and choose any .
Give each vertex of color , and give color . Since is bipartite, each distance layer is independent and every edge joins consecutive layers. The ordinary colors alternate between colors 1 and 2. The colors of the selected vertices cycle through 3, 4, 5, and consecutive selected vertices have different colors. The two sets of colors are disjoint, so the coloring is proper.
The root is adjacent to , whose color occurs only once in . Now consider with . It is adjacent to . This is the only vertex of its color in . Every other possible neighbor of lies in . Only in that layer can have one of the colors 3, 4, 5, and its color differs from that of because their indices differ by two modulo three. Thus the color of occurs exactly once in . In the last layer there is no , so the same conclusion holds. This proves the PCF condition.
To find , choose a vertex of maximum degree into . Nestedness ensures that it has the required neighborhood. One scan of the edges computes all these degrees, and the color assignments take linear time. Proposition 28 proves tightness.
Corollary 27. Every biconvex graph has a PCF coloring with at most five colors, and the bound is tight.
Jiménez et al. proved a six-color bound for biconvex graphs, with at most three colors on each shore [13]. The construction above reduces the total to five without restricting the number on each shore. Sharma, Paul, and Pandey already proved the five-color bound for bipartite permutation graphs [16, Corollary 5, p. 507] and its tightness [16, Lemma 1 and Fig. 2, p. 508]. We recall their example and give its lower-bound argument in detail.
Proposition 28 (Sharma et al. [16, Lemma 1 and Fig. 2, p. 508]). There is a bipartite permutation graph on twelve vertices with .
Proof. Let and . Set , , and . In the orders and , the neighborhoods are intervals whose left and right endpoints are nondecreasing. These are strong orders: two crossing edges complete an all-one submatrix. Hence is a bipartite permutation graph [17].
Give the colors 1, 4, 1, 1, 1, respectively, and give the colors 2, 2, 3, 2, 2, 2, 5u_1u_4u_5u_2u_3u_2V$.
Suppose that a PCF coloring used at most four colors. Since , the vertices and must have different colors. Both are adjacent to all of , so at most two colors remain available on . The vertex forces and to have different colors. The vertex forces both of these available colors to occur among ; a monochromatic neighborhood of size three has no unique color. Each available color therefore occurs at least twice in , contradicting the PCF condition at . Four colors do not suffice.
5.1.2 A direct profile dynamic program
We now give an exact algorithm using the multichain ordering. For each boundary , order both shores by nonincreasing degree in that boundary. Write for the order on and for the order on . Every neighborhood is a prefix of the order on the opposite shore. An internal layer has two orders, toward its predecessor and toward its successor; these orders need not agree.
Fix a positive integer . A directional profile records the first two occurrences of each color in an ordered layer. For a color , its entry is 0 if is absent, if is its sole occurrence, and if are its first two occurrences in that order. The last entry permits further occurrences after . One order on has at most profiles. For any prefix , the profile determines : it is zero if contains neither recorded vertex, one if it contains only the first, and two if it contains both. We store the endpoint of each neighborhood prefix, so this count can be read from a profile in constant time.
A layer has no internal edges. The following lemma therefore suffices to check whether two profiles can describe the same coloring of a layer.
Lemma 29 (two-profile realization). Let and be two orders of an independent set , and let be proposed directional profiles. Give each a list . A list coloring realizing both profiles can be found, or its nonexistence decided, in time.
Proof. For each color , define its permitted set . For an entry 0, this set is empty. For an entry , it is . For an entry , it consists of and every vertex after in . Define in the same way and put . Let contain all vertices explicitly named for in either profile.
The profiles can be realized together exactly when four conditions hold. For each color their entries must have the same type, and entries of type 1 must name the same vertex. Next, must hold for every , and the sets must be pairwise disjoint. Every vertex in must allow color . Finally, each vertex outside must allow some color for which it belongs to .
Any coloring realizing the profiles satisfies these conditions. Conversely, give every vertex in color . Give each remaining vertex any color allowed by its list and permitted set. Such a remaining vertex can only use a color of type 2, and it lies after the second recorded occurrence in both orders. It cannot change either profile. Thus the conditions are also sufficient. Testing all colors at each vertex takes time and constructs the coloring.
We next define a test for a layer. An -profile refers to a -order, and a -profile refers to a -order. Let be the capped count of color in a prefix , as determined by profile . For , profiles and give the two counts and . Set . These are the actual capped neighbor counts for any colorings realizing the outer profiles.
If some equals one, let contain the colors with count zero. Otherwise let . Thus the list is empty when the PCF condition fails, and otherwise contains precisely the colors that preserve properness at . Define to hold when can be realized together using these lists. The realization lemma tests this in time.
After validating , the state is the pair . A transition from to is allowed when holds. At the first layer, use its sole order for both internal profiles and initialize the states satisfying . At the last layer, accept a state when holds. A missing neighboring layer contributes zero to every count. Repeating the sole order at an endpoint only checks the coloring of that endpoint layer.
Theorem 30. For each fixed positive integer , PCF-k-COLORING can be solved on an -vertex bipartite graph supplied with a multichain ordering in time. An accepting coloring can be recovered within the same time bound by retaining predecessor pointers.
Proof. A PCF -coloring gives a profile in each order. All neighbors of a vertex of belong to . The outer profiles therefore give its true capped neighbor counts. Its own color has count zero, and some color has count one. Its color belongs to , so every layer passes the test. The coloring gives an accepting sequence of states.
Conversely, take an accepting sequence. Realize the two profiles of each layer using the realization lemma and its lists. Each layer coloring has exactly the profiles used in the tests on its adjacent layers. Consequently, the neighbor counts used to define every list agree with the capped counts in the combined coloring. A vertex receives a color with neighbor count zero and has some neighbor color with count one. The combined coloring is therefore proper and conflict-free.
At layer , a transition chooses two profiles of and one profile of each adjacent layer. There are at most choices. Each test takes time, so the total is at most . This bound includes the smaller endpoint tests and the polynomial preprocessing.
Algorithm 5: FIXED-PCF-MULTICHAIN()
Input: A connected bipartite graph , a multichain ordering , and a positive integer .
Output: A PCF -coloring, or No.
1 if then 2 assign any color to the sole vertex and return the coloring 3 construct all orders and neighborhood-prefix endpoints 4 enumerate the directional profiles of each ordered layer 5 6 foreach pair satisfying do 7 insert into 8 for to do 9 10 foreach and every pair do 11 12 13 do 14 15 return No
For reconstruction, retain a predecessor for each reachable state at every layer. Trace an accepting path and apply the realization lemma once per layer. This takes additional time and returns the coloring within the stated time bound.
Lemma 31. A nonempty bipartite graph has exactly when it is edgeless. If it has an edge, then exactly when .
Proof. One color is proper exactly when there is no edge. Suppose has an edge. In a proper two-coloring of a nontrivial connected bipartite component, all neighbors of a vertex have the opposite color. That color occurs once exactly when the vertex has degree one. Thus a proper two-coloring is PCF exactly when every component containing an edge is a single edge.
Theorem 32. The PCF chromatic number of an -vertex biconvex graph and an optimal coloring can be computed in time.
Proof. The lemma settles the values one and two. If neither case applies, the value is at least three. The calls with and decide whether three or four colors suffice. If both reject, at least five colors are needed, and Corollary 27 supplies five. The call with takes time and dominates the remaining work. Components can use the same palette, so their optimum is the maximum of their individual optima. The sum of their running times is bounded by as well.
5.2 Bipartite permutation graphs
A permutation representation gives smaller states. For each color we keep two extreme vertices before the current cut and two after it. The fixed-palette algorithm below applies to every permutation graph. Together with the five-color bound, it gives an exact algorithm for bipartite permutation graphs.
A permutation diagram represents vertices by segments with endpoints on two parallel lines; no two endpoints on the same line coincide. Order the vertices by their upper endpoints, and let be the rank of the lower endpoint of . For , vertices are adjacent exactly when .
A bipartite graph is a bipartite permutation graph exactly when its shores have strong orders : if and and the edges exist, then exist too. Such graphs can be recognized
Algorithm 6: EXACT-PCF-BICONVEX(G)
Input: A biconvex graph . Output: and an optimal coloring.
1 if then 2 return 0 and the empty coloring 3 if then 4 return 1 and the one-coloring 5 if then 6 return 2 and a proper two-coloring 7 compute a multichain ordering of every nontrivial component 8 run Algorithm 5 with on every component 9 if all components accept then 10 combine their colorings and return 3 11 run Algorithm 5 with on every component 12 if all components accept then 13 combine their colorings and return 4 14 apply Algorithm 4 componentwise and reuse the palette 15 return 5 and the resulting coloring
and their strong orders found in linear time [17]. A corresponding permutation diagram can be constructed in polynomial time, within the running-time bound of our dynamic program.
At the cut after , put and . For a set , let contain its two vertices with largest lower positions, or all of when . Define using the two smallest lower positions.
Lemma 33 (two-extremes lemma). For every cut , every , and every , we have . For every and every , we have .
Proof. For and , adjacency means . The neighbors of a fixed in form a suffix in the lower-endpoint order. If this suffix contains at least two members of , it contains the two highest members. If it contains one member, that member is also retained. This proves the first identity. The neighbors of a fixed in form a prefix, so retaining the two lowest members proves the second identity.
5.2.1 The fixed-palette dynamic program
Fix a positive integer . A state at cut is , where and . Each and has size at most two. The sets within each tuple must be pairwise disjoint. The tuple summarizes the colors already assigned, and is a proposed summary of the colors still to be assigned. We call the latter tuple a promise.
The state is true if there is a coloring with two properties. First, for each . Second, every processed vertex is valid with respect to the promise. To state the latter condition, for set . We require and, unless is isolated, for some . These conditions express properness and the existence of a unique neighbor color. A promise need not itself have a full realization at this cut. An accepting sequence of transitions will ensure its consistency with the colors eventually assigned.
At , mark true for every admissible promise. At a later step, put . Choose a previous processed tuple , a new promise , and a color for . Define the previous promise by and for . Only continue if is true. For each , compute . The transition is allowed if and, unless is isolated, some . Set and for the other colors, and mark true.
Lemma 34. Algorithm 7 accepts exactly the permutation graphs that have a PCF k-coloring.
Algorithm 7: FIXED-PCF-PERMUTATION()
Input: A permutation graph with diagram , and a positive integer .
Output: A PCF -coloring, or No.
1 if then 2 return the empty coloring 3 mark true for every admissible promise tuple 4 for to do 5 6 7 8 9 10 11
Proof. We prove the stated meaning of by induction. At there are no processed vertices, so every promise is valid. Consider an allowed transition assigning to . Updating retains the correct two highest vertices of each processed color class.
For an old vertex , only the contribution of color changes. In the previous state its promised contribution comes from . By the second identity in Lemma 33, this has the same capped contribution as . Thus moving from the promise to the processed side preserves the full capped neighbor-count vector of . The old vertices remain valid.
For , the first identity in the lemma shows that gives the correct capped contribution from the processed color- vertices. Adding its promised contribution from gives . The transition therefore checks exactly the two required conditions at . Every state produced by a transition has the stated meaning.
For the converse, take a coloring satisfying the meaning of a state at . Remove , put , and let be the correct summaries of the remaining color classes. Form by the prescribed update from . The same capped-count identities show that the restricted coloring satisfies the meaning of this previous state. It is present by induction, and the counts at allow the transition back to the chosen state. Hence every state with the stated meaning is generated. At , all promise sets are empty, so the local conditions are precisely those of a PCF coloring of the whole graph.
Theorem 35. Given a permutation diagram of an -vertex graph, PCF--COLORING can be solved in time for each fixed positive . Retaining predecessor pointers recovers a coloring within the same time bound.
Proof. For one color, a summary has possibilities. For this is at most . Thus the processed and promised summaries give at most states at a cut. At each step we enumerate at most previous processed tuples, new promises, and choices of . Updating the tuples and checking all counts takes time. Adjacency is tested in constant time from the endpoint ranks. Over steps, the total is ; the one-vertex case can be answered directly.
To recover a coloring within the same running time, keep one predecessor and the assigned color for each reachable state at every cut. Trace back from any accepting state. No repeated runs of the decision algorithm are needed for this recovery.
5.2.2 Computing the exact value
Sharma et al. established the five-color bound for bipartite permutation graphs [16, Corollary 5, p. 507]; its tightness is proved in their Lemma 1 on p. 508. It also follows from Corollary 27 and the recalled example. We combine this range with the fixed-palette algorithm.
Algorithm 8: EXACT-PCF-BIPARTITE-PERMUTATION(G)
Input: A bipartite permutation graph . Output: and an optimal coloring.
1 if then 2 return 0 and the empty coloring 3 if then 4 return 1 and the one-coloring 5 if then 6 return 2 and a proper two-coloring 7 construct a permutation diagram of 8 run Algorithm 7 with 9 if it accepts then 10 return 3 and the recovered coloring 11 run Algorithm 7 with 12 if it accepts then 13 return 4 and the recovered coloring 14 construct five-colorings componentwise using Algorithm 4 and reuse the palette 15 return 5 and that coloring
Theorem 36. The PCF chromatic number of an n-vertex bipartite permutation graph and an optimal coloring can be computed in time.
Proof. Lemma 31 decides the values one and two. The fixed-palette calls for and take and time, respectively. If both reject, five colors are necessary, and Corollary 27 constructs a coloring with five. The call with dominates the running time.
5.3 Convex bipartite graphs
Let be convex over , so each is an interval in this order. The PCF chromatic number is unbounded on convex bipartite graphs [13]. We give a logarithmic bound in and show that its additive constant is best possible.
Theorem 37. If is convex over an ordered shore of size , then . Given the convex order, a coloring meeting this bound can be constructed in time.
Proof. Put . For , give color , where is the exponent of the largest power of two dividing . Since , this uses at most colors. Every nonempty interval of indices has a unique maximum color. Indeed, between any two indices with the same 2-adic valuation there is an index with a larger valuation. Two indices therefore cannot both realize the maximum valuation in an interval. Each nonisolated has an interval neighborhood, so this maximum color witnesses .
We must also provide a witness for each nonisolated vertex of . We use the standard three-color construction for interval families, recalled by Aronov et al. [3]. Regard the nonempty sets as intervals of . Choose a deletion-minimal subfamily with the same union as the whole family. No three selected intervals contain a common point. To see this, among three such intervals choose one with the leftmost left endpoint and one with the rightmost right endpoint. If they are distinct, they intersect and together cover the third. If they are the same interval, it contains the other two. Either case makes a selected interval redundant, contrary to minimality.
The intersection graph of is therefore a triangle-free interval graph. Interval graphs are chordal, so this graph is a forest. Properly color this forest with colors , and give every vertex of whose interval is outside a third color . Each nonisolated point of belongs to one or two selected intervals. If it belongs to one, that interval's color appears once among its neighbors. If it belongs to two, those intervals intersect and have different colors, each appearing once. The vertices colored do not affect either unique selected color.
Use for . The shores now use disjoint palettes, so the coloring is proper. The coloring of witnesses all nonisolated vertices of , and the selected intervals witness all nonisolated vertices of . Hence the coloring is PCF. This also covers , when is edgeless.
For the running time, store the two endpoints of each nonempty neighborhood and compute the number of intervals covering each point. Initially retain all intervals and scan them once. Delete an interval if every point in it has coverage at least two, decreasing the coverage counters on its points. An interval indispensable when scanned remains indispensable after later deletions, so the final family is deletion-minimal. Each incidence is examined only constantly many times, for work.
Bucket the selected intervals by their integer left endpoints and sweep from left to right. At most one earlier selected interval can still be active when the next starts, since the selected family has depth at most two. The sweep constructs the intersection forest and its two-coloring in linear time. Finally, the colors can be generated in total time: odd positions receive color 1, and an even position receives one plus the color at position . All remaining assignments are linear.
Algorithm 9: CONVEX-PCF-COLOR()
Input: A convex bipartite graph and an order witnessing convexity.
Output: A PCF coloring with at most colors.
1
2 for to do
3 give color
4
5 compute the coverage count of each
6 foreach in a fixed order do
7
9 construct the intersection forest of the intervals of
10 properly color this forest with
11 give each vertex of color
12 return the combined coloring
The additive constant three is attained for infinitely many values of .
Theorem 38. For each integer , there is a convex bipartite graph with and . Thus equality holds in Theorem 37 for infinitely many ordered-shore sizes.
Proof. Let and order the shore as . For each nonempty interval of , introduce a vertex with . Add vertices to . Set and . All these neighborhoods are intervals in , so is convex.
We first use an elementary bound for color words. If every nonempty contiguous subword has a uniquely occurring color and the whole word uses at most colors, its length is at most . For induction, choose a color occurring once in the whole word. The subwords on its two sides have the same property and use at most colors. Each has length at most , giving the required bound after adding the middle position. The empty word supplies the base case .
The neighborhood constraint at every gives this property to the color word on . Since , the word needs at least colors: colors could cover at most positions.
Suppose the whole graph had a PCF coloring with at most colors. Each of is adjacent to all of , so none can use a color appearing on . At most two colors remain for these four vertices. The vertex has neighborhood and forces their colors to differ. Similarly, forces different colors on . Consequently, the same two available colors each occur twice in . The PCF condition fails at , a contradiction. At least colors are needed.
For , the equality gives . The upper bound from Theorem 37 therefore supplies exactly colors.
In terms of the total number of vertices, the upper bound implies . The nested dyadic graphs of Jiménez et al. have vertices and PCF chromatic number at least [13, Proposition 3.8]. Their neighborhoods on the ordered shore are dyadic intervals, so these graphs are convex, in addition to the bipartite circle representation stated there. Adding isolated vertices fills the gaps between these sizes. It follows that the largest PCF chromatic number among convex bipartite graphs on vertices is . Algorithm 9 constructs a coloring meeting the upper bound. The complexity of computing the exact PCF chromatic number on convex bipartite graphs remains open.
6 Conclusion and future research
We proved tight coloring bounds from three graph representations. A partition tree gives a coloring with at most one color beyond the clique number on well-partitioned chordal graphs. The argument also works for lists of size . An interval model gives the same list bound on interval graphs, improving the earlier ordinary bound. A multichain ordering extends the known bipartite permutation bound to a five-coloring on biconvex graphs, while one-sided convexity gives a sharp logarithmic bound. The complexity of exact coloring differs across these classes. Deciding whether the clique bound can be attained is NP-complete on well-partitioned chordal graphs. Biconvex and bipartite permutation graphs admit direct polynomial-time algorithms.
The following questions arise from these results.
-
Exact coloring of interval graphs. Is deciding whether polynomial-time solvable or NP-complete? Once witnesses are prescribed, the matching criterion gives a polynomial test. Choosing the witnesses remains the main difficulty. A structural characterization for would be useful: the eleven-vertex example shows that singleton intersections of maximum cliques are not enough. For every fixed clique number, the endpoint algorithm is already polynomial. Any NP-hardness reduction must therefore use unbounded clique number.
-
A common part of all maximum cliques. Conjecture 1 asks whether two vertices common to all maximum cliques guarantee a PCF -coloring of a connected interval graph. Another question is to describe the minimal graphs needing colors when . Such a description must account for the fact that an induced subgraph may lack a witness even when the whole graph has one.
-
Faster direct algorithms. Can the exponents 33 and 17 be reduced? The current algorithms store at most two representatives of each color in each direction. It may be possible to combine states that have the same effect on later vertices. Structural characterizations of graphs admitting PCF colorings with three or four colors could also lead to simpler algorithms.
-
Exact coloring of convex bipartite graphs. Determine the complexity when the number of colors is part of the input. Combining the logarithmic bound with the general algorithm of Gonzalez and Mann [11] gives an exact -time algorithm. It remains open whether this can be improved to polynomial time, or whether the problem is NP-hard on convex bipartite graphs.
-
List coloring on other chordal classes. Both interval graphs and well-partitioned chordal graphs admit PCF colorings from lists of size . Which further chordal subclasses have this property? The two proofs use different features: an interval order in one case and complete bipartite boundaries in the other. A condition that includes both constructions could give a common explanation for the bounds.
References
[1] J. Ahn, S. Im, and S.-I. Oum. The proper conflict-free -coloring problem and the odd -coloring problem are NP-complete on bipartite graphs. Discrete Applied Mathematics, 377:10–17, 2025.
[2] J. Ahn, L. Jaffke, O.-j. Kwon, and P. T. Lima. Well-partitioned chordal graphs. Discrete Mathematics, 345(10):112985, 2022.
[3] B. Aronov, M. de Berg, A. Markovic, and G. J. Woeginger. Non-monochromatic and conflict-free colorings on tree spaces and planar network spaces. Algorithmica, 82(5):1081–1100, 2020.
[4] R. Belmonte and M. Vatshelle. Graph classes with structured neighborhoods and algorithmic applications. Theoretical Computer Science, 511:54–65, 2013.
[5] Y. Caro, M. Petruševski, and R. Škrekovski. Remarks on proper conflict-free colorings of graphs. Discrete Mathematics, 346(2):113221, 2023.
[6] E.-K. Cho, I. Choi, H. Kwon, and B. Park. Brooks-type theorems for relaxations of square colorings. Discrete Mathematics, 348(1):114233, 2025.
[7] J. Díaz, Ö. Y. Diner, M. Serna, and O. Serra. On list k-coloring convex bipartite graphs. In C. Gentile, G. Stecca, and P. Ventura, editors, Graphs and Combinatorial Optimization: From Theory to Applications, volume 5 of AIRO Springer Series, pages 15–26. Springer, Cham, 2021.
[8] R. P. Dilworth. A decomposition theorem for partially ordered sets. Annals of Mathematics, 51(1):161–166, 1950.
[9] I. Fabrici, B. Lužar, S. Rindošová, and R. Soták. Proper conflict-free and unique-maximum colorings of planar graphs with respect to neighborhoods. Discrete Applied Mathematics, 324:80–92, 2023.
[10] M. R. Garey and D. S. Johnson. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman and Company, San Francisco, 1979. Exact Cover by 3-Sets is Problem SP2.
[11] C. L. Gonzalez and F. Mann. On d-stable locally checkable problems parameterized by mim-width. Discrete Applied Mathematics, 347:1–22, 2024.
[12] J. E. Hopcroft and R. M. Karp. An algorithm for maximum matchings in bipartite graphs. SIAM Journal on Computing, 2(4):225–231, 1973.
[13] A. Jiménez, K. Knauer, C. N. Lintzmayer, M. Matamala, J. P. Peña, D. A. Quiroz, M. Sambinelli, Y. Wakabayashi, W. Yu, and J. Zamora. Boundedness for proper conflict-free and odd colorings. Discrete Mathematics, 349(2):114730, 2026.
[14] C.-H. Liu. Proper conflict-free list-coloring, odd minors, subdivisions, and layered treewidth. Discrete Mathematics, 347(1):113668, 2024.
[15] D. Pradhan and V. Sharma. Complexity and algorithms for proper conflict-free coloring in graphs, 2026. arXiv:2608.10874.
[16] A. Sharma, K. Paul, and A. Pandey. Improved bounds on proper conflict-free coloring of graphs. In F. Foucaud and A. Parreau, editors, Combinatorial Algorithms, volume 16587 of Lecture Notes in Computer Science, pages 500–514, Cham, 2026. Springer.
[17] J. P. Spinrad, A. Brandstädt, and L. Stewart. Bipartite permutation graphs. Discrete Applied Mathematics, 18(3):279–292, 1987.