Full text
Matching random colored points with rectangles ∗ Josu´e Corujo†David Flores-Pe˜naloza‡Clemens Huemer§ Pablo P´erez-Lantero¶Carlos Seara‖ Abstract1 Given n > 0, let S⊂[0,1]2be a set of npoints, chosen uniformly at random. Let2 R∪Bbe a random partition, or coloring, of Sin which each point of Sis included3 in Runiformly at random with probability 1/2. We study the random variable M(n)4 equal to the number of points of Sthat are covered by the rectangles of a maximum5 strong matching of Swith axis-aligned rectangles. The matching consists of closed6 axis-aligned rectangles that cover exactly two points of Sof the same color, and is7 strong in the sense that all of its rectangles are pairwise disjoint. We prove that8 almost surely M(n)≥0.83 nfor nlarge enough. Our approach is based on modeling9 a deterministic greedy matching algorithm that runs over the random point set as a10 Markov chain.11 Keywords: Random colored points, Geometric matchings, Markov chains.12 Classification: 68Q87, 68W40, 60J10, 60J22, 60C05.13 1 Introduction14 Given a finite point set S⊂R2, and a class Cof geometric objects in the plane, a geometric15 matching of Sis a set M⊆ C such that each element of Mcontains exactly two points of16 Sand every point of Slies in at most one element of M. A geometric matching is strong if17 the geometric objects are pairwise disjoint, and perfect if every point of Sbelongs to (or is18 covered by) some element of M. This type of geometric matching problems was considered19 by ´ Abrego et al. [1], who studied the existence and properties of matchings for point sets20 ∗A preliminary version of this work appeared in WALCOM 2020, 14th International Conference and Workshop on Algorithms and Computation, Singapore [10]. †Institut de Recherche Math´ematique Avanc´ee (IRMA), Universit´e de Strasbourg, France [email protected]. ORCID: 0000-0002-3997-7391. ‡Departamento de Matem´aticas, Facultad de Ciencias, Universidad Nacional Aut´onoma de M´exico. [email protected]. §Departament de Matem`atiques, Universitat Polit`ecnica de Catalunya, Spain. [email protected]. ¶Corresponding author. Universidad de Santiago de Chile (USACH), Facultad de Ciencia, Departamento de Matem´atica y Ciencia de la Computaci´on, Chile. [email protected]. ORCID: 0000- 0002-8703-8970. ‖Departament de Matem`atiques, Universitat Polit`ecnica de Catalunya, Spain. [email protected]. ORCID: 0000-0002-0095-1725. 1
(a) (b) Figure 1: (a) A perfect, strong bichromatic matching of 10 red points and 10 blue points with straight-line segments. (b) A perfect, strong monochromatic matching of 6 red points and 4 blue points with axis-aligned rectangles. in the plane when Cis the class of axis-aligned squares or the class of disks. It has also21 been considered by Bereg et al. [6], who studied matchings of points with axis-aligned22 rectangles and squares.23 Let S=R∪B⊂R2be a finite set of colored points in the plane, each point colored24 red or blue, where Rand Bare the sets of red and blue points, respectively. A geometric25 matching of Sis called monochromatic if all matching objects cover points of the same26 color, and bichromatic if all matching objects cover points of different colors. For example,27 monochromatic matchings of two-colored point sets in the plane with straight segments28 have been studied [13,14]. In the case of bichromatic matchings with straight segments,29 a classical result in discrete geometry asserts that for any planar point set Sconsisting of30 nred points and nblue points in general position (i.e., no three points of Sare collinear)31 there exists a perfect, strong bichromatic matching of Swith straight-line segments [18]32 (see Figure 1a).33 In this paper, we consider strong monochromatic matchings of colored points with34 axis-aligned rectangles. Refer to Figure 1b for an example of a perfect matching of this35 type. Throughout the paper, every rectangle will be considered axis-aligned and a closed36 subset of the plane.37 Caraballo et al. [7] studied both monochromatic and bichromatic strong matchings38 with rectangles from an algorithmic point of view. That is, they studied two combina-39 torial optimization problems for a given set S=R∪B: find a monochromatic strong40 matching of Swith the maximum number of rectangles, and find a bichromatic strong41 matching of Swith the maximum number of rectangles; proving that both problems are42 NP-hard and giving a polynomial-time 4-approximation algorithm in each case. As noted43 by Caraballo et al. [7], these two problems are special cases of the Maximum Independent44 Set of Rectangles problem (MISR): Given a finite set Rof rectangles in the plane, find a45 subset R0⊆ R of maximum cardinality, denoted α(R), such that every two rectangles in46 R0are disjoint.47 Indeed, suppose that we want to find a monochromatic matching of Swith the maxi-48 mum number of rectangles. For every pair of distinct points p, q ∈R2, let D(p, q) denote49 the minimum axis-aligned rectangle (i.e., the rectangle such that both dimensions are50 2
minimum) that encloses pand q. Let R(S) be the set of all rectangles D(p, q) such that51 p, q ∈S,pand qhave the same color, and D(p, q) contains no points of Sother than p52 and q. Finding a monochromatic strong matching of Swith the maximum number of rect-53 angles is equivalent to finding in R(S) a maximum subset of pairwise disjoint rectangles,54 that is, solving the MISR problem in R(S).55 In this paper, we study monochromatic strong matchings with rectangles from the56 combinatorial point of view. From this point forward, every rectangle will cover precisely57 two points of the given set S. We note that point sets S=R∪Bexist in which no58 matching rectangle is possible (e.g., Sis a color-alternating sequence of points on the line59 y=x), and point sets in which a perfect strong matching with rectangles exists (e.g., an60 even number of red points in the negative part of the line y=x, and an even number of61 blue points in the positive part).62 These two extreme cases show that, from a combinatorial point of view, it is not worth63 studying the number α(R(S)) for fixed, or given, colored point sets S. This does not64 happen, for example, for monochromatic strong matchings with straight-line segments for65 fixed sets of red and blue points: Dumitrescu and Kaye [13] proved that every two-colored66 point set S=R∪Bof npoints in general position admits a strong matching with segments67 that covers at least 6 7n−O(1) of the points; furthermore, there exist n-point sets such68 that every strong matching with segments covers at most 94 95 n+O(1) points.69 We want to study α(R(S)) when Sis a random point set in the unit square [0,1]2, in70 which the positions of the npoints of Sare random and the color of each point of Sis71 also random. Note that the possibility to match two points in Sdepends on the relative72 positions between the elements of Sand not on their precise coordinates. This is the73 reason why we selected [0,1]2as the range to locate the elements of Sat random.74 Formally, let n > 0 be an integer, and let S⊂[0,1]2be a set of npoints, chosen75 uniformly at random. Let R∪Bbe a random partition (i.e., coloring) of Sin which76 each point of Sis included in Runiformly at random with probability 1/2. We study the77 random variable M(n)=2·α(R(S)) equal to the number of points of Sthat are covered78 by the rectangles of a maximum monochromatic strong matching of Swith rectangles.79 Given a set Sof npoints, chosen uniformly at random in the unit square [0,1]2, Chen80 et al. [8] studied a similar variable: the random variable α(D(S)), where D(S) is the81 random graph with vertex set Sand two points p, q ∈Sdefine an edge if and only if82 D(p, q)∩S={p, q}. Here, α(D(S)) denotes the size of a maximum independent set of83 D(S). Our study also relates to the study of geometric properties of random point sets in84 the plane (see e.g., [2,4,5,11,12,15,16]).85 Theorem 1 in Chen et al. [8] states that if ntends to infinity, then α(D(S)) =86 O(n(log2log n)/log n) with probability tending to 1. This result implies that if C(n) de-87 notes the number of points of Sthat are covered by a maximum monochromatic matching88 of Swith rectangles, where the rectangles may overlap (i.e., the matching is not necessarily89 strong), then C(n) = n−o(n) with probability tending to 1. Indeed, let M0be a maximum90 monochromatic matching of Swith rectangles, where M0is not necessarily strong, and let91 S0⊂Sbe the points not covered by M0. Note that at least |S0|/2 points of S0have the92 same color, and they form an independent set in the graph D(S). Then, with probability93 tending to 1, we have that M0covers at least n−|S0|=n−O(n(log2log n)/log n) = n−o(n)94 3
points.95 We study here the maximum monochromatic strong matching of S, which makes our96 problem and approach different from that of Chen et al. [8]. The fact that the rectangles97 cannot overlap makes it harder to understand the dependence among the events given by98 the possible matchings, and specifically their covariance. This renders the combinatorial99 approach of Chen et al. [8] unsuitable for studying the maximum monochromatic strong100 matching of S. The method that we present is based on modeling a deterministic greedy101 matching algorithm, that sweeps the random point set Smaking matchings, as a Markov102 chain. Classical results on Markov chains allow us to prove that with this algorithm at103 least 83 percent of the points in Scan be covered by a strong matching, almost surely.104 Even if this lower bound may seem weak, the fact that it holds almost surely makes it105 interesting. Moreover, to the best of our knowledge, using a detailed study of the long-106 time behavior of Markov chains to solve a combinatorial problem is, as far as we know, a107 new approach that could be extended to similar problems. However, the study of online108 algorithms that can be seen as Markov chains has been used to solve other combinatorial109 problems. That is notably the case of works on best fit bin packing problems [3,9,17]. Our110 approach differs to those works since they are mostly focused on less explicit properties of111 the long-time behavior of more complicated Markov chains underlying best fit algorithms.112 We focus on modeling the execution of a deterministic incremental algorithm (that when113 run on a random input point set may be seen as an online algorithm) by a relatively114 simple discrete-time finite Markov chain. The time parameter of this Markov chain is115 linked to the number of points considered so far, and then, using the Ergodic theorem116 for Markov chains, we can carry on a detailed study of the long-time behavior of the117 algorithm, allowing us to prove our main result.118 The rest of the paper is structured as follows. In Section 2we introduce a greedy119 algorithm, parameterized with an integer k≥1, and discuss some preliminary results120 related to the output of this algorithm. Later, in Section 3, we introduce an adaptation of121 this algorithm that is proved to behave as a finite irreducible Markov chain, which allows122 us to obtain our main technical result (Theorem 1). Later, in Section 4, we study the123 consequences of our technical result for a concrete choice of the parameter of the greedy124 algorithm (i.e., for k= 3). We then prove Theorem 2, which provides the aforementioned125 lower bound for the number of points of Scovered by the rectangles in the strong matching126 of Swith axis-aligned rectangles.127 2 A preliminary study of M(n)128 Since for matching Swith rectangles, only the left-to-right and bottom-to-top orders of129 Sare relevant, and since the probability that two points of Sare in the same vertical or130 horizontal line is zero, we consider Sequal to the point set Sπ={(i, π(i)) |i= 1,2, . . . , n},131 where π:{1,2, . . . , n}→{1,2, . . . , n}is a permutation chosen uniformly at random. This132 was also considered by Chen et al. [8].133 We have implemented a Python program that, given n, generates a uniform random134 permutation π, and chooses the color of each p∈Sπ(red or blue) uniformly at random135 with probability 1/2. The program then runs a deterministic algorithm on Sπ=R∪Bthat136 4
1. 2. 3. 4. 5. 6. 7. Figure 2: An example of the execution of the greedy matching algorithm on a set with 14 points, 6 blue and 8 red. The vertical fat line is the sweep line, which goes through the current point pin the algorithm. The shaded area is where pmust find the point qto which it is matched. greedily finds a large independent subset of rectangles in R(Sπ). The greedy algorithm137 goes through the points in Sπfrom left to right. For each point p, the algorithm performs138 the following action: If pis not matched with any point to the left of p, then it finds (if139 it exists) the first point qto the right of psuch that (i)D(p, q)∈ R(Sπ)and (ii)D(p, q)140 has empty intersection with all matching rectangles already reported. If qexists, then the141 algorithm reports D(p, q)as a matching rectangle. Then, regardless of whether qexists,142 the algorithm goes to the next unmatched point to the right of p(if it exists, otherwise the143 algorithm terminates). For an example, refer to Figure 2.144 For large n, say n= 10000, the implemented algorithm reports a matching covering145 approximately 97 100 nof the points. In fact, we run the algorithm N= 100 times for146 n= 10000, and average the outputs (i.e., the percentage of matched points) and computed147 the standard deviation. The average output is 0.978 and the standard deviation is 0.0022.148 Then, it seems that M(n)≥97 100 nfor nlarge enough and probability close to 1. More149 formally, using the Central Limit Theorem, we have that150 0.9780 −0.0022 √Nz0.99,1⊂(0.97,1]151 is a 99% confidence interval for the expected value of M(n)/n. We denote by z0.99 ≈2.33152 the real value that satisfies Prob(Z≤z0.99)=0.99, for a normally distributed random153 variable Zwith mean 0 and variance 1.154 To analyze the algorithm, when running it over the random point sequence Sπ, seems155 to be a good approach for proving a high lower bound for M(n). One way to analyze the156 algorithm is to consider a parameterized version of it, with a parameter k, such that each157 unmatched point pfinds its match point qamong only the next kpoints of Sπto the right158 of p. Let Akdenote this parameterized algorithm. For experimental results regarding Ak,159 5
n= 1000 n= 10000 kmean sdev mean sdev 1 0.6653 0.0175 0.6673 0.0052 2 0.7948 0.0104 0.7934 0.0036 3 0.8301 0.0097 0.8304 0.0034 4 0.8555 0.0094 0.8562 0.0028 5 0.8727 0.0090 0.8736 0.0026 6 0.8860 0.0087 0.8864 0.0026 7 0.8953 0.0084 0.8962 0.0026 8 0.9031 0.0079 0.9041 0.0025 ∞0.9724 0.0062 0.9780 0.0022 Table 1: The table shows the experimental results obtained when running the greedy matching algorithm for n∈ {1000,10000}points, parameterized with k∈ {1,2,3,...,8}, or not parameterized (k=∞). For each combination of n, k, we ran the algorithm 100 times, and measured the mean and standard deviation of the ratio between the total number of matched points and n. see Table 1, where k=∞refers to the unparametrized algorithm.160 In the next two sections, we show how to model (an adaptation of) Akas a Markov161 chain, for any fixed k∈ {1,2,3, . . .}. Then, we show that the algorithm A3almost surely162 guarantees for nlarge enough that M(n)≥83 100 n, by computing the stationary distribution163 of the Markov chain and applying the Ergodic theorem. For the theory on Markov chains,164 refer to Norris [19].165 Let (Xj)1≤j≤nbe a Markov chain over the set E={e1, e2, . . . , eN}of Nstates, and let166 f:E → Ra bounded function. If the Markov chain is irreducible (i.e., any state can be167 reached with positive probability from any other state in a finite number of transitions),168 then it has a unique stationary distribution (s1, s2, . . . , sN). Furthermore, the Ergodic169 Theorem [19, Theorem 1.10.2] ensures that170 lim n→∞ 1 n n X j=1 f(Xj) = N X i=1 sif(ei),171 almost surely. In our modeling, the states of the Markov chain will be the different memory172 states of the algorithm through its nsteps, and the function fwill be the number of new173 matched points associated with the memory state. Note that the total number of matched174 points is Pn j=1 f(Xj).175 3 The Markov chains176 From this point forward, we assume that S=Sπ, and whenever we say point i, for177 i∈ {1,2, . . . , n}, or just iwhen it is clear from the context, we are referring to the point178 pi:= (i, π(i)) ∈S. Let color(i)∈ {R, B}be the color of point i.179 Let k∈ {1,2,3, . . .}be a constant, and let ˜ Akbe the following adaptation of algorithm180 Ak:181 6
i 0 1 2 3 4 5 a b j Figure 3: An example of the data structure E(j): i=j−5, the set of unmatched points is U(j) = {i, i + 2, i + 4, j}, and Rect(j) = {a, b}, where the rectangles aand bmatch the points i+ 1 and i+ 3 not in U(j), respectively, with points to the left of i. For j= 1 we have f(j) = 0, and for j > 1, f(j) is computed when building E(j) from E(j−1). Suppose that Akmatches points iand j, with i < j ≤i+k, when the algorithm is182 at point i. Algorithm ˜ Akgoes through Sπfrom left to right, and will also match iand j183 but, in contrast to Ak, when the algorithm is at j, or at a point to the right of j. Using184 ˜ Akinstead of Akallows us to describe in a more compact way the states of the memory185 of the algorithm when going through the elements of Sπ.186 Let E(j) be the data structure associated with point j∈ {1,2, . . . , n}that is main-187 tained by ˜ Akwhen going through Sπ. For any j, let i=i(j) be the smallest element in188 the set {max(1, j −(k−1)), . . . , j}such that the point iis not matched. If iexists, then189 E(j) consists of the following elements:190 •The set U(j)⊆ {i, i + 1, . . . , j}of the points that are not matched, with i∈U(j).191 •The set Rect(j) of the (pairwise disjoint) rectangles that match the points in {i+192 1, . . . , j}\U(j) with points to the left of i.193 •The (even) number f(j) of points among {i, i + 1, . . . , j}that are matched while the194 algorithm is at point j.195 Otherwise, if idoes not exist, then E(j) also consists of the above three elements,196 namely, U(j) = ∅, Rect(j) = ∅and f(j) = 0.197 For j= 1, we have U(1) = {1}, Rect(1) = ∅, and f(1) = 0. For an example of E(j),198 refer to Figure 3.199 We show now how to obtain E(j+ 1) from E(j), for any j∈ {1, . . . , n −1}. First,200 we match points iand j+ 1 if and only if j+ 1 ≤i+k, color(i) = color(j+ 1), and the201 rectangle D(pi, pj+1) does not overlap any rectangle in Rect(j).202 After that, we match other points in (U(j)\{i})∪{j+ 1}if and only if iwas matched203 in the previous step, or we have finished with point i. We say that we have finished with204 point iif there do not exist more chances for point ito be matched, which is equivalent to205 7
j+ 1 i 0 1 2 3 4 5 E(j) a b j+ 1 i 0 1 2 3 4 5 E(j) i 2 0 1 E(j+ 1) ⇒ f(j+ 1) = 4 a b c d d c ⇒ Figure 4: An example of building E(j+1) from E(j): When incorporating the point j+1, points i=i(j) and j+1 are matched, as well as two other blue points. These matchings create rectangles cand d, respectively, which implies that f(j+ 1) = 4. In E(j+ 1), the new point i=i(j+ 1) is the leftmost unmatched point, and rectangles aand bare removed from Rect(j+ 1) because they are to the left of i. i+k≤j+ 1. This final matching procedure consists in running the original algorithm Ak 206 with the points {i+1, . . . , j, j+1}as input (going through them from left to right), but with207 the extra condition that the algorithm terminates if the current point t∈ {i+1, . . . , j, j+1}208 cannot be matched with any other point to its right (i.e., the matching on points in209 (U(j)\{i})∪{j+ 1}is performed by running the original algorithm Ak). This is because210 tmust find its match among the points in {j+ 2, . . . , t +k}, before any matching between211 points in {t+ 1, . . . , j + 1}occurs. For an example, refer to Figure 4.212 We set f(j+ 1) to the total number of points matched when the algorithm is at point213 j. Obtaining U(j+ 1) and Rect(j+ 1) is straightforward.214 Let j∈ {1,2, . . . , n}. The state of E(j) is a pair that consists of:215 •As first component, a set of rectangles representing Rect(j) and a colored point set216 representing U(j), such that these rectangles and points are in the same relative217 positions as Rect(j)∪U(j). If the leftmost point of this component is blue, then218 we switch the color of every point in the component such that the leftmost one is219 always red.220 •As second component, the number f(j) of matched points.221 We say that two states eand e0are equal (i.e., e=e0) if: (i) the first components are222 equal, or one first component is symmetric to the other in the vertical direction, and (ii)223 the second components are equal.224 Let E={e1, e2, . . . , eN}denote the set of all possible states of E(j), for all j≤n,225 which is a finite set. Let Xj∈ E be the random variable equal to the state of E(j). Let226 e∈ E be a state, and assume that eis the state of E(j) for some j. Let f(e) = f(j) (with227 abuse of notation), and let N(e) be the neighborhood of e, which is the multiset consisting228 of the state of E(j+ 1) for every color and every different relative position, with respect229 to the elements of both U(j) and Rect(j), of point j+ 1. For an example, see Figure 5.230 8
j+ 1 i j+ 1 i j+ 1 i j+ 1 i j+ 1 i j+ 1 i i j E(j), Xj E(j+ 1) Xj+1 e3 e4 e5 e6 e6 e8 e7 (a) E(j), Xj E(j+ 1) Xj+1 e5 e10 j i j+ 1 i e10 j+ 1 i e11 j+ 1 i e11 j+ 1 i ∅ ∅ e10 j+ 1 i (b) Figure 5: (a) Example of E(j), its state Xj=e3, and the states in the neighborhood N(e3) = {e4, e5, e6, e6, e7, e8}corresponding to E(j+1), for each position and color of point j+1. Note that f(e6) = 2, and f(ei) = 0 for all ei∈ {e4, e5, e7, e8}. (b) Example of E(j) and its state Xj=e5, with N(e5) = {e10, e10, e10, e10, e10, e10, e11, e11}. Note that f(e10) = 2 and f(e11) = 4. For each of the four positions of the blue point j+ 1, the resulting state is e10. Lemma 1. Let e, e0∈ E be two states. For every j≥2, at time jthe transition probability231 from eto e0is232 Prob(Xj+1 =e0|Xj=e) = m 2 (|U(j)|+ 2|Rect(j)|+ 1),233 where mis the multiplicity of e0in N(e).234 Proof. Through each point in U(j) draw a horizontal line, and for each rectangle in235 Rect(j) draw a horizontal line through the top side and a horizontal line through the236 bottom side. Each of these K=|U(j)|+ 2|Rect(j)|lines goes through a different element237 of Sπ, and they subdivide the plane into K+ 1 strips.238 Since the point j+ 1 is to the right of every point of U(j) and of every rectangle in239 Rect(j), the relative position of point j+1 with respect to the elements of U(j) and Rect(j)240 is to be in one of these strips, and this happens with probability 1/(K+ 1). Furthermore,241 the color of point j+ 1 is given with probability 1 2. The lemma follows.242 Note that the value of Xj+1 depends only on the value of Xj; it does not depend on243 9
A Bichromatic matching393 In this section, we present our results when matching red points with blue points. The394 Markov chain for this case consists of 20 states {e1, e2, . . . , e20}, and it is described in395 Table 9. Its transition matrix is showed in Figure 8.396 We have that f(e) = 2 for all e∈ {e3, e7, e9, e10, e12, e17, e18, e19, e20},f(e11) = 4, and397 f(e) = 0 for every other state e. Furthermore, the stationary distribution s= (s1, . . . , s20)398 satisfies399 s3=4694 26397, s7=2560 26397, s9=340 26397, s10 =85 2933, s11 =85 8799 400 401 s12 =340 26397, s17 =340 26397, s18 =68 26397, s19 =68 26397, s20 =68 26397.402 Then, we obtain403 α3= 2(s3+s7+s9+s10 +s17 +s18 +s19 +s20)+4s11 =19506 26397 ≈0.738947608.404 By Theorem 1, taking ε=α3−0.7389 >0, for nlarge enough we have almost surely that405 at least 0.7389 npoints can be matched.406 16
eielem. of eif(ei)neighbors of ei e10(e2,1/2),(e3,1/2) e2 ∅ 2(e1,1) e30(e4,1/6),(e5,1/6),(e6,1/3),(e7,1/6),(e8,1/6) e40(e4,1/8),(e5,1/8),(e6,3/8),(e7,1/8),(e9,1/4) e50(e10,3/4),(e11,1/4) e62(e2,1/4),(e12,1/8),(e13,1/8),(e14,1/4),(e15,1/4) e70(e10,3/4),(e11,1/4) e80(e10,3/4),(e16,1/4) e92(e2,3/10),(e12,1/10),(e14,1/5),(e15,1/5),(e17,1/5) e10 2(e2,1/2),(e3,1/2) e11 ∅ 4(e1,1) e12 0(e2,1/2),(e3,3/10),(e6,1/5) e13 0(e2,1/2),(e3,3/10),(e6,1/5) e14 0(e2,3/10),(e3,1/2),(e6,1/5) e15 0(e2,1/2),(e3,3/10),(e6,1/5) e16 2(e2,1/5),(e12,1/10),(e13,1/10), (e14,1/10),(e15,3/10),(e18,1/5) e17 2(e1,5/6),(e2,1/6) e18 2(e1,5/6),(e2,1/6) Figure 7: The table shows the 18 states of the Markov chain for k= 3. In the second column we show the first component of ei, and in the third column we show the second component f(ei). In the last column we show the neighbor states of eias a list of pairs of the form (ej, Pi,j ), where Pi,j = Prob(X`+1 =ej|X`=ei)>0 is the transition probability from eito ej. 17
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 10 1/2 1/2000000000 0 0 0 0 0000 20 0 0 1/6 1/6 1/6 1/3 1/6 0 0 0 0 0 0 0 0 0 0 0 0 31/1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 40 0 0 1/8 1/8 1/8 1/8 1/4 1/4 0 0 0 0 0 0 0 0 0 0 0 50 0 0 0 0 0 0 0 0 3/4 1/4 0 0 0 0 0 0 0 0 0 60 0 0 1/401/8 1/4 1/8 0 0 0 1/4 0 0 0 0 0 0 0 0 70 0 1/40000000001/8 1/8 1/4 1/40000 80 0 0 1/8 1/8 1/4 1/8 1/8 0 0 0 0 0 0 0 0 1/4 0 0 0 90 0 1/100000000001/10 1/5 1/5 1/5 0 1/5 0 0 10 0 1/2 1/2000000000 0 0 0 0 0000 11 1/1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12 0 0 1/100000000001/5 1/10 1/5 1/5 0 0 1/5 0 13 0 1/2 3/10 0 0 0 1/5 0 0 0 0 0 0 0 0 0 0 0 0 0 14 0 1/2 3/10 0 0 0 1/5 0 0 0 0 0 0 0 0 0 0 0 0 0 15 0 1/2 3/10 0 0 0 1/5 0 0 0 0 0 0 0 0 0 0 0 0 0 16 0 3/10 1/2 0 0 0 1/5 0 0 0 0 0 0 0 0 0 0 0 0 0 17 0 0 1/50000000001/10 1/10 3/10 1/10 0 0 0 1/5 18 5/6 0 1/6000000000 0 0 0 0 0000 19 5/6 0 1/6000000000 0 0 0 0 0000 20 5/6 0 1/6000000000 0 0 0 0 0000 Figure 8: The transition matrix of the Markov chain for k= 3, when matching red points with blue points. 18
eielem. of eif(ei)neighbors of ei e10(e2,1/2),(e3,1/2) e20(e4,1/6),(e5,1/6),(e6,1/6),(e7,1/3),(e8, /1/6) e3 ∅ 2(e1,1) e40(e4,1/8),(e5,1/8),(e6,1/8),(e7,1/8), (e8,1/4),(e9,1/4) e50(e10,3/4),(e11,1/4) e60(e4,1/4),(e6,1/8),(e7,1/4),(e8,1/8),(e12,1/4) e72(e3,1/4),(e13,1/8),(e14,1/8),(e15,1/4),(e16,1/4) e80(e4,1/8),(e5,1/8),(e6,1/4),(e7,1/8), (e8,1/8),(e17,1/4) e92(e3,1/10),(e13,1/10),(e14,1/5),(e15,1/5), (e16,1/5),(e18,1/5) e10 2(e2,1/2),(e3,1/2) e11 ∅ 4(e1,1) e12 2(e3,1/10),(e13,1/5),(e14,1/10),(e15,1/5), (e16,1/5),(e19,1/5) e13 0(e2,1/2),(e3,3/10),(e7,1/5) e14 0(e2,1/2),(e3,3/10),(e7,1/5) e15 0(e2,1/2),(e3,3/10),(e7,1/5) e16 0(e2,3/10),(e3,1/2),(e7,1/5) e17 2(e3,1/5),(e13,1/10),(e14,1/10),(e15,3/10), (e16,1/10),(e20,1/5) e18 2(e1,5/6),(e3,1/6) e19 2(e1,5/6),(e3,1/6) e20 2(e1,5/6),(e3,1/6) Figure 9: The table shows the 20 states of the Markov chain for k= 3, when matching red points with blue points. In the second column we show the first component of ei, and in the third column we show f(ei). In the last column we show the neighborhood of eias pairs (ej, Pi,j ), where Pi,j is the transition probability from eito ej.19