Skip to main content

Featured Post

Ed Scheidts Mayan Symbols - Can we solve the puzzle?

In this post I want to talk about a thing from the Kryptos universe that are not directly related to the statue. But i think it may be an indirect hint to some Kryptos related methods. The Mayan Symbols in Ed Scheidts driveway I think everyone who knows Kryptos knows Ed Scheidt. The former Chairman of the Cryptographic Center at the CIA and founder of the cryptosystems used around the Kryptos statue. As already shown in Part 4 of my Kryptos series, in the driveway of Ed Scheidts house, there are two symbols: Figure 1 - Garage driveway of Ed Scheidt We denote the left symbol set with $S_1$ and the right one with $S_2$. It took me a while to find his house on Google Maps - Street View. To save you some time, here is the link with a view on the driveway. I you go back in time in Streetview, you can see that the symbols were already there in 2012. But it is impossible to say when they were built. $S_1$ is clearly visible from the street, $S_2$ is hidden in the view. But you can u...

Matchings are perfect

One of my favorite object in graph theory are Matchings, especially Perfect Matchings (PMs). Let me restate the definition of a PM briefly:

Definition (Perfect Matching)
Given a graph $\mathcal{G} = (E,V)$, then a Perfect Matching $M$ is a set of pair-wise non-adjacent edges from $E$, such that every vertex in $V$ is touched by one edge in $M$.

Here is a little example for a two PMs in a graph:

Figure 1 - Top: The original graph $\mathcal{G}$; Below: The red lines indicate two example perfect matchings in $\mathcal{G}$

This post list some of the properties of PMs regarding finding and counting them in different graphs types. During writing this posts, i found that a similar listing can also be red in [6].

1. Finding a Perfect Matching in a Graph $\mathcal{G}$

The task, given a graph $\mathcal{G}$, to find a PM can be solved in polynomial time (hence it is in $\mathsf{P}$) using the algorithm of Edmonds' [1]. Its complexity is $\mathcal{O}(\sqrt{V}E)$ and could not only be used to find a PM but also to find a maximal matching in general graphs.

2.1) Counting Perfect Matchings in a Graph $\mathcal{G}$

Albeit finding a single Perfect Matchings is efficiently solvable, counting all possible PMs is hard since it is #$\mathsf{P}$-$\mathsf{complete}$. For bipartite graphs this problem is equivalent to compute the permanent of a $0/1$-matrix as already covered in one of my previous blogposts. In that case (i.e. bipartite) there exists a fully polynomial time randomized approximation scheme (FPRAS) [2,3], which is actually an amazing result. The FPRAS, given a $n \times n$ matrix $M$, outputs an approximation $A$ for the permanent of $M$ such that:

\begin{equation} \text{Pr}[\text{exp}(-\epsilon)A \leq \text{perm}(M) \leq \text{exp}(\epsilon)A] \geq 3/4 \end{equation}

The probability of $3/4$ can be increased by repeating the algorithm. The algorithm runs in time polynomial in $n$ and $1/\epsilon$.

2.2) Counting Perfect Matchings in a Planar Graph $\mathcal{G}$

Whenever we can draw the graph on a paper $\mathcal{G}$ such that no lines cross each other, the problem to count PMs becomes easy. I.e., if $\mathcal{G}$ is planar, the algorithm of Fisher, Kasteleyn, and Temperley (FKT-algorithm) does the job in polynomial time. The algorithm finds a Pfaffian orientation in $\mathcal{G}$, which results in an $(-1,0,1)$ adjacency matrix $B$. The number of PMs is then equal to the square root of the determinant of $B$. Note that a graph is planar if and only if it does not contain the graphs $K_{3,3}$ or $K_5$ as a minor.

2.3) Counting Perfect Matchings in a $K_{3,3}$-free Graph $\mathcal{G}$

The result that PMs can be counted efficiently in planar graphs, i.e. in $K_{3,3}$ and $K_5$ free graphs, is well known. However, even in the case that the graph is not planar but only $K_{3,3}$-free, counting can be done in polynomial time, due to Vazirani [4]. Note that whenever $\mathcal{G}$ is not planar but $K_{3,3}$-free it must have $K_5$ as a minor. Vazirani used the result of Little [8], who shows how to find a Pfaffian orientation in a $K_{3,3}$-free graph given a $K_5$ minor, together with the result of Hall[13], that every triconnected component of a $K_{3,3}$-free graph $\mathcal{G}$ is either planar or exactly the $K_5$ graph.

