Abstract
A straight-line drawing of a graph G is a mapping which assigns to each vertex a point in the plane and to each edge a straight-line segment connecting the corresponding two points. The rectilinear crossing number of a graph \(G, \text {cr}(G)\), is the minimum number of pairs of crossing edges in any straight-line drawing of G. Determining or estimating \(\overline{\mathrm{cr}}(G)\) appears to be a difficult problem, and deciding if \(\overline{\mathrm{cr}}(G)\le k\) is known to be NP-hard. In fact, the asymptotic behavior of \(\overline{\mathrm{cr}}(K_n)\) is still unknown.
In this paper, we present a deterministic \(n^{2+o(1)}\)-time algorithm that finds a straight-line drawing of any n-vertex graph G with \(\overline{\mathrm{cr}}(G) + o(n^4)\) pairs of crossing edges. Together with the well-known Crossing Lemma due to Ajtai et al. and Leighton, this result implies that for any dense n-vertex graph G, one can efficiently find a straight-line drawing of G with \((1 + o(1))\overline{\mathrm{cr}}(G)\) pairs of crossing edges.
Keywords
- Straight-line Drawing
- Edge-weighted Graph
- Abstract Order Type
- Convex Position
- Alternative Heuristic Methods
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
J. Fox—Supported by a Packard Fellowship, by NSF CAREER award DMS 1352121, and by an Alfred P. Sloan Fellowship.
J. Pach—Supported by a Hungarian Science Foundation NKFI grant, by Swiss National Science Foundation Grants 200021-165977 and 200020-162884.
A. Suk—Supported by NSF grant DMS-1500153.
You have full access to this open access chapter, Download conference paper PDF
1 Introduction
A drawing of a graph G is a mapping f that assigns to each vertex a distinct point in the plane and to each edge uv a continuous arc connecting f(u) and f(v), not passing through the image of any other vertex. Two edges in a drawing cross if their interiors have a point in common. The crossing number of G, denoted by \(\text {cr}(G)\), is the minimum number of pairs of crossing edges in any drawing of G. Hence, \(\text {cr}(G) = 0\) if and only if G is planar. Determining or estimating the crossing number of a graph is one of the oldest problems in graph theory, with over 700 papers written on the subject. We refrain here from attempting to give an overview of the long history of crossing numbers and their applications in discrete and computational geometry, and refer the reader to the survey articles by Pach and Tóth [31], Schaefer [33], and the extensive bibliography maintained by Vrt’o [40].
In the present paper, we focus on straight-line drawings of a graph G, that is, drawings of G where the edges are represented by straight-line segments. We will assume that in all such drawings, no three vertices are collinear, and no point lies in the interior of three distinct edges. The rectilinear crossing number of G, denoted by \(\overline{\mathrm{cr}}(G)\), is the minimum number of pairs of crossing edges in any straight-line drawing of G. Clearly \(\text {cr}(G) \le \overline{\mathrm{cr}}(G)\), and a theorem of Fáry [18] states that \(\overline{\mathrm{cr}}(G) = 0\) when G is planar. On the other hand, it was shown by Bienstock and Dean [9] that there are graphs with crossing number four, whose rectilinear crossing numbers are arbitrarily large.
Determining the rectilinear crossing number of a graph appears to be a difficult problem. In fact, the asymptotic value of \(\overline{\mathrm{cr}}(K_n)\) is still unknown. The exact values for \(\overline{\mathrm{cr}}(K_n)\) are known for \(n \le 27\) and \(n = 30\), and for large n, the current best known bounds are
due to Ábrego et al. [1] and Fabila-Monroy and López [17] respectively. For more details on \(\overline{\mathrm{cr}}(K_n)\), including its striking connection to Sylvester’s four-point problem [37, 38], see [2, 34].
From an algorithmic point of view, computing \(\overline{\mathrm{cr}}(G)\) is known to be NP-hard [8]. More precisely, it is known to be \(\exists \mathbb {R}\)-complete, that is, complete for the existential theory of the reals (see [32, 33]). On the other hand, many researchers have designed polynomial time algorithms for approximating crossing numbers of sparse graphs. In particular, a seminal result of Hopcroft and Tarjan [25] is that there is a linear time algorithm for testing planarity of a graph. Kawarabayashi and Reed [26] generalized their result and established a linear time algorithm that decides whether \(\text {cr}(G) \le k\) when k is fixed. Leighton and Rao [28] obtained an efficient algorithm that finds a drawing of any bounded-degree n vertex graph G with at most \(O(\log ^4n)(n + \text {cr}(G))\) pairs of crossing edges. This was later improved by Even, Guha, and Schieber [16] to \(O(\log ^3n)(n + \text {cr}(G))\), and further improved by Arora, Rao, and Vazirani [6] to \(O(\log ^2n)(n + \text {cr}(G))\). For more results on computing \(\text {cr}(G)\) for bounded degree graphs, see [14].
For dense graphs G, very little is known about \(\overline{\mathrm{cr}}(G)\), and as mentioned above, not even the asymptotic value of \(\overline{\mathrm{cr}}(K_n)\). Our main result is the following.
Theorem 1
There is a deterministic \(n^{2 + o(1)}\)-time algorithm for constructing a straight-line drawing of any n-vertex graph G in the plane with
crossing pairs of edges, where \(\delta >0\) is an absolute constant.
A classic result of Ajtai et al. [5] and Leighton [27], known as the Crossing Lemma, implies that the rectilinear crossing number of any n-vertex graph with e edges is at least \(\frac{e^3}{64n^2} - 4n\). Hence all n-vertex graphs G with \(\varOmega (n^2)\) edges satisfy \(\overline{\mathrm{cr}}(G) \ge \varOmega (n^4)\). This implies the following.
Corollary 1
There is a deterministic \(n^{2 + o(1)}\)-time algorithm for constructing a straight-line drawing of any n-vertex graph G with \(|E(G)| \ge \varepsilon n^2\), where \(\varepsilon > 0\) is fixed, such that the drawing has at most \((1 + o(1))\overline{\mathrm{cr}}(G)\) crossing pairs of edges.
A sequence \((G_n: n = 1, 2, \ldots )\) of graphs with \(|V(G_n)| = n\) is called quasi-random with density p (where \(0< p < 1\)) if, for all subsets \(X,Y \subset V(G_n)\), \(e_{G_n}(X,Y) = p|X||Y| + o(n^2)\). An important result of Chung, Graham, and Wilson [12] shows that being quasi-random with density p is equivalent to many other properties almost surely satisfied by the random graph G(n, p). Studying properties of quasi-random graphs has been an important research direction with numerous applications. In Sect. 5, we prove the following result.
Theorem 2
Fix \(0< p < 1\) and let \((G_n : n = 1, 2, \ldots )\) be a sequence of graphs that is quasi-random with density p. Then
More generally, we show any two edge-weighted graphs which are close in cut-distance have rectilinear crossing numbers which are close (see Lemma 3). For results on crossing numbers of random graphs, consult [36].
Organization. In the next section, we collect several geometric results on planar point sets and give an exponential time algorithm for computing the rectilinear crossing number of a (small) graph. In Sect. 3, we show that if two graphs are close in cut-distance, then their rectilinear crossing numbers are approximately the same. In Sect. 4, we prove Theorem 1. Finally in Sect. 5, we prove Theorem 2.
We omit floor and ceiling signs whenever they are not crucial. All logarithms are base 2.
2 Order Types and Same-Type Transversals
Let \(V = (v_1,\ldots ,v_n)\) be an n-element point sequence in \(\mathbb {R}^2\) in general position, that is, no three members of V are collinear. The order type of V is the mapping \(\chi :{V \atopwithdelims ()3}\rightarrow \{+1,-1\}\) (positive orientation, negative orientation), assigning each triple of V its orientation. By setting \(v_i = (x_i,y_i) \in \mathbb {R}^2\), for \(i_1< i_2 < i_3\),
Therefore, two n-element point sequences \(V=(v_1,\ldots , v_n)\) and \(U = (u_1,\ldots , u_n)\) have the same order type if they are “combinatorially equivalent". By lexicographically ranking each triple \((i_1,i_2,i_3)\), where \(1 \le i_1< i_2 < i_3\le n\), we can describe each order type \(\chi \) with the vector \((\chi _1,\chi _2,\ldots ) \in \{-1,+1\}^{n\atopwithdelims ()3}\), such that \(\chi _j = +1\) if and only if \(\chi (\{v_{i_1},v_{i_2},v_{i_3}\}) > 0\) and \(\text {Rank}(i_1,i_2,i_3) = j\). We will call vectors \(\chi ^{*} \in \{-1,+1\}^{n\atopwithdelims ()3}\) abstract order types, and we say that an abstract order type \(\chi ^{*}\) is realizable if there is a point set V in the plane whose order type realizes \(\chi ^{*}\). The concept of order types was introduced by Goodman and Pollack [23] and has played a crucial role in gathering knowledge about crossing numbers. See [22, 23] for more background on order types.
Given k disjoint subsets \(V_1,\ldots , V_k \subset V\), a transversal of \((V_1,\ldots ,V_k)\) is any k-element sequence \((v_1,\ldots , v_k)\) such that \(v_i \in V_i\) for all i. We say that the k-tuple of parts \((V_1,\ldots , V_k)\) has same-type transversals if all of its transversals have the same order type. One of the key ingredients in the proof of Theorem 1 is the following regularity lemma for same-type transversals established by the authors in [20]. A partition on a finite set V is called equitable if any two parts differ in size by at most one.
Theorem 3
There is an absolute constant C such that the following holds. For each \(0< \varepsilon < 1\) and for any finite point set V in \({\mathbb R}^2\), there is an equitable partition \(V = V_1\cup V_2\cup \cdots \cup V_K\), with \(1/\varepsilon< K < \varepsilon ^{-C}\), such that all but at most \(\varepsilon {K\atopwithdelims ()4}\) quadruples of parts \(\{V_{i_1},V_{i_2},V_{i_3},V_{i_4}\}\) have same-type transversals.
For small graphs \(G = (V,E)\) with \(|V(G)| = K\), we can compute \(\overline{\mathrm{cr}}(G)\) as follows. We generate \({K\atopwithdelims ()3}\) polynomials \(f_1,f_2,\ldots , f_{{K\atopwithdelims ()3}} \in {\mathbb R}[x_1,\ldots , x_K,y_1,\ldots , y_K]\), where for \(1 \le i_1< i_2 < i_3\le K\) and \(\text {Rank}(i_1,i_2,i_3) = j\), we have
Fix an abstract order type \(\chi ^{*}\in \{+1,-1\}^{K\atopwithdelims ()3}\), and let \(j_1,\ldots ,j_r\) be the indices for which \(\chi ^{*}_{j_{\ell }} = +1\), and let \(j'_1,\ldots , j'_s\) be the indices for which \(\chi ^{*}_{j'_{\ell }} = -1\). In order to decide if \(\chi ^{*}\) is realizable, we need to see if there are real solutions to the polynomial system
This is a special case of the satisfiability problem in the existential theory of the reals (see [10]). By an algorithm of Basu, Pollack, and Roy [7], we can decide if the polynomial system above has real solutions in \(2^{O(K\log K)}\) time. Moreover, if there are solutions, the algorithm will output a solution \((x_1,\ldots , x_K,y_1,\ldots , y_K)\), where each coordinate uses at most \(2^{O(K \log K)}\) bits. Hence if \(\chi ^{*}\) is realizable, we obtain a point set \(V = \{v_1,\ldots , v_K\}\) in the plane that realizes \(\chi ^{*}\), and each point has at most \(2^{O(K\log K)}\) bits.
If we do obtain such a point set V, we then compute the minimum number of pairs of crossing edges over all straight-line drawings of G which uses V as its vertex set. This can be done in \(2^{O(K\log K)}\) time. By repeating the procedure above over all \(2^{{K\atopwithdelims ()3}}\) abstract order types \(\chi ^{*}\), we have the following.
Lemma 1
Given a graph G on K vertices, we can find a straight-line drawing of G with \(\overline{\mathrm{cr}}(G)\) pairs of crossing edges in \(2^{O(K^3)}\) time.
See [3, 4] for an alternative heuristic method for computing \(\overline{\mathrm{cr}}(G)\).
3 Cut-Distance and the Frieze–Kannan Regularity Lemma
An edge weighted graph \(G = (V,E)\) is a graph with weights \(w_G(uv) \in [0,1]\) associated with each edge \(uv \in E(G)\). For convenience, set \(w_G(uv) = 0\) if \(uv \not \in E(G)\). For \(S,T \subset V(G)\), we define
Note that if the sets S and T have a nonempty intersection, the weights of the edges running in \(S\cap T\) are counted twice. Let G and \(G'\) be two edge weighted labeled graphs with the same vertex set \(V = \{v_1,\ldots , v_n\}\). The cut-distance between G and \(G'\) is defined as
Hence, the cut-distance between two labeled graphs measures how different the two graphs are when considering the size of various cuts. This concept has played a crucial role in the work of Frieze and Kannan [21] on efficient approximation algorithms for dense graphs. See [11] and the book [29] for more results on cut-distance.
We generalize the concept of crossing numbers to edge weighted graphs as follows. Let \(\mathcal {D}\) be a straight-line drawing of G in the plane, and let \(X_\mathcal {D} \subset {E(G) \atopwithdelims ()2}\) denote the set of pairs of crossing edges in the drawing. The rectilinear crossing number of the edge-weighted graph G is defined as
where the minimum is taken over all straight-line drawings of G. Thus for any unweighted graph \(G = (V,E)\), we can assign weights \(w_G(uv) = 1\) for \(uv \in E(G)\) and \(w_G(uv) = 0\) for \(uv \not \in E(G)\) so that the definition of \(\overline{\mathrm{cr}}(G)\) remains consistent. By copying the proof of Lemma 1 almost verbatim, we have the following lemma.
Lemma 2
Let G be an edge weighted graph on K vertices, where the weight of each edge uses at most B bits. Then we can find a straight-line drawing of G with \(\overline{\mathrm{cr}}(G)\) weighted edge crossings in \(2^{O(K^3)}B^2\) time.
Another key ingredient used in the proof of Theorem 1 is a variant of Szemerédi’s regularity lemma developed by Frieze and Kannan. Szemerédi’s regularity lemma [39] is one of the most powerful tools in modern combinatorics and gives a rough structural characterization of all graphs. According to the lemma, for every \(\varepsilon >0\) there is \(K=K(\varepsilon )\) such that every graph has an equitable vertex partition into at most K parts such that all but at most an \(\varepsilon \) fraction of the pairs of parts behave “regularly".Footnote 1 The dependence of K on \(1/\varepsilon \) is notoriously strong. It follows from the proof that \(K(\varepsilon )\) may be taken to be an exponential tower of twos of height \(\varepsilon ^{-O(1)}\). Gowers [24] used a probabilistic construction to show that such an enormous bound is indeed necessary. This is quite unfortunate, because in algorithmic applications of the regularity lemma this parameter typically has a negative impact on the efficiency. Consult [13, 19, 35] for other proofs that improve on various aspects of the result.
Frieze and Kannan [21] developed a weaker notion of regularity which is sufficient for certain algorithmic applications, and for which the dependence on the approximation parameter \(\varepsilon \) is much better. Let \(\varepsilon > 0\) and let \(G = (V,E)\) be a graph on n vertices. An equitable partition \(\mathcal {P}:V = V_1\cup \cdots \cup V_K\) is said to be \(\varepsilon \)-Frieze-Kannan-regular if for all subsets \(S,T \subset V(G)\), we have
Frieze and Kannan [21] showed that for any \(\varepsilon > 0\), every graph \(G = (V,E)\) has an \(\varepsilon \)-Frieze-Kannan-regular partition with K parts, where \(1/\varepsilon< K < 2^{O(\varepsilon ^{-2})}\). Moreover, such a partition can be found in randomized \(O(n^2)\)-time. For the algorithm we present in the next section, we will use the following more recent algorithmic version due to Dellamonica et al.
Theorem 4
[15]. There is an absolute constant c such that the following holds. For each \(\varepsilon > 0\) and for any graph \(G = (V,E)\) on n vertices, there is a deterministic algorithm which finds an \(\varepsilon \)-Frieze-Kannan-regular partition on V with at most \(2^{\varepsilon ^{-c}}\) parts, and runs in \(2^{2^{\varepsilon ^{-c}}}n^2\)-time.
Given an n-vertex graph \(G = (V,E)\), let \(\mathcal {P}:V = V_1\cup \cdots \cup V_K\) be an \(\varepsilon \)-Frieze-Kannan-regular partition obtained from Theorem 4. We now define two edge-weighted graphs \(G/\mathcal {P}\) and \(G_\mathcal {P}\) as follows. Let \(G/\mathcal {P}\) be the edge-weighted graph on the vertex set \(\{1,\ldots , K\}\) and with edge weights
Let \(G_\mathcal {P}\) be an edge-weighted graph with vertex set \(V = V(G)\), and with edge weights
Thus, the Frieze–Kannan regularity lemma says that \(d(G,G_\mathcal {P}) < \varepsilon n^2\), which implies that \(G/\mathcal {P}\) is a small graph that gives a good approximation of G. We now prove the following lemmas which establish a relationship between \(\overline{\mathrm{cr}}(G), \overline{\mathrm{cr}}(G_{\mathcal {P}}),\) and \(\overline{\mathrm{cr}}(G/\mathcal {P})\).
Lemma 3
Let \(\varepsilon \in (0,1/2)\) and let G and \(G'\) be two n-vertex edge-weighted graphs on the same vertex set V. If \(d(G,G') < \varepsilon n^2\), then we have
where C is an absolute constant from Theorem 3.
Proof:
Consider a straight-line drawing \(\mathcal {D}\) of \(G = (V,E)\) in the plane such that if \(X_{\mathcal {D}} \subset {E \atopwithdelims ()2}\) denotes the set of pairs of crossing edges in \(\mathcal {D}\), we have
With slight abuse of notation, let V be the point set in the plane representing the vertices of G in the drawing \(\mathcal {D}\). We can assume that V is in general position. With approximation parameter \(\varepsilon ^{1/(4C)}\), we apply Theorem 3 to the point set V and obtain an equitable partition \(V = V_1\cup \cdots \cup V_K\), where \(K \le \varepsilon ^{-1/4}\), such that all but at most \(\varepsilon ^{1/(4C)}{K\atopwithdelims ()4}\) quadruples of parts \((V_{i_1},V_{i_2},V_{i_3},V_{i_4})\) have same-type transversals. Let \(T \subset {[K]\atopwithdelims ()4}\) be the set of quadruples \((i_1,i_2,i_3,i_4)\) such that \((V_{i_1}, V_{i_2}, V_{i_3}, V_{i_4})\) has same type transversal and every such transversal is in convex position. Then for each such quadruple, we can order the elements \((i_1,i_2,i_3,i_4) \in T\) so that every segment with one endpoint in \(V_{i_1}\) and the other in \(V_{i_2}\) crosses every segment with one endpoint in \(V_{i_3}\) and the other in \(V_{i_4}\). Therefore, we have
On the other hand, let us consider the drawing \(\mathcal {D}'\) of \(G'\) on the same point set \(V = V_1\cup \cdots \cup V_K\). We say that the quadruple \((v_1,v_2,v_3,v_4) \in {V\atopwithdelims ()4}\) is bad if two members lie in a single part \(V_j\), or if all four members lie in distinct parts \(V_{i_1},V_{i_2},V_{i_3},V_{i_4}\) such that \((V_{i_1},V_{i_2},V_{i_3},V_{i_4})\) does not have same-type transversals. By Theorem 3, we have at most
bad quadruples. Since each edge has weight at most one, we have
Since \(d(G,G') < \varepsilon n^2\), and by (2), we have
The last inequality follows from the fact that C is a sufficiently large constant. A symmetric argument also shows that \(\overline{\mathrm{cr}}(G) \le \overline{\mathrm{cr}}(G') + \varepsilon ^{\frac{1}{4C}}n^4\), and the statement follows. \(\Box \)
Let G be an edge-weighted graph on the vertex set \(V = \{1,\ldots , K\}\) with weights \(w_G(i,j)\). The blow-up G[m] of G is the edge-weighted graph obtained from G by replacing each vertex i by an independent set \(U_i\) of order m, and each edge between \(U_i\) and \(U_j\) has weight \(w_G(i,j)\) for \(i\ne j\).
Lemma 4
Let G and G[m] be described as above. Then
Proof:
We start by proving the second inequality first. Fix a drawing \(\mathcal {D}\) of G such that if X denotes the set of pairs of crossing edges in \(\mathcal {D}\), we have
Let V be the point set in the plane representing the vertices of G in the drawing. We can assume that V is in general position. We draw the blow-up graph G[m] as follows. For each point \(v \in V\) in the plane, we choose a very small \(\delta \) and add \(m-1\) points in the disk centered at v with radius \(\delta \). These points will represent \(U_v\). By choosing \(\delta \) sufficiently small, every quadruple of parts \((U_{i_1},U_{i_2},U_{i_3},U_{i_4})\) will have same-type transversals. Moreover, we can do this so that the resulting point set is in general position. Finally if \(uv \in E(G)\), we draw all edges between the point sets \(U_u\) and \(U_v\). Let \(X_m\) denote the set of pairs of crossing edges in our drawing of G[m].
Set \(U = U_1\cup \cdots \cup U_K\). We say that the quadruple \((u_1,u_2,u_3,u_4)\) of points in U is bad if two of its members lie in a single part \(U_i\). Hence the number of bad quadruples in U is at most \(K{m\atopwithdelims ()2}{Km\atopwithdelims ()2}\). Since each edge has weight at most one, we have
On the other hand, now consider a drawing \(\mathcal {D}'\) of G[m] such that if \(X'\) denotes the set of pairs of crossing edges in \(\mathcal {D}'\), we have
Let \(V(G[m]) = U_1\cup \cdots \cup U_K\). By selecting one point from each \(U_i\), we obtain a drawing of G which has at least \(\overline{\mathrm{cr}}(G)\) weighted pairs of crossing edges. Summing over all of these \(m^K\) distinct drawings of G, each weighted crossing appears \(m^{K-4}\) times. Therefore,
This completes the proof. \(\Box \)
4 Proof of Theorem 1
The Algorithm. Input: Let G be a graph with vertex set \(V = \{v_1,v_2,\ldots , v_n\}\).
-
1.
Set \(\varepsilon = (\log \log n)^{\frac{-1}{2c}}\), where c is defined in Theorem 4. We apply Theorem 4 to G with approximation parameter \(\varepsilon \), and obtain an equitable partition \(\mathcal {P}: V = V_1\cup \cdots \cup V_K\) on our vertex set with the desired properties such that \(1/\varepsilon< K < 2^{\varepsilon ^{-c}} = 2^{\sqrt{\log \log n}}\). This can be done deterministically in \(n^{2 + o(1)}\)-time using the algorithm of Dellamonica et al. [15].
-
2.
Let \(G/\mathcal {P}\) be the edge-weighted graph on the vertex set \(\{1,\ldots , K\}\) with edge weights \(w_{G/\mathcal {P}}(ij) = \frac{e_G(V_i,V_j)}{|V_i||V_j|}\). Using Lemma 2, we can find a drawing of \(G/\mathcal {P}\) with \(\overline{\mathrm{cr}}(G/\mathcal {P})\) weighted pairs of crossing edges. Let \(U = \{u_1,\ldots , u_K\}\) be the point set for such a drawing where each point uses at most \(2^{O(K\log K)}\) bits. This can be done in \(2^{O(K^3)} = n^{o(1)}\) time.
-
3.
We draw \(G = (V,E)\) as follows. Let L be the set of lines spanned by U, and let \(\delta \) be the minimum positive distanceFootnote 2 between the points in U and the lines in L. Note that \(\delta \) uses at most \(2^{O(K\log K)}\) bits since the line spanned by any two points in U will have the form \(y = m_0x + b_0\), where \(m_0\) and \(b_0\) uses at most \(2^{O(K\log K)}\) bits. Therefore, the distance between a point in U and the line \(y = m_0x + b_0\) will use at most \(2^{O(K\log K)}\) bits. Set \(D(i,\delta /10)\) to be the disk centered at \(u_i\) with radius \(\delta /10\). We place the points of \(V_i\) in \(D(i,\delta /10)\) so that the point set \(V_1\cup \cdots \cup V_K\) is in general position, and each point uses at most \(2^{O(K\log K)} < O(n)\) bits. Notice that every quadruple of parts \((V_{i_1},V_{i_2},V_{i_3},V_{i_4})\) has same-type transversals. We then draw all edges of G on this point set. This can be done in \(O(n^2)\) time.
-
4.
Return: the drawing of G.
The total running time for the algorithm above is \(n^{2 + o(1)}\).
Let \(\mathcal {D}\) be the drawing of \(G = (V,E)\) obtained from the algorithm above, where \(V = \{v_1,\ldots , v_n \} \subset {\mathbb R}^2\), and let X denote the set of pairs of crossing edges in \(\mathcal {D}\). We say that the quadruple of points \(\{v_{i_1},v_{i_2},v_{i_3},v_{i_4}\}\) in V is bad if two of its members lie in a single disk \(D(j,\delta /10)\). Hence there are at most \(n^4/(2K)\) bad quadruples. Therefore
Just as above, let \(G_\mathcal {P}\) be the edge weighted graph with vertex set V (same as G), with edge weights \(w_{G_\mathcal {P}}(uv) = e_G(V_i,V_j)/(n/K)^2\), if \(u \in V_i\), \(v \in V_j\) and \(i\ne j\), and \(w_{G_\mathcal {P}}(uv) = 0\) otherwise. Since \(G_{\mathcal {P}}\) is an (n / K)-blow-up of \(G/\mathcal {P}\), by the proof of Lemma 4, we have
Since Theorem 4 implies that the cut-distance between G and \(G_{\mathcal {P}}\) satisfies \(d(G,G_{\mathcal {P}}) < \varepsilon n^2\), Lemma 3 implies that
Putting together (3), (4), and (5), shows that
where \(\delta \) is an absolute constant. This completes the proof of Theorem 1.
5 The Rectilinear Crossing Number of Quasi-random Graphs
Proof of Theorem 2. Let \(\mathcal {D}\) be a straight-line drawing of \(G_n\) in the plane with exactly \(\overline{\mathrm{cr}}(G_n)\) edge crossings, and let \(V = \{v_1,v_2,\ldots , v_n\}\) be the point set in the plane that represents the vertices of \(G_n\) in the drawing. Without loss of generality, we can assume no three members of V are collinear, no two members of V share the same x-coordinate, and V is ordered by increasing x-coordinate.
Set \(\varepsilon = n^{-1/2C}\), where C is defined in Theorem 3. By Theorem 3, there is an equitable partition \(V = V_1\cup \cdots \cup V_K\) into K parts, where \(K \le \varepsilon ^{-C} = \sqrt{n}\), such that all but at most \(\varepsilon {K\atopwithdelims ()4}\) quadruples \((V_{i_1},V_{i_2},V_{i_3},V_{i_4})\) of parts have same-type transversals. Let \(Q \subset {V\atopwithdelims ()4}\) be the set of quadruples in V that are in convex position. We say that a quadruple \((v_{i_1},v_{i_2},v_{i_3},v_{i_4}) \in Q\) is bad if two of its members lie in a single part \(V_j\), or if they lie in distinct parts of \((V_{j_1},V_{j_2},V_{j_3}, V_{j_4})\) the does not have same-type transversals. Hence the number of bad quadruples in Q is at most
Let T denote the number of quadruples of parts \((V_{i_1},V_{i_2},V_{i_3},V_{i_4})\), where each such quadruple \((V_{i_1},V_{i_2},V_{i_3},V_{i_4})\) has same-type transversals and each such transversal is in convex position. Then we have
Since
this implies
On the other hand, drawing \(G_n\) in the plane by placing its vertices on a point set that minimizes the number of quadruples in convex position, one can follow the arguments above to show that
This completes the proof of Theorem 2. \(\Box \)
6 Concluding Remarks
Pach et al. [30] introduced the following alternative notion of crossing number. For any positive integer \(k\ge 1\), the geometric k-planar crossing number of G, denoted by \(\overline{\mathrm{cr}}_k\), is the minimum number of crossings between edges of the same color over all k-edge-colorings of G and all straight-line drawings of G. By following the proof of Theorem 1 almost verbatim, we have the following theorem. We note that one needs to slightly modify the proof of Lemma 3, by coloring the edges of \(G'\) between parts \(V_{i_1}\) and \(V_{i_2}\) (\(V_{i_3}\) and \(V_{i_4}\)), so that the number of edges in color i between the two parts in \(G'\) is roughly the same as the number of edges in color i between the two parts in G.
Theorem 5
Let \(k\ge 1\) be a fixed constant. Given any n-vertex graph G, there is a deterministic \(n^{2 + o(1)}\)-time algorithm that finds a straight-line drawing of G in the plane, and a k-coloring of the edges in G, such that the number of monochromatic pairs of crossing edges in the drawing is at most \(\overline{\mathrm{cr}}_k(G) + O(n^4/(\log \log n)^{\delta })\), where \(\delta \) is an absolute constant.
We suspect that Theorem 1 also holds for other crossing number variants.
Let us also remark that the rectilinear crossing number is a testable parameter, which means that there is a constant time randomized algorithm for approximating the rectilinear crossing number. More precisely, for each \(\epsilon >0\) there is \(t=t(\epsilon )>0\) such that the following holds. If G is a graph on n vertices, by sampling a random induced subgraph H of G on t vertices, we can approximate with probability of success at least .99 the rectilinear crossing number of G with error at most \(\epsilon n^4\). We do this by noting that the random sample H is, with probability at least .99, close in cut-distance to G (see the Lovász book [29] for details). By Lemma 3, if they are close in cut-distance, we get that \(\overline{\mathrm{cr}}(G)\) is within \(\epsilon n^4\) of \(\overline{\mathrm{cr}}(H)\frac{n^4}{t^4}\).
Notes
- 1.
For a pair \((V_i,V_j)\) of vertex subsets, the density \(d(V_i,V_j)\) is defined as \(\frac{e_G(V_i,V_j)}{|V_i||V_j|}\). The pair \((V_i,V_j)\) is called \(\varepsilon \)-regular if for all \(V_i' \subset V_i\) and \(V_j' \subset V_j\) with \(|V_i'| \ge \varepsilon |V_i|\) and \(|V_j'| \ge \varepsilon |V_j|\), we have \(|d(V'_i,V'_j)-d(V_i,V_j)| \le \varepsilon \).
- 2.
The distance between a point and a line in the plane is the length of the line segment which joins the point to the line and is perpendicular to the line.
References
Ábrego, B.M., Cetina, M., Fernández-Merchant, S., Leaños, J., Salazar, G.: On \((\le k)\)-edges, crossings, and halving lines of geometric drawings of \(K_n\). Discret. Comput. Geom. 48, 192–215 (2012)
Ábrego, B., Fernández-Merchant, S., Salazar, G.: The rectilinear crossing number of \(K_n\): closing in (or are we?). Thirty Essays on Geometric Graph Theory, pp. 5–18. Springer, Heidelberg (2012)
Aichholzer, O., Aurenhammer, F., Krasser, H.: Enumerating order types for small point sets with applications. Order 19, 265–281 (2002)
Aichholzer, O., Krasser, H.: Abstract order type extension and new results on the rectilinear crossing number. Comput. Geom. 36, 2–15 (2007). Special Issue on the 21st European Workshop on Computational Geometry
Ajtai, M., Chvátal, V., Newborn, M., Szemerédi, E.: Crossing-free subgraphs. In: Theory and practice of combinatorics, North Holland Mathematics Studies, vol. 60, pp. 9–12 (1982)
Arora, S., Rao, S., Vazirani, U.: Expander flows, geometric embeddings and graph partitioning. J. ACM 56, 37 (2009)
Basu, S., Pollack, R., Roy, M.-F.: On the combinatorial and algebraic complexity of quantifier elimination. J. ACM 43, 1002–1045 (1996)
Bienstock, D.: Some provably hard crossing number problems. Discret. Comput. Geom. 6, 443–459 (1991)
Bienstock, D., Dean, N.: Bounds for rectilinear crossing numbers. J. Graph Theory 17, 333–348 (1993)
Björner, A., Las Vergnas, M., Sturmfels, B., White, N., Ziegler, G.: Oriented Matroids. Cambridge University Press, Cambridge (1993)
Borgs, C., Chayes, J.T., Lovász, L., Sós, V.T., Vesztergombi, K.: Convergent sequences of dense graphs I: subgraph frequencies, metric properties and testing. Adv. Math. 219, 1801–1851 (2008)
Chung, F.R.K., Graham, R.L., Wilson, R.M.: Quasi-random graphs. Combinatorica 9, 345–362 (1989)
Conlon, D., Fox, J.: Bounds for graph regularity and removal lemmas. Geom. Funct. Anal. 22, 1191–1256 (2012)
Chuzhoy, J.: An algorithm for the graph crossing number problem. In: Proceedings of the 43rd annual ACM Symposium on Theory of Computing, pp. 303–312 (2011)
Dellamonica, D., Kalyanasundaram, S., Martin, D., Rödl, V., Shapira, A.: An optimal algorithm for finding Frieze-Kannan regular partitions. Comb. Probab. Comput. 24, 407–437 (2015)
Even, G., Guha, S., Schieber, B.: Improved approximations of crossings in graph drawings and VLSI layout areas. SIAM J. Comput. 32, 231–252 (2002)
Faila-Monroy, R., López, J.: Computational search of small point sets with small rectilinear crossing number. J. Graph Algorithms Appl. 18, 393–399 (2014)
Fáry, I.: On straight line representation of planar graphs. Acta Univ. Szeged. Sect. Math. 11, 229–233 (1948)
Fox, J., Lovász, L.M.: A tight lower bound for Szemerédi’s regularity lemma (preprint)
Fox, J., Pach, J., Suk, A.: Density, regularity theorems for semi-algebraic hypergraphs. In: Proceedings of the 26th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2115). San Diego, pp. 1517–1530 (2015)
Frieze, A., Kannan, R.: Quick approximation to matrices and applications. Combinatorica 19, 175–220 (1999)
Goodman, J.E., Pollack, R.: Allowable sequences and order types in discrete and computational geometry. In: Pach, J. (ed.) New Trends in Discrete and Computational Geometry. Algorithms and Combinatorics, vol. 10, pp. 103–134. Springer, Heidelberg (1993)
Goodman, J.E., Pollack, R.: Multidimensional sorting. SIAM J. Comput. 12, 484–507 (1983)
Gowers, W.T.: Lower bounds of tower type for Szemerédi’s uniformity lemma. Geom. Funct. Anal. 7, 322–337 (1997)
Hopcroft, J., Tarjan, R.: Efficient planarity testing. J. ACM 21, 549–568 (1974)
Kawarabayashi, K., Reed, B.: Computing crossing number in linear time. In: Proceedings of the Thirty-Ninth Annual ACM Symposium on Theory of Computing (STOC 2007), pp. 382–390. ACM, New York (2007)
Leighton, F.T.: Complexity Issues in VLSI. Foundations of Computing Series. MIT Press, Cambridge (1983)
Leighton, F.T., Rao, S.: Multicommodity max-flow min-cut theorems and their use in designing approximation algorithms. J. ACM 46, 787–832 (1999)
Lovász, L.: Large Networks and Graph Limits. American Mathematical Society Colloquium Publications, vol. 60. American Mathematical Society, Providence (2012)
Pach, J., Székely, L., Tóth, C.D., Tóth, G.: Note on \(k\)-planar crossing numbers (manuscript)
Pach, J., Tóth, G.: Thirteen problems on crossing numbers. Geombinatorics 9, 195–207 (2000)
Schaefer, M.: Complexity of some geometric and topological problems. In: Eppstein, D., Gansner, E.R. (eds.) GD 2009. LNCS, vol. 5849, pp. 334–344. Springer, Heidelberg (2010). doi:10.1007/978-3-642-11805-0_32
Schaefer, M.: The graph crossing number, its variants: a survey, Electron. J. Combin. DS21, 100 (2014)
Scheinerman, E., Wilf, H.S.: The rectilinear crossing number of a complete graph and Sylvester’s "four point" problem of geometric probability. Am. Math. Mon. 101, 939–943 (1994)
Moshkovitz, G., Shapira, A.: A short proof of Gowers’ lower bound for the regularity lemma (preprint)
Spencer, J., Tóth, G.: Crossing numbers of random graphs. Random Struct. Algorithms 21, 347–358 (2002)
Sylvester, J.J.: Question 1491. The Educational Times, London (1864)
Sylvester, J.J.: Rep. Br. Assoc. 35, 8–9 (1865)
Szemerédi, E.: Regular partitions of graphs. In: Problèmes combinatoires et théorie des graphes (Colloq. Internat. CNRS, Univ. Orsay), vol. 260, pp. 399–401. CNRS, Paris (1978)
Vrt’o, I.: Crossing numbers bibliography. www.ifi.savba.sk/~imrich
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2016 Springer International Publishing AG
About this paper
Cite this paper
Fox, J., Pach, J., Suk, A. (2016). Approximating the Rectilinear Crossing Number. In: Hu, Y., Nöllenburg, M. (eds) Graph Drawing and Network Visualization. GD 2016. Lecture Notes in Computer Science(), vol 9801. Springer, Cham. https://doi.org/10.1007/978-3-319-50106-2_32
Download citation
DOI: https://doi.org/10.1007/978-3-319-50106-2_32
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-50105-5
Online ISBN: 978-3-319-50106-2
eBook Packages: Computer ScienceComputer Science (R0)