User miforbes - MathOverflowmost recent 30 from http://mathoverflow.net2013-05-20T16:35:24Zhttp://mathoverflow.net/feeds/user/4416http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://mathoverflow.net/questions/38245/what-is-the-easiest-randomized-algorithm-to-motivate-to-the-laypersonWhat is the easiest randomized algorithm to motivate to the layperson?miforbes2010-09-09T23:27:17Z2012-01-07T14:57:07Z
<p>When trying to explain complexity theory to laypeople, I often mention randomized algorithms but seemingly lack good examples to motivate their usage. I often want to mention primality testing but the standard randomized algorithms don't admit a simple description (or proof of correctness) in a lay-atmosphere. I often resort to the saying that randomized algorithms allow "finding hay in a haystack", but that has little mathematical substance. </p>
<p>The question: Is there a good example of a problem that:</p>
<ul>
<li><p>is easily explained (and sufficiently interesting)</p></li>
<li><p>has a simple randomized algorithm</p></li>
<li><p>appears non-trivial to get an efficient deterministic algorithm</p></li>
</ul>
<p>and ideally also satisfies:</p>
<ul>
<li>the randomized algorithm has a somewhat understandable proof of correctness - so no Markov/Chernoff/random-walk-mixing-times</li>
</ul>
http://mathoverflow.net/questions/69873/what-is-the-complexity-of-this-problem/70070#70070Answer by miforbes for What is the complexity of this problem?miforbes2011-07-12T00:21:34Z2011-07-12T00:21:34Z<p>If one relaxes the question to asking the row-reduction distance of arbitrary matrices over $\mathbb{F}_2$ then it can be shown that the problem is $NP$-Complete. That is, consider</p>
<blockquote>
<p>RRD (Row Reduction Distance):</p>
<p>Input: $m\times n$ matrices $M$, $N$
over $\mathbb{F}_2$, and an integer
$k$ </p>
<p>Output: Whether $M$ can be row-reduces
to $N$ in $\le k$ steps</p>
</blockquote>
<p>The claim is that this problem RRD is $NP$-complete. It is within $NP$, so the hardness is all that remains. To do this, consider the following related problem.</p>
<blockquote>
<p>MHW (Min Hamming Weight): </p>
<p>Input: $P\in\mathbb{F}_2^{m\times
n}$, $b\in\mathbb{F}_2^n$, integer $k$</p>
<p>Output: Is $b$ expressible as a linear
combination of $\le k$ rows of $P$.</p>
</blockquote>
<p>I'll first show that MHW reduces to RRD, then show that RRD is $NP$-hard. This together will show RRD is NP-hard.</p>
<p>Let $(P,b,k)$ be an instance of MHW. Create $M$ and $N$ as $(m+1)\times n$ matrices, where $M$ is just $P$ with the zero row appended on, and $N$ is just $P$ with the row $b$ appended on. I'll now show that $b$ is expressible as a linear combination of at most $k$ rows of $P$ iff $M$ is row-reducible to $N$ it at most $k$ steps.</p>
<p>The forward direction of this claim is straightforward. Now for the backward direction. Row-reduction operations over $\mathbb{F}_2$ are just "add this row to that row", or "swap this and that row". It follows that in $\le k$ row-reductions have at most $k$ "source" rows of where the additions come from. Thus, the last row of $N$ is equal to the last row of of $M$ (which is zero) plus at most $k$ other rows of $M$. This is exactly what was wanted, as the last row of $M$ is just $b$.</p>
<p>This completes the proof that MHW reduces to RRD.</p>
<p>Now let's show that MHW is NP-hard. We'll do so with:</p>
<blockquote>
<p>SET-COVER</p>
<p>Input: Sets $S_1,\ldots,S_m\subseteq[n]$, integer
$k$,</p>
<p>Ouptut: Decide if $[n]$ is the union of $\le k$ of the sets $S_i$</p>
</blockquote>
<p>It is know that Set-Cover is NP-complete. Here we need a slightly stronger version of this fact, where all of the sets are of constant size, and this is still NP-complete. (To see this, one first shows that 3SAT is still NP-complete when each variable appears in at most 3 clauses. Then one runs through the "standard" reduction from 3SAT to Set-Cover, and notices that all of the sets are of constant size).</p>
<p>Now consider a set-cover instance. Note that if we through in all subsets of each $S_i$, the answer to the cover question doesn't change. Note that we can do this as each subset is of constant size, so there aren't too many subsets to add. Thus we get</p>
<blockquote>
<p>Hered-Set-Cover</p>
<p>Input: Let $\mathcal{S}\subseteq
2^{[n]}$ be a family of sets, each of
size $O(1)$, that is subset closed.
Let $k$ be an integer.</p>
<p>Ouptut: Decide if $[n]$ is the union
of $\le k$ of the sets from
$\mathcal{S}$.</p>
</blockquote>
<p>and Hered-Set-Cover is NP-complete, as argued above. We'll now reduce Hered-Set-Cover to MHW. Take a Hered-Set-Cover instance, with the family of sets $\mathcal{S}$ and integer $k$. Suppose there are $m$ sets. Then write out $P$ to be the $m\times n$ matrx where the rows are the indicator vectors for the sets in $\mathcal{S}$. The target vector $b$ is the all ones vector, and $k$ is as in the original problem. So if $b$ is a $\le k$ linear combination of the rows, then this immediately gives the set-cover of $\le k$ sets. If there is a set-cover of $\le k$ sets, then we can always pass to subsets so that each element in the ground set is covered exactly once, and thus when we sum up the relevant vectors in $\mathcal{F}_2$ we never run into the issue that 2=0.</p>
<p>So really we are doing a "set-cover with odd covering at each vertex" in the MHW instance. The point is that allowing the subsets in the family makes the exact number of coverings irrelevant, and so we can assume things are covered exactly once.</p>
<p>It seems like there might be a more direct reduction from the problem Exact-Cover (where in set-cover we require that each element be covered exactly once). Indeed, I sort of just untangled the reductions needed to use Exact-Cover. But Exact-Cover doesn't seem exactly right, because if $b$ is a $\le k$ linear combination this doesn't immediately translate to an exact cover.</p>
<p>This approach doesn't seem to address the issue when $M$ and $N$ are full-rank in the RRD problem, as the reduction of MHW to RRD needs non-full-rank, and the MHW problem is solvable in polynomial time when $P$ is full rank.</p>
http://mathoverflow.net/questions/69873/what-is-the-complexity-of-this-problem/69984#69984Answer by miforbes for What is the complexity of this problem?miforbes2011-07-11T03:26:12Z2011-07-11T03:26:12Z<p>This is not a full answer, but perhaps too long for a comment.</p>
<p>Your question is about the distance problem in a fixed Cayley graph. If one also considers the Cayley graph as part of the input then some things are known. This makes sense in the context of permutation groups, where we can explicitly give the generators in a succinct way.</p>
<p><a href="http://md1.csa.com/partners/viewrecord.php?requester=gs&collection=TRD&recid=0094816CI&q=the+minimum-length+generator+sequence+problem+is+NP-hard&uid=790879427&setcookie=yes" rel="nofollow">Even and Goldreich</a> in the paper "Minimum-Length Generator Sequence Problem is NP-Hard" (J. ALGORITHMS. Vol. 2, no. 3, pp. 311-313. 1981) showed:</p>
<blockquote>
<p>We examine the following questions:
(1) Given a set of generators of a
permutation group G and a target
permutation P, find (the length of) a
shortest generator sequence realizing
P. (2) Given a set of generators of a
permutation group G, find the minimum
upper bound on the length of generator
sequences needed to realize any
permutation in G. We show that both
problems are NP-Hard by reducing the
3XC problem to each of them. The
reductions we use show that these
results hold even if the given set of
generators is restricted to contain
for each generator its inverse, too.</p>
</blockquote>
<p>This actually makes the problem NP-Complete (when the length is written in unary).</p>
<p>In other work, <a href="http://www.sciencedirect.com/science/article/pii/0304397585900477" rel="nofollow">Mark Jerrum</a> in "The complexity of finding minimum-length generator sequences" (Theoretical Computer Science Volume 36, 1985, Pages 265-289) showed:</p>
<blockquote>
<p>The computational complexity of the
following problem is investigated:
Given a permutation group specified as
a set of generators, and a single
target permutation which is a member
of the group, what is the shortest
expression for the target permutation
in terms of the generators? The
general problem is demonstrated to be
Image -complete and, indeed,is shown
to remain so even when the generator
set is restricted to contain only two
permutations. The restriction on
generator set cardinality is the best
possible, as the problem becomes
soluble in polynomial time if the
generator set contains only one
permutation. An interesting feature of
this problem is that it does not fall
under the headings of ‘two person
games’ or ‘formal languages’ which
cover the great majority of known
Image -complete problems. Some
restricted versions of the problem, in
which the generator set is fixed
rather than being part of the problem
instance, are also investigated and
shown to be computationally tractable.
One result of this kind is that
determining the most compact
expression of a permutation in terms
of ‘cyclicly adjacent transpositions’
can be achieved in polynomial time.
Thus, from an initial arrangement of
distinct objects on a circle, one can
quickly compute the smallest number of
interchanges of adjacent objects
required to realise any other
arrangement. Surprisingly, this
problem appears substantially more
difficult to solve than the related
one (for which a solution has been
known for some time) in which the
objects are arranged on a line
segment.</p>
</blockquote>
<p>Note that Jerrum considers the length of the path in binary, which changes things.</p>
http://mathoverflow.net/questions/33920/examples-of-super-polynomial-time-algorithmic-induction-proofsExamples of Super-polynomial time algorithmic/induction proofs?miforbes2010-07-30T16:19:18Z2011-05-25T19:24:39Z
<p>In combinatorics, one can sometimes get an <em>algorithmic proof</em>, which loosely has the following form:</p>
<p>-The proof moves through stages</p>
<p>-An invariant is shown to hold by induction from previous stages</p>
<p>-The algorithm is shown to terminate</p>
<p>-The invariant holding at termination implies the desired claim.</p>
<p>Perhaps the best example I know of is an algorithmic proof of <a href="http://en.wikipedia.org/wiki/K%C3%B6nig%27s_theorem_%28graph_theory%29" rel="nofollow">Konig's theorem</a>, which in a sense is just a max-flow/min-cut algorithm. In some sense, most induction proofs fit this mold. </p>
<p>The above example runs in polynomial time. Are there good examples of algorithmic/induction proofs that take <em>super-polynomial</em> time to prove things that don't obviously need such induction? </p>
<p>That is, I <em>don't</em> want Ackermann-like recurrences, or anything that is "brute-force". Further, I'm not looking for super-polynomial time algorithms that solve instances of problems, but rather am looking for super-polynomial time algorithms that prove a theorem of some sort (eg. like a combinatorial max-min theorem in the above example).</p>
http://mathoverflow.net/questions/60957/how-to-determine-whether-an-ideal-is-prime-or-not-by-an-algorithm/60961#60961Answer by miforbes for how to determine whether an ideal is prime or not by an algorithm miforbes2011-04-07T16:27:15Z2011-04-07T16:27:15Z<p>There is such a test. Some explanation can be found in: "An introduction to Gröbner bases, By William Wells Adams, Philippe Loustaunau", or the original article (<a href="http://portal.acm.org/citation.cfm?id=65034" rel="nofollow">http://portal.acm.org/citation.cfm?id=65034</a>) the above text is based on. See also <a href="http://www.singular.uni-kl.de/Manual/3-0-2/sing_815.htm" rel="nofollow">the singular manual</a>.</p>
http://mathoverflow.net/questions/59931/language-in-spacen-but-not-in-np/59942#59942Answer by miforbes for Language in Space(n) but not in NPmiforbes2011-03-29T04:31:33Z2011-03-29T04:31:33Z<p>Neither part of your question is known. To see this, note that $PSPACE$ contains $SPACE(n)$ (and $NP$), so exhibiting a language in $SPACE(n)$ not in $NP$ would separate $PSPACE$ and $NP$ - this is not known.</p>
<p>$SPACE(n)$ contains $L$ (logspace), and it is open whether $NP=L$ (note that $NP$ contains $L$). Thus, giving a language which is in $NP$ but not in $SPACE(n)$ would separate $NP$ and $L$ - also not known.</p>
http://mathoverflow.net/questions/55585/lower-bound-for-sum-of-binomial-coefficients/55592#55592Answer by miforbes for Lower bound for sum of binomial coefficients?miforbes2011-02-16T08:09:21Z2011-02-16T08:09:21Z<p>Summing binomial coefficients $\sum_{i=0}^k\binom{n}{i}$ can be seen as asking "how many binary strings are close to the length-$n$ all-zero string, differing in at most $k$ places?". One can generalize this to larger alphabets, and this almost captures your question on $\sum_{i=0}^k\binom{n}{i} (1-a)^{n-k}a^k$. So perhaps the coding theory community has more to say on this issue?</p>
<p>One place to start is this set of lecture notes by Venkat Guruswami:</p>
<p><a href="http://www.cs.cmu.edu/~venkatg/teaching/codingtheory/notes/notes2.pdf" rel="nofollow">http://www.cs.cmu.edu/~venkatg/teaching/codingtheory/notes/notes2.pdf</a></p>
<p>(see page 3).</p>
http://mathoverflow.net/questions/12775/a-generalization-of-boolean-matrix-multiplication-for-order-3-tensors/34336#34336Answer by miforbes for A generalization of Boolean matrix multiplication for order-3 tensorsmiforbes2010-08-03T04:44:03Z2010-08-03T04:44:03Z<p>I've been studying tensors (but mostly concerning lower bounds for their rank) for some months now, and can't say I've come across this and wouldn't be surprised if its new. Loosely, there are two groups of people I've seen studying tensors: mathematicians/theory-comp-sci-people interested in matrix multiplication algorithms, and numerical analysts interested in approximating 3D data with low-rank tensors (that is, a way of compressing 3D data by taking the "most important" aspects).</p>
<p>For the first group, a good reference is "Algebraic Complexity Theory" by Bürgisser, Clausen, Shokrollahi. I wouldn't expect your operation to be known in this community as it is a triary-operation, as opposed to binary. Mathematics of triary-operations doesn't seem common.</p>
<p>The other community does seem to be exploring operations on tensors, in particular interest with generalizing things such as SVD to tensors. Their literature is harder to navigate for me, but a good start is <a href="http://www.math.jmu.edu/~carlam/research/research.html" rel="nofollow">this page</a>, and to know that tensor decomposition is sometimes called "PARAFAC" analysis (parallel factorization).</p>
http://mathoverflow.net/questions/33856/reconstructing-a-polynomial-from-resultants/34042#34042Answer by miforbes for Reconstructing a polynomial from resultantsmiforbes2010-07-31T17:54:46Z2010-07-31T17:54:46Z<p>I really like this question, but unfortunately I think that it doesn't have <em>any</em> algorithm in the general case, as I'll explain below. Thus, to reconstruct your desired $f$, either you need to use $g_m$'s that are special, or assume that $f$ has some special structure (or both).</p>
<p>My claim goes against your stated algorithm (which is a shame, as it is a nice idea), so I'll first describe why I don't think that the algorithm works. I thought I had a formal proof that the algorithm was faulty (aside from the below counter-example), but it didn't go through. The problems I see are two fold:</p>
<ul>
<li><p>Even if one solves the system, I feel like it may not always be possible to get back to the actual coefficients of $f$ (I wouldn't be surprised if it was possible, though).</p></li>
<li><p>You claim that once we have enough equations then we should be able to solve the system of equations, but I don't currently see a proof that these equations are linearly independent (I feel like this is really where the algorithm breaks down).</p></li>
</ul>
<p>So now I'll give my counter-example: in a nutshell I'll construct an infinity family of monic, integer, coprime polynomials $g_m$ such that there are (at least) two monic integer polynomials $f_{-1}$ and $f_1$ such that $Res_x(f_1(x),g_m(x))=Res_x(f_{-1}(x),g_m(x))$ for all $m$. Thus, the resultants do not contain enough information to reconstruct $f$, no matter how long the algorithm takes.</p>
<p>Now for the details. First I'll assume that both $d$ and $e$ are even (I don't feel like this is a big restriction, but who knows?) [but I don't actually need $d>e$]. Define $g_m(x):=x^e-m^e$, for $m\in{2,3,\ldots}$. Clearly they are monic, integer, and coprime. Define $f_1=(x-1)^d$ and $f_{-1}=(x+1)^d$. Recall the <a href="http://en.wikipedia.org/wiki/Resultant" rel="nofollow">formula</a> for the resultant of monic polynomials (over the closure of whatever field we are working over):</p>
<blockquote>
<p>$Res_x(P,Q)=\Pi_{(a,b):P(a)=Q(b)=0}(a-b)$</p>
</blockquote>
<p>where the product is over roots, taken with multiplicity. So then</p>
<blockquote>
<p>$Res_x(f_1,g_m)=\Pi_{j=1}^e (1-m\omega^j)^d$</p>
</blockquote>
<p>where $\omega$ is a primitive $e$-root of unity (again, over the closure of the field). But as $d$ is even, this means that $-1$ is a $d$-root of unity so,</p>
<blockquote>
<p>$=\Pi_{j=1}^e (1-m\omega^j)^d=\Pi_{j=1}^e (-(1-m\omega^j))^d=\Pi_{j=1}^e (-1+m\omega^j)^d$</p>
</blockquote>
<p>and using $e$ is even, and thus that $-\omega$ is an $e$-th root iff $\omega$ is, we see that via reindexing</p>
<blockquote>
<p>$=\Pi_{j=1}^e (-1-m\omega^j)^d=Res_x(f_{-1},g_m)$</p>
</blockquote>
<p>so I've established the equality of the resultants, for any $m$. So clearly any algorithm that attempts reconstruction will fail, as it cannot distinguish between $f_{-1}$ and $f_{1}$.</p>
<p>Clearly, this result relies crucially on the fact that both $e$ and $d$ are even, but otherwise has no restriction. I feel like something could be done for cases when a small prime divides both $d$ and $e$, but at the moment this result seems sufficient for your purposes.</p>
<p>I suppose in a sense this counter-example "shows" that the "linearized" system you proposed cannot be invertible in general. It could be an interesting to ask for conditions for when the $g_m$ do form such an invertible system. However, as you say above, your $g_m$ are given you, so I'm not sure of a quick way to avoid this counter-example. </p>
<p>I hope that something is still recoverable for your application.</p>
http://mathoverflow.net/questions/33812/lower-bounds-for-chromatic-number-of-a-graph/33901#33901Answer by miforbes for Lower bounds for chromatic number of a graphmiforbes2010-07-30T08:51:16Z2010-07-30T08:51:16Z<p>Determining the chromatic number of an $n$-vertex graph is NP-Complete, and
even <em>approximating</em> the chromatic number within an $NP^{1-\epsilon}$ ratio is
$NP$-hard for every fixed $\epsilon>0$ (see
<a href="http://en.wikipedia.org/wiki/Graph_coloring#Computational_complexity" rel="nofollow">http://en.wikipedia.org/wiki/Graph_coloring#Computational_complexity</a> ). This
means that assuming $ P\ne NP$ (which is consider a very reasonable conjecture
by many in complexity theory) that no lower bound algorithm exists that is
- general, as it works on all graphs
- efficient, as it gives a lower bound in runtime polynomial in the size of the graph
- good, as in it comes close to the true lower bound</p>
<p>So in a way, the best algorithm that computes a lower-bound efficiently is the trivial algorithm that always outputs 1 or 2 (as we can decide 2-colorability).</p>
<p>In of itself, that above isn't terrible for your purposes because in a sense
all one needs for a lower-bound proof is a <em>certificate</em> that the given family
of graphs has high chromatic number. However, assuming $NP\ne coNP$ (another plausible conjecture), there cannot be a proof system such that:
- general, as it works for all graphs
- small, in the sense that it is of size polynomial in the size of the graph
- good, as for all graphs with chromatic number >=4 the proof system lower bounds the chromatic number likewise </p>
<p>(This last point follows from the fact that even determining if a graph is 3-colorable is $NP$-Complete.)</p>
<p>So in a sense, there can't be "general lower-bound technique" but rather only a collection of ad-hoc methods.</p>
http://mathoverflow.net/questions/32824/structure-theorems-for-turing-decidable-languages/32975#32975Answer by miforbes for Structure theorems for Turing-decidable languages?miforbes2010-07-22T16:58:09Z2010-07-22T16:58:09Z<p>It should be noted that the idea of finding a "property" that can be used to show non-membership in a certain class of languages was a driving force in computability theory in the 1950's or so. Specifically, Emil Post posed the question: are there computably enumerable (aka "c.e.", also known as Turing-recognizable (but not necessarily decidable)) sets that are undecidable <em>and</em> strictly Turing-below the Halting problem (note that any c.e. set is Turing-below the halting problem). That is, we want a c.e. set A such that $\emptyset <_T A <_T H$, where $H$ is the halting problem. This became known as <em>Post's Problem</em>. Further, he proposed <em>Post's Program</em>, which was to find a property of c.e. sets that implied the required conditions, and then to find an A with this property. Examples of such candidate properties are being "simple" (its a technical term). </p>
<p>Post's problem was solved in the positive by Friedberg and Muchnik, but by using a clever sort of delayed diagonalization, a sort of "injury argument". However, this did not show that Post's <em>program</em> could be solved in the positive, but indeed Harrington and Soare showed in 1991 that there is such a property satisfying Post's conditions (and a corresponding set A satisfying this property).</p>
<p>See the wikipedia article: <a href="http://en.wikipedia.org/wiki/Turing_degree#Post.27s_problem" rel="nofollow">http://en.wikipedia.org/wiki/Turing_degree#Post.27s_problem</a> as well as the Harrington-Soare article explaining some of the background (its open-access): <a href="http://www.ncbi.nlm.nih.gov/pmc/articles/PMC52904/" rel="nofollow">http://www.ncbi.nlm.nih.gov/pmc/articles/PMC52904/</a></p>
http://mathoverflow.net/questions/17255/counting-colored-rook-configurations-in-the-cube-when-is-it-evenCounting colored rook configurations in the cube - when is it even?miforbes2010-03-06T01:57:47Z2010-07-20T00:10:43Z
<h3>Informal Statement</h3>
<p>In the $n\times n \times n$ grid, we can places rooks (those from chess) such that no two rooks can attack each other. One way to achieve this is to place a rook in position $(i,j,k)$ if and only if $i+j+k=0\mod n$. In general, there are "many" ways to do this. </p>
<p>Each such "attack-free" rook position can be colored with $c$ colors. When we fix an $i$, we can then count the colors in the matrix $(i,.,.)$, and can do similarly for each $j$ and $k$. Call this set of tuples of colors-counts the "color profile". For each color profile, there is either an even or odd number of colored rook positions that achieve it. I want to know the largest $c$ such that all color profiles have an even number of colored rook positions achieving it. In particular, I want to say that $c=\omega(n)$. This question came up in some complexity theory research, but the question seems interesting in its own right.</p>
<hr>
<h3>Formal Statement</h3>
<p>Define $[n]$ to be the set ${1,\ldots, n}$, and define $[n]^3=[n]\times[n]\times[n]$. Define a <em>$c$-coloring</em> of a set $S\subseteq[n]^3$ to be a function $C:S\to[c]$. We can say that this is a $c$-coloring of $[n]^3$ with the convention that $C(i,j,k)=0$ for $(i,j,k)\notin S$. A $c$-coloring $C$ induces a <em>color profile</em> $P$, which is a function from $P:[n]\times[3]\times[c]\to[n]$, via the rules</p>
<ul>
<li><p>$P(i,1,c)$ is the number of $(j,k)\in[n]^2$ such that $C(i,j,k)=c$.</p></li>
<li><p>$P(j,2,c)$ is the number of $(i,k)\in[n]^2$ such that $C(i,j,k)=c$.</p></li>
<li><p>$P(k,3,c)$ is the number of $(i,j)\in[n]^2$ such that $C(i,j,k)=c$.</p></li>
</ul>
<p>where we keep in mind the convention above on $(i,j,k)\notin S$.</p>
<p>Call a set $S\subseteq [n]^3$ to be a <em>rook set</em>, if</p>
<ul>
<li><p>for all $i,j\in[n]$, there is exactly one $k\in[n]$ such that $(i,j,k)\in S$</p></li>
<li><p>for all $j,k\in[n]$, there is exactly one $i\in[n]$ such that $(i,j,k)\in S$</p></li>
<li><p>for all $i,k\in[n]$, there is exactly one $j\in[n]$ such that $(i,j,k)\in S$</p></li>
</ul>
<p>Let a <em>colored rook set</em> $C_S$ correspond the coloring $C$ of a rook set $S$.</p>
<p>Define $N(P)$ to be the number of colored rook sets $C_S$ that induce the color profile $P$.</p>
<p>The question is: </p>
<blockquote>
<p>For each fixed $n$, what is the largest $c$ such that for all color profiles $P$, $N(P)\equiv 0\mod 2$? In particular, is the largest $c$ asymptotically $\omega(n)$?</p>
</blockquote>
<hr>
<h3>What I know</h3>
<p>It should be clear that this problem can be defined analogously in any dimension, and I'm interested in this more general question. I state it with $d\ge3$ because I can solve the $d=2$ case exactly. In particular</p>
<blockquote>
<p>For each $n$, for any $c\le n-1$, and any color profile $P$ on grid $[n]^2$, $N(P)\equiv 0 \mod 2$. For $c\ge n$, there are profiles $P$ where $N(P)\equiv 1\mod 2$.</p>
</blockquote>
<p>This can be proven by exhibiting a bijection between colored rook sets (which in d=2 are just permutation matrices). Specifically, using the pigeonhole principle $c\le n-1$ implies that there are two rooks with the same color. If they were at positions $(i,j)$ and $(i',j')$, then we replace them with the rooks of the same color at positions $(i,j')$ and $(i',j)$. (Of course, one needs to make this well-defined to ensure a bijection.)</p>
<hr>
<h3>Possible Methods</h3>
<p>I see two possible methods of proof</p>
<ul>
<li><p>generalize the above bijection proof to the 3-dimensional case </p>
<ul>
<li>I don't know how to use the pigeonhole principle to get such an extension, but it seems possible that there is a method to show that some motif exists in any colored rook set, and then argue that we can alter this motif to get the bijection</li>
</ul></li>
<li><p>define a system of polynomials (over $\mathbb{F}_2$) such that the solution set corresponds to exactly the colored rook sets inducing a color profile $P$. Then try to apply the Chevalley-Warning theorem.</p>
<ul>
<li>I've tried this, but can't seem to get systems of polynomials where the sum of the total degrees is strictly less than the number of variables, so the C-W theorem does not apply.</li>
<li>One can observe the the C-W theorem is an "iff" here: if $N(P)$ is even then there is a multilinear polynomial with degree strictly less than the number of variables, such that the solution set encodes those $C_S$'s that induce $P$.</li>
</ul></li>
<li><p>Instead of using "rook sets", one can ask the question for other classes of subsets of $[n]^3$. I'd be happy with establishing $c=\omega(n)$ for any class of subsets (although I'd like to be able to compute at least one example of such a subset efficiently).</p></li>
</ul>
<blockquote>
<p>Are there other methods for counting modulo two that I missed?</p>
</blockquote>
http://mathoverflow.net/questions/69873/what-is-the-complexity-of-this-problem/70070#70070Comment by miforbesmiforbes2011-07-13T18:20:17Z2011-07-13T18:20:17Z@mhum: Thanks, I had an inkling that MHW might be related to some coding theory problems, but was only aware of the NP-hardness of computing minimum distance.
To summarize the proof by Berlekamp et al, they basically do a reduction from 3-Dimensional-Matching, which is essentially a restricted version of exact-cover. They avoid the need to make the family of sets subset closed because any matching must have a certain size, so even if a bunch of sets cover the entire ground set, it can only be a matching if it has the required number of elements.http://mathoverflow.net/questions/69873/what-is-the-complexity-of-this-problemComment by miforbesmiforbes2011-07-12T00:22:00Z2011-07-12T00:22:00ZPerhaps a title such as "The complexity of minimum distance in cayley graphs" would be more informative.http://mathoverflow.net/questions/69873/what-is-the-complexity-of-this-problem/69984#69984Comment by miforbesmiforbes2011-07-11T03:33:26Z2011-07-11T03:33:26ZIt's worth mentioning that determining permutation group membership is doable in polynomial time, as shown by Sims/Furst-Hopcroft-Luks (eg, see "Polynomial-time algorithms for permutation groups" by FHL).http://mathoverflow.net/questions/69873/what-is-the-complexity-of-this-problemComment by miforbesmiforbes2011-07-11T03:31:52Z2011-07-11T03:31:52ZAn idea: Instead of considering full rank matrices, consider arbitrary matrices. In such a case, one can consider the following. Given a matrix M (in F_2) and a vector b, what is the minimum hamming weight of a vector x such that x^tM=b. I've convinced myself that a progress argument shows that this is equivalent to asking for the number of row operations needed to transform M with a zero row at the bottom into M with a row b at the bottom.
This hamming-weight problem seems related to known problems such as set-cover (but one needs to be careful over F_2 (or even Z)).http://mathoverflow.net/questions/38245/what-is-the-easiest-randomized-algorithm-to-motivate-to-the-layperson/38259#38259Comment by miforbesmiforbes2010-09-10T05:28:04Z2010-09-10T05:28:04ZDeutsch-Jozsa is very much a query problem, and as such always feels too unnatural to try to motivate over a dinner with friends (which is approximately my target audience).http://mathoverflow.net/questions/38245/what-is-the-easiest-randomized-algorithm-to-motivate-to-the-layperson/38248#38248Comment by miforbesmiforbes2010-09-10T05:25:58Z2010-09-10T05:25:58ZAs I commented below, I don't like the max-cut/vertex-cover results because they aren't too much harder than the derandomized versions.
But I do really like Anup's directed connectivity story, and it plays nicely with the SL=L result of Reingold. Of course, it doesn't have an easily-explained correctness proof, but it is a nice story at least (about steady-state distributions, etc).
Still hoping for a better answer though ...http://mathoverflow.net/questions/38245/what-is-the-easiest-randomized-algorithm-to-motivate-to-the-layperson/38251#38251Comment by miforbesmiforbes2010-09-10T05:23:08Z2010-09-10T05:23:08ZI know I'm being picky here, but I suppose I'm looking for an algorithm to solve a problem exactly.
But further, I don't consider the "derandomized" 2-approximation algorithm for max-cut to be non-trivial - it is just a greedy/conditional-expectation result. (also, the randomized algorithm shows existence apriori, and to get efficiency we need a Markov-type result; not hard but not easily to explain to a layperson)http://mathoverflow.net/questions/38245/what-is-the-easiest-randomized-algorithm-to-motivate-to-the-laypersonComment by miforbesmiforbes2010-09-10T05:20:01Z2010-09-10T05:20:01Z@Steve,Ricky,David: I don't consider polynomial identity testing to be a natural problem for the layperson. While I don't dispute its theoretical interest (and indeed, am interested in it myself), it is harder to digest for people not too familiar with polynomials. I think PIT really becomes interesting on a practical level when it is used to solve another problem (such as matchings) but at that point the explanation of encodings is too hard.http://mathoverflow.net/questions/38245/what-is-the-easiest-randomized-algorithm-to-motivate-to-the-laypersonComment by miforbesmiforbes2010-09-10T05:15:17Z2010-09-10T05:15:17Z@Thierry-Zell: I like to tell lots of different people about theoretical-computer-science (it being my field). I don't expect a full proof to be convincing in conversation, but it should at least be intuitive enough to be graspable.
For example, the P vs NP question can be phrased as asking whether finding a needle in a haystack requires searching the entire haystack, while the P vs RP question can be phrased similarly: we have a haystack with some needles, but now we need to find the hay. I like this motivation and am hoping for a correctness proof in this vein for a natural algo.http://mathoverflow.net/questions/38245/what-is-the-easiest-randomized-algorithm-to-motivate-to-the-laypersonComment by miforbesmiforbes2010-09-10T05:10:36Z2010-09-10T05:10:36Z@steve-huntsman: That primality-testing is now known to reside in polynomial time is not a concern for me with respect to this question: this result was open for a while and so in some respects is still "open" for a layperson.http://mathoverflow.net/questions/33856/reconstructing-a-polynomial-from-resultantsComment by miforbesmiforbes2010-08-05T04:55:06Z2010-08-05T04:55:06Z@Gerry: I agree. Perhaps something is recoverable if we require the $g_i$ to have roots of a "sufficiently different" character? I can't formalize this at the moment, but the counter-example relies on all of the $g_i$ to be essentially similar.
Suppose, for concreteness we think of the roots as lying in the complex plane. One can consider the "patterns" formed by the convex hulls of the roots of the $g_i$. Somehow I imagine that if the convex hulls were pairwise disjoint then recovery should be possible - perhaps even efficient. In some sense I'm thinking of "triangulating" the polynomial.http://mathoverflow.net/questions/33856/reconstructing-a-polynomial-from-resultants/34042#34042Comment by miforbesmiforbes2010-08-05T04:47:29Z2010-08-05T04:47:29ZI'm sorry for such discouraging news; again I hope that is something is still recoverable ...http://mathoverflow.net/questions/33856/reconstructing-a-polynomial-from-resultants/34042#34042Comment by miforbesmiforbes2010-08-01T17:59:38Z2010-08-01T17:59:38Z@Gerry: Indeed; I'll have to admit I was somewhat surprised by the result. That is, I was expecting successful recovery (albeit with a strong lower bound on the number of resultants needed) upon first reading the question.http://mathoverflow.net/questions/33856/reconstructing-a-polynomial-from-resultants/34042#34042Comment by miforbesmiforbes2010-08-01T10:38:50Z2010-08-01T10:38:50ZThat it is an interesting possibility, but I feel like the above counter-example should be generalizable to a situation where the number of finite possibilities is rather large.
But even in this case, I'm not sure how one would <i>find</i> the finite number of possibilities, as clearly any linear system as either a unique solution or an infinite number (over an infinite field).
Also, I'm not sure if this would be sufficient for the application at hand.http://mathoverflow.net/questions/33920/examples-of-super-polynomial-time-algorithmic-induction-proofs/33950#33950Comment by miforbesmiforbes2010-07-31T14:31:38Z2010-07-31T14:31:38ZThanks, I am aware of Papadimitriou's various inefficient proofs of existence, but I consider these more of a brute-force type of proof in the sense that the algorithms themselves don't really establish the existence of the desired object - it is the various lemmas (parity, etc) that he uses to establish the existence. The algorithms sort of fall out in a trivial way.
Though, perhaps it isn't a meaningful distinction.