2.4) Counting Perfect Matchings in a $K_5$-free Graph $\mathcal{G}$

The next result is that not only $K_{3,3}$-free graphs allow counting of PMs in polynomial time, but also $K_5$-free graphs. On contrast to the previous cases, this proof is only a few years old [7]. The same approach as in the $K_{3,3}$-free case does not work, since $K_5$-free graphs might not have a Pfaffian orientation. The authors used the result that the decomposition of a $K_5$-free graph in triconnected components yields either the Möbius ladder $M_8$ or the their 4-connected decomposition yields only planar components. The main obstacle is to put all partial results together to compute the right number of PMs.

2.5) Counting Perfect Matchings in a $\mathcal{H}$-free Graph $\mathcal{G}$ whereof $\mathcal{H}$ is single-crossing

This is a generalization of 2.3) and 2.4) and was published in [9]. Radu Curticapean shows that as long as the graph excludes a fixed minor that is single crossing, i.e., it can be drawn plane with only one crossing of two lines (e.g. $K_5$, $K_{3,3}$), one could find PMs in $\mathcal{O}(n^4)$.

2.5.1) Minor Testing

In this context an interesting question is, what is the complexity to test if a given graph $\mathcal{G}$ is $\mathcal{H}$-free or not. For arbitrary graphs $\mathcal{G}$ and $\mathcal{H}$ this problem is $\mathsf{NP}-\mathsf{complete}$. Just imaging, that you could pick $H$ such that it a circle graph with the same number of nodes as $\mathcal{G}$. Then the question if $\mathcal{G}$ has $\mathcal{H}$ as a minor is identical to test if $\mathcal{G}$ has a Hamiltonian cycle. But if you fix the graph $\mathcal{H}$, the problem becomes polynomial, because the exponential term, that came from $\mathcal{H}$ is now constant and even vanishes in the $\mathcal{O}$-notation (Problem conversation like this are called: fixed-parameter tractable).

2.6) Counting Perfect Matchings in Bounded Genus Graph $\mathcal{G}$

The genus $g$ of a graph $\mathcal{G}$ is the minimum integer $g$, such that the graph can be embedded without crossings on a surface of genus $g$. The genus of a surface is just the number of holes that it contains. Determining the genus of a graph is $\mathsf{NP}-\mathsf{Hard}$ whereof testing if a graph can be embedded into a genus $g$ is polynomial time solvable.

Figure 2 - Different surfaces with increasing genus. Left to right: 0,1,2,3.

A planar graph can be embedded on a surface of genus $0$. Figure 3 illustrates how the non planar graph $K_{3,3}$ can be embedded on a surface of genus $1$. The hole allows to escape from an inner face to the outside of the graph.

Figure 3 - On the left the graph $K_{3,3}$ is shown. It can not be embedded on a surface of genus 0, but if you increase the genus of the surface by drilling a hole in it, the line crossing can be removed by connecting the two vertices through that hole.

It was shown in [9,10,11] that the number of perfect matchings can be computed in $\mathcal{O}(4^gn^3)$ when the graph has a bounded genus.

[1] Edmonds, Jack (1965). "Paths, trees, and flowers". Canad. J. Math. 17: 449–467
[2] Ivona Bezáková, Daniel Štefankovič, Vijay V. Vazirani, and Eric Vigoda, SIAM J. Comput., 37(5), 1429–1454. (26 pages), Accelerating Simulated Annealing for the Permanent and Combinatorial Counting Problems
[3] M.R. Jerrum, A. Sinclair and E. Vigoda, A polynomial-time approximation algorithm for the permanent of a matrix with non-negative entries. Journal of the Association for Computing Machinery, 51(4):671-697, 2004
[4] Vijay V. Vazirani, NC algorithms for computing the number of perfect matchings in K3,3-free graphs and related problems, Information and Computation, Volume 80, Issue 2, February 1989, Pages 152-164
[5] Radu Curticapean. Counting perfect matchings in graphs that exclude a single-crossing minor. CoRR, abs/1406.4056, 2014
[6] Radu Curticapean, Mingji Xia: Parameterizing the Permanent: Genus, Apices, Minors, Evaluation Mod 2k. FOCS 2015: 994-1009
[7] Simon Straub, Thomas Thierauf and Fabian Wagner, Counting the Number of Perfect Matchings in K5-Free Graphs, Theory of Computing Systems, October 2016, Volume 59, Issue 3, pp 416–439
[8] C. H. C. Little. An extension of Kasteleyn's method of enumerating the l-factors of planar graphs. Combinatorial Mathematics, Proc. Second Australian Conference, Ed.: D. Holton, Lecture Notes in Math. 403, Springer-Verlag Berlin (1974), 63-72.
[9] Radu Curticapean, Counting perfect matchings in graphs that exclude a single-crossing minor. CoRR abs/1406.4056 (2014)
[10] Anna Galluccio and Martin Loebl. On the theory of Pfaffian orientations. I. Perfect matchings and permanents. Electronic Journal of Combinatorics, 6, 1999
[11] Tullio Regge and Riccardo Zecchina. Combinatorial and topological approach to the 3d ising model, Journal of Physics A: Mathematical and General, 33(4):741–761, 2000.
[12] Glenn Tesler. Matchings in graphs on non-orientable surfaces. J. Comb. Theory, Ser. B, 78(2):198–231, 2000
[13] Hall, D.W., A note on primitive skew curves, Bull. Amer. Math. Sot. 49, 935-937

Comments

Popular posts from this blog

Kryptos - The Cipher (Part 4) - Correctly positioned decryption of the word BERLIN

EASTNORTHEAST - This is not exactly the hint Jim Sanborn (JS) gave for K4 on the 29th of January this year. He only gave NORTHEAST - which refers to the positions 26-34 of K4's plaintext.  Beside BERLIN and CLOCK it is the third revealed plaintext word of K4. However, also this hint does not seem to help much.  However, it just so happened, that a member in the yahoo kryptos group had a conversation with Jim Sanborn due to a submitted solution. Sandborn's answer to the question contained again the last clue which surprisingly was EASTNORTHEAST at position 22-34. Jim Sanborns compass rose at CIA There is disagreement if Jim revealed this on purpose or he did it accidentially, but the new extended clue seem to be serious and valid.Interestingly, EASTNORTHEAST is exactly the direction which is illustrated on the compass rose on one of the stones around kryptos, also created by Jim Sanborn. Actually, i dont really kn...

Kryptos - The Cipher (Part 1) - Introduction

Introduction. Since I think that KRYPTOS does not need any introduction, I will only give you a brief description of one of the most famous and only partially solved ciphers known today: KRYPTOS - Von Jim Sanborn - Jim Sanborn, CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=8253447 KRYPTOS was constructed in Nov. 1990 on the ground of the CIA Headquarter in Langley, Virginia by Jim Sanborn It contains 4 ciphers (K1,K2,K3,K4) on its left side and some kind of Vigenère-Table on its right side K1, K2 and K3 were solved by James Gillogly in 1999. Afterwards, the CIA and later the NSA claimed that they had a solution to the first three ciphers at an earlier point in time Ed Scheidt, a cryptoanalyst and former director of the CIA, gave Sanborn the input of possible cryptographic techniques to use K1 is a variant of the Vigenère-Cipher (Quagmire 3) with the codewords KRYPTOS and PALIMPSES...

Kryptos - The Cipher (Part 3)

This post is about is more or less a collection of several approaches and facts that has been said as well as some speculations. B-ary integer representation According to [1] during a Question and Answer round, Jim Sanborn was asked again about the hint BERLIN. The question was if N decodes to B, Y decodes to E, etc, etc. and Jim confirmed it does. Emphatically . It is written, that Jim Sanborn rattled through the entire crib: \begin{align}   \texttt{N} &\stackrel{\text{decode}}{\rightarrow} \texttt{B} \\   \texttt{Y} &\stackrel{\text{decode}}{\rightarrow}  \texttt{E} \\   \texttt{P} &\stackrel{\text{decode}}{\rightarrow}  \texttt{R} \\   \texttt{V} &\stackrel{\text{decode}}{\rightarrow}  \texttt{L} \\   \texttt{T} &\stackrel{\text{decode}}{\rightarrow}  \texttt{I} \\   \texttt{T} &\stackrel{\text{decode}}{\rightarrow}  \texttt{N} \end{align} When the same q...