WorksMathematics
Generalized anti-Ramsey numbers
Abstract
The anti-Ramsey number was introduced by Erdős, Simonovits, and Sós and is defined to be the maximum number of colors that can be used to color the edges of a graph to avoid a rainbow copy of some graph. One can generalize this by, instead of forbidding a rainbow copy of a graph, putting a cap on the number of colors that appear on any copy of that graph. To be precise, let \AR(G,H,q) be the maximum number of colors that can be used to color so that every copy of sees at most colors. One can see that \AR(G,H,q) is nondecreasing in . In this paper, we investigate the linear and quadratic thresholds of \AR(G,H,q) when and is connected.
Introduction
Ramsey theory is of course a topic that appears in many areas of mathematics. The original questions investigated by Ramsey involved finding the minimum size of a structure that guaranteed the existence of a monochromatic substructure. Erdős, Simonovits, and Sós [9] introduced anti-Ramsey problems which ask for the maximum number of colors that can be used to color a structure to avoid a rainbow copy of some substructure. These concepts have been generalized in numerous ways since their introduction and this paper will investigate one such generalization.
Definition 1.1. The generalized Ramsey number is the minimum number of colors in a coloring of such that every copy of receives at least colors. We may analogously define the generalized anti-Ramsey number as the maximum number of colors in a coloring of such that every copy of receives at most colors.1
Note that for , the case corresponds to the classical multicolor Ramsey problem. For , the case corresponds to the classical anti-Ramsey problem. It should be noted that Mubayi and West [20] studied an even more general extension of the anti-Ramsey number where the number of colors in any copy of is bounded both from above and below.
These definitions can take a bit to get used to and so, in an effort to make them clearer, we note the following. Call an -coloring, , exact if it is surjective, i.e., if each color appears at least once. In this case, we say that has been exactly colored with colors. Then:
means that there exists an -coloring of such that every copy of receives at least colors.
means that every -coloring of contains a copy of with at most colors.
means that every exact -coloring of contains a copy of with at least colors.
means that there exists an exact -coloring of such that every copy of receives at most colors.
We give a short and incomplete history of generalized Ramsey numbers before moving on to anti-Ramsey problems. The problem of determining was first introduced by Erdős and Shelah (see [8]) and the first results were found by Elekes, Erdős, and Füredi (see [11]). Erdős and Gyárfás [12] then found the linear and quadratic thresholds for , i.e., the smallest for which and , respectively. Axenovich, Füredi, and Mubayi [4] investigated thresholds for and, more recently, Krueger [16] studied thresholds for . The first author, along with Bennett, Heath, and Zerbib [6] generalized the problem further to requiring that each graph in some set sees at least colors, and also to the hypergraph setting. Throughout the paper, unless otherwise stated, assume that target graphs are fixed in asymptotic statements and that is sufficiently large.
The story of generalized anti-Ramsey numbers begins with Erdős, Simonovits, and Sós [9] who introduced the classical anti-Ramsey number, . They conjectured that
and proved the case. Alon [3] proved the case, and Jiang and West [14] improved the general lower bound, before Montellano-Ballesteros and Neumann-Lara [19] resolved the full conjecture.
Theorem 1.2 (Montellano-Ballesteros, Neumann-Lara). For all , we have
Jiang [13] studied the problem when is a star. We let be the star with leaves, i.e., . Jiang proved that if , then
where . Note that this also gives the generalized anti-Ramsey number for the star: every sees at most colors is equivalent to containing no rainbow . Jiang and West [14] investigated the anti-Ramsey problem where is a tree or indeed a family of trees. They showed that if is a tree with edges and , then
where is a constant depending only on .
As with generalized Ramsey numbers, we will be interested in the behavior of for a fixed graph as increases. Note that
, provided that and , and
since in the first case, one can use at most one color on the edges of , and in the second, every edge of can receive a different color. So, for a given graph , we will investigate the smallest integer for which , which we will call the linear threshold. Similarly, we will be interested in finding the quadratic threshold as well.
Perhaps the most studied question in this vein is that of determining for various values of , , and . We begin with a construction that gives a lower bound.
Example 1.3. Suppose the vertices of are labeled . We get an edge-coloring of by letting edge for be colored . Then note that any for sees exactly colors since the edges are colored with colors corresponding to the vertex labels except for the largest one.
Note that Example 1.3 gives that . Erdős, Simonovits, and Sós [9] proved that equality holds for . Ahlswede, Cai, and Zhang [2] then showed equality holds for all . In fact, Ahlswede, Cai, and Zhang gave a result that covers other values of as well. We let be the Turán number, so that it is the number of edges in the Turán graph, .2
Theorem 1.4 (Ahlswede, Cai, Zhang). If , and , we have
Very roughly speaking, this result states that if , the number of colors that a sees is roughly quadratic in (about ), then the generalized anti-Ramsey number is quadratic in .
Axenovich and Kündgen [5] investigated a generalization of this problem and noted that if and only if . In so doing, they noted that there are constructions of graphs with girth and at least edges. (See, e.g., [17].) If one colors the edges of such a graph with all different colors and its complement with one additional color, one gets a coloring with a super-linear number of colors in which every sees at most colors. In other words, we get
In the case , all cases are covered by the results outlined above. In particular, we have by the result of Erdős, Simonovits, and Sós as of course . In the case , we know . However, the case is not covered by any of these results. It has been shown that
where the lower bound comes from a result of Erdős [7] that there is a graph on vertices with girth five and at least edges. The upper bound follows from a result of Montellano-Ballesteros [18] on the anti-Ramsey number of diamonds.
In this paper, we investigate several problems related to the generalized anti-Ramsey number . In § 2, we present some results when is complete and is a path or a cycle. In § 3, we prove our main result, in which we determine the linear threshold for connected graphs. We write for the maximum degree of a graph and for the maximum size of a matching in .
Theorem 1.5. Let be a connected graph on at least 3 vertices and suppose . Assuming is sufficiently large, we have
, and
.
In § 4 we prove the following theorem which determines the quadratic threshold for any graph , which depends on whether is bipartite or not.
Theorem 1.6. Let be a graph on vertices with and suppose that is the number of edges in the largest bipartite subgraph of . Then
if is bipartite, then and and , and
if is nonbipartite, then and .
Paths and Cycles
In this section, we investigate and gather results about and for various , , and . Much of this will follow from classical results, but we believe there is some value in collecting it for reference. Throughout this section, we’ll be interested in determining the asymptotics of and as goes to infinity.
We’ll start with paths. It is trivial that as there is no restriction on the coloring in this case. But note that corresponds exactly to the classical anti-Ramsey question as by stipulating that each sees at most colors is equivalent to containing no rainbow s.
Erdős, Simonovits, and Sós [9] proved the following.
Theorem 2.1 (Erdős, Simonovits, Sós). Let be a given integer, , and . Then, if is large, we have
The proof appeared in a paper of Simonovits and Sós [21]. Further, Erdős, Simonovits, and Sós made a conjecture about the behavior for all . The full conjecture has been resolved by Yuan [22].
Note that, for any graph , we have that is monotone in subgraphs. To be precise, we have the following.
Proposition 2.2. If is a subgraph of and , then
Proof. To see this, observe that if there exists an -coloring of such that every copy of receives at most colors, then certainly every copy of receives at most colors.
But then for all , by Proposition 2.2, since , we know as the construction that works for smaller paths also works for longer paths. Thus, we can give the asymptotics of for all values of and by combining Theorem 2.1 and Proposition 2.2. Note that we assume that since if , we trivially have .
Theorem 2.3. If is sufficiently large, , and where , then
Proof. As noted above, we have that by Proposition 2.2. Then, in Theorem 2.1, we have so that if , we know , and so the second equality holds. We end by showing a construction that gives the result. This is a construction due to Erdős, Simonovits, and Sós [9]. Choose vertices in , say . Color all edges with at least one endpoint an for some with different colors and color all other edges (so those in ) with either one additional color, if , or two additional colors, if . Then any sees at most colors.
Moving on to cycles, since , we know that for any . We also know that corresponds to the classical anti-Ramsey problem and so these are done by the theorem of Montellano-Ballesteros and Neumann-Lara [19], that is, Theorem 1.2. For other values of , we can fall back on what we know about paths, as paths are subgraphs of cycles.
Proposition 2.4. If and is sufficiently large, then
Proof. For , we know that and by Proposition 2.2. So, we need to show equality in both cases. We note that the same construction that works for the anti-Ramsey case of the path on vertices works for any cycle of length at least . (See the proof of Theorem 2.3.) So, we have equality across the board and the proposition holds.
We summarize the generalized anti-Ramsey numbers of some small cycles in Table 1.
| \ | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 3 | 1 | |||||||
| 4 | 1 | 2 | ||||||
| 5 | 1 | 2 | ||||||
| 6 | 1 | 2 | ||||||
| 7 | 1 | 2 | ||||||
| 8 | 1 | 2 |
Table 1. A table of values of for various values of and , assuming is large enough. The entries when correspond to the anti-Ramsey numbers for cycles (Theorem 1.2).
Linear threshold for connected graphs
In this section we identify the linear threshold for every connected graph . We begin by showing that two standard colorings of yield bounds on the generalized anti-Ramsey number.
Definition 3.1 (Star Coloring). Let be colored as follows. Totally multicolor all edges incident to a single vertex (called the TMC vertex) and then color all remaining edges with one new color. This coloring uses colors.
Definition 3.2 (Turán Coloring). Let be colored as follows. Totally multicolor a matching of size (the TMC matching) and color all remaining edges with one new color. This coloring uses colors.
Using these two colorings, we get the following lower bounds on the generalized anti-Ramsey number of a graph. Recall that the matching number of a graph , denoted , is the maximum size of a matching in .
Proposition 3.3. For any graph with maximum degree and matching number , we have
(i) , and
(ii) .
Proof. To prove (i), consider a star coloring of . Any copy of sees at most colors. Indeed any copy of which maps vertex to the TMC vertex of the star coloring will see at most colors.
To prove (ii), consider a Turán coloring of . Any copy of sees at most colors. Indeed any copy of which maps the edges of a matching of size into the TMC matching of the Turán coloring will see at most colors.
We next present two very simple lemmas. The first guarantees the existence of some structure in graphs with given maximum degree. Note that the broom, denoted is the graph formed from by subdividing one of the edges times. Note that Jiang and West [14] studied the classical anti-Ramsey number of brooms.
Lemma 3.4. Suppose is a connected graph with maximum degree . Either
(i) and
(a) is a star, or
(b) is a triangle, or
(c) contains a broom ,
or
(ii) contains a broom .
Proof. Consider a vertex of degree . If , and is not a star or a triangle, then there is an edge among . Thus we can find a broom . If , then must contain an edge from to since is connected. This edge plus the star centered at forms a broom .
The second straightforward lemma guarantees structure in graphs with given matching number.
Recall that for a graph , we let be the disjoint union of copies of .
Lemma 3.5. Suppose is a connected graph with matching number . Then contains at least one of the following:
, or
.
Proof. Let be a matching of size and let be an edge of . Since is connected, is incident to another edge . If , then we have 1. If , then we have 2.
The following definition, introduced by Erdős, Simonovits, and Sós, is helpful here and elsewhere.
Definition 3.6. Given an edge-coloring of a graph , a representation of is a subgraph of consisting of one edge of each color of $c.
Our main lemma follows. It should be noted that we did not optimize the result in terms of the number of colors, but rather used the values that made the proof work smoothly.
Lemma 3.7. Let . If is exactly colored with colors, then the coloring either contains both of
a rainbow and
a rainbow ,
or it contains all three of
a rainbow ,
a rainbow , and
a rainbow .
Proof. Consider a representation of the coloring, that is, a graph which consists of one edge of each color. A result of Abbott, Hanson, and Sauer [1] says that contains either (I) a vertex of degree at least or (II) a matching of size .
If (I) happens, then we have a rainbow and so we certainly have a rainbow . Suppose the rainbow has center vertex and leaves such that edge receives color for all . Consider the edge in . No matter which color this edge receives, one can find a rainbow copy of by ignoring one of or and potentially one other edge when .
If (II) happens, then we may assume that contains a matching of size with edges such that receives color for all . If any edge between and receives a color other than 1 or 2, then we have a rainbow which, along with (potentially ignoring edge ), forms a rainbow . So without loss of generality, we may assume these 4 edges are colored with 1 and 2 and that is colored with 1. So the path and the edges form a rainbow . For the remainder of the proof, in each case, we will identify a rainbow and one can easily verify that there are edges among which do not share a vertex or a color with the identified . If is colored with a color , then is a rainbow . If is colored with 3, then is a rainbow . So we assume is colored with 1. If is color , then is a rainbow . If has color 3, then is a rainbow . So we may assume that is colored with 2. Finally we consider edge . We know this edge is colored with either 1 or 2. If it is colored with 1, then is the desired and if it is colored with 2, then is the desired .
We are now ready to prove Theorem 1.5 which gives the linear threshold for connected graphs.
Proof of Theorem 1.5. Part (ii) follows directly from Proposition 3.3. Part (i) follows from Lemmas 3.4, 3.5, and 3.7. Note that if and only if is a triangle or a star. In this case, we need to show that every exact -coloring of contains a triangle or a star which sees at least 2 colors. This is clear (even for an exact 2-coloring of ) since there must be some vertex where two color classes intersect. So we may assume that is not a star or a triangle and that .
First suppose that . Then by Lemma 3.4, either or contains a broom . If , then since is not a star or a triangle, we must have a broom . This broom contains a since . This last inequality holds for which we may assume since is not a triangle or a star. By Lemma 3.5 contains at least one of or . Thus in either case of Lemma 3.7, we find a -colored subgraph of and hence there is a copy of which sees at least colors.
Similarly, if , then we cannot have that and so by Lemma 3.4, contains a and also contains a since we are assuming that . Again, in either case of Lemma 3.7 we are done.
Quadratic Thresholds
Erdős, Simonovits, and Sós (essentially) proved the following general theorem about the classical anti-Ramsey number. Recall that given a graph and a set of graphs , the extremal number is the maximum number of edges in an -free subgraph of .
Lemma 4.1. For any graphs and , with appearing as a subgraph of ,
where .
This lemma is enough for us to prove part (i) of Theorem 1.6. If is bipartite on vertices with edges, then trivially as there are no restrictions on the coloring. On the other hand, by Lemma 4.1, we have that
where the final estimate follows from the Kővári-Sós-Turán theorem [15].
To prove part (ii) of Theorem 1.6, we need to do a bit more work. Mubayi and West proved the following lemmas which generalize Lemma 4.1 to in the natural way (Lemmas 5.1 and 5.2 in [20]). We include proofs for completeness.
Lemma 4.2. Let be any family of subgraphs of each with at least edges. Further suppose that for every , every copy of in can be extended to a copy of in (automatic when and ). Then
Proof. Consider an exact coloring of . Any representation of this coloring contains a -colored that is contained in a copy of .
Lemma 4.3. Let be any family of graphs and suppose that the largest -free subgraph of has edges and that . Then
Proof. Consider an -free subgraph of with many edges. Color each edge of with a distinct color and color the edges of with a new color . Any copy of has at most edges from and all other edges of color . So every copy of sees at most colors.
Notice that Lemma Lemma 4.1 follows from these two. For the upper bound, apply Lemma Lemma 4.2 with . For the lower bound, apply Lemma Lemma 4.3 with . In both cases, .
The following theorem almost determines the quadratic threshold for all nonbipartite graphs. It is a simple corollary of Lemmas 4.2 and 4.3.
Theorem 4.4. Let be a nonbipartite graph and suppose that is the number of edges in the largest bipartite subgraph of . Then and .
Proof. Let be a bipartite subgraph of with edges. Then by Lemma Lemma 4.2 with we have
The last inequality follows from the Erdős–Stone theorem [10]. To prove the lower bound, let be the family of all odd cycles and apply Lemma Lemma 4.3. The quadratic lower bound comes from König’s Theorem (or really just the observation that the complete balanced bipartite graph contains no odd cycles).
While one can show that follows from the Erdős–Stone–Simonovits Theorem, we can do slightly better by an argument of Axenovich and K\u00fcndgen [5].
Theorem 4.5. Let be a nonbipartite graph on vertices and suppose that is the number of edges in the largest bipartite subgraph of . Then .
Proof. Let be a bipartite subgraph of with edges. Let be any edge in . Let . Let by the Kővári–Sós–Turán theorem [15]. Consider an exact coloring of . Then any representation of this coloring contains a rainbow and say the bipartition of is . Select any edge inside and suppose it has color . This color appears on at most once since is rainbow. Thus we may ignore one vertex from (the one incident to color in if it exists) to obtain a rainbow which does not see color . Then we can embed on the edge of color and embed the rest of on . This gives a copy of , and hence , which sees at least colors.
AI Declaration
The mathematical content of this paper was done without the use of generative AI. Prior to submission, we used GPT 6.1 Sol to proofread.
References
- [1]H. L. Abbott, D. Hanson, and N. Sauer, Intersection theorems for systems of sets, Journal of Combinatorial Theory, Series A 12 (1972), no. 3, 381–389.DOI
- [2]R. Ahlswede, N. Cai, and Z. Zhang, Rich colorings with local constraints, J. Combin. Inform. System Sci. 17 (1992), no. 3-4, 203–216.
- [3]Noga Alon, On a conjecture of Erdős, Simonovits, and Sós concerning anti-Ramsey theorems, J. Graph Theory 7 (1983), no. 1, 91–94.
- [4]Maria Axenovich, Zoltán Füredi, and Dhruv Mubayi, On generalized Ramsey theory: the bipartite case, J. Combin. Theory Ser. B 79 (2000), no. 1, 66–86.DOI
- [5]Maria Axenovich and André Kündgen, On a generalized anti-Ramsey problem, Combinatorica 21 (2001), no. 3, 335–349.DOI
- [6]Deepak Bal, Patrick Bennett, Emily Heath, and Shira Zerbib, Generalized Ramsey numbers of cycles, paths, and hypergraphs, European J. Combin. 132 (2026), Paper No. 104281, 19.arxiv.org/abs/2405.15904
- [7]P. Erdős, On sequences of integers no one of which divides the product of two others and on some related problems, Mittheil. Forsch.-Inst. Math. Mech. Univ. Tomsk 2 (1938), 74–82.
- [8]———, On extremal problems of graphs and generalized graphs, Israel J. Math. 2 (1964), 183–190.DOI
- [9]P. Erdős, M. Simonovits, and V. T. Sós, Anti-Ramsey theorems, Infinite and finite sets (Colloq., Keszthely, 1973; dedicated to P. Erdős on his 60th birthday), Vols. I, II, III, Colloq. Math. Soc. János Bolyai, vol. 10, North-Holland, Amsterdam-London, 1975, pp. 633–643.
- [10]P. Erdős and A. H. Stone, On the structure of linear graphs, Bull. Amer. Math. Soc. 52 (1946), 1087–1091.
- [11]Paul Erdős, Problems and results on finite and infinite graphs, Recent advances in graph theory (Proc. Second Czechoslovak Sympos., Prague, 1974), Academia, Prague, 1975, pp. 183–192. (loose errata).
- [12]Paul Erdős and András Gyárfás, A variant of the classical Ramsey problem, Combinatorica 17 (1997), no. 4, 459–467.DOI
- [13]Tao Jiang, Edge-colorings with no large polychromatic stars, Graphs Combin. 18 (2002), no. 2, 303–308.DOI
- [14]Tao Jiang and Douglas B. West, Edge-colorings of complete graphs that avoid polychromatic trees, Discrete Math. 274 (2004), no. 1-3, 137–145.
- [15]T. Kővári, V. T. Sós, and P. Turán, On a problem of K. Zarankiewicz, Colloq. Math. 3 (1954), 50–57.DOI
- [16]Robert A. Krueger, Generalized Ramsey numbers: forbidding paths with few colors, Electron. J. Combin. 27 (2020), no. 1, Paper No. 1.44, 10.arxiv.org/abs/1906.06935
- [17]F. Lazebnik, V. A. Ustimenko, and A. J. Woldar, A new series of dense graphs of high girth, Bull. Amer. Math. Soc. (N.S.) 32 (1995), no. 1, 73–79.arxiv.org/abs/math/9501231
- [18]J. J. Montellano-Ballesteros, An anti-Ramsey theorem on diamonds, Graphs Combin. 26 (2010), no. 2, 283–291.
- [19]J. J. Montellano-Ballesteros and V. Neumann-Lara, An anti-Ramsey theorem on cycles, Graphs Combin. 21 (2005), no. 3, 343–354.
- [20]Dhruv Mubayi and Douglas B. West, On restricted edge-colorings of bicliques, Discrete Math. 257 (2002), no. 2-3, 513–529, Kleitman and combinatorics: a celebration (Cambridge, MA, 1999).DOI
- [21]Miklós Simonovits and Vera T. Sós, On restricted colourings of Kₙ, Combinatorica 4 (1984), no. 1, 101–110.
- [22]Long-Tu Yuan, Anti-Ramsey numbers for paths, 2021, arXiv:2102.00807.arxiv.org/abs/2102.00807