The 17x17 challenge: worth $289.00. I am not kidding.
Definition: The n x m grid is c-colorable
if there is a way to c-color the vertices of the n x m grid
so that there is no rectangle with all four corners
the same color.
(The rectangles I care about have the sides parallel to the x and y axis.)
The 17x17 challenge: The first person to email me
a 4-coloring of 17x17 in LaTeX will win $289.00.
(I have a LaTeX template below.)
UPDATE: THE RESULTS ABOUT OBS4 HAVE CHANGED
SINCE THE ORIGINAL POST SINCE BRAD LARSON EMAILED ME A
4-COL OF 21x10 and 21x11.
UPDATE: BRAD LARSON EMAILED ME A 4-COL OF 22x10.
Why 17x17? Are there other grids I care about?
We (We=Stephen Fenner and Charles Glover and Semmy Purewal) will soon be submitting a
PAPER
(see
TALK for
a superset of the slide-talk I've given on this paper)
on coloring grids.
Here are the results and comments:
For all c there is a finite set of grids
a1xb1, ...,
akxbk such that
a grid is c-colorable iff it does not contain any of the
aixbi
(n x m contains a x b if a &le n and b &le m).
We call this set of grids OBSc
(OBS for Obstruction Set).
Exactly one of the following sets is in OBS4:
21x13, 21x12.
Exactly one of the following sets is in OBS4: 19x17, 18x17, 17x17.
If 19x17 is in OBS4 then 18x18 might be in OBS4 .
If 19x17 is not in OBS4 then 18x18 is not in OBS4 .
A chart of what we do and do not know about 4-colorings of grids is
here.
A Rectangle Free Subset of a x b is a subset of a x b that has no rectangles.
Note that if a x b is 4-colorable then there must be a rectangle free subset of a x b of
size Ceil(ab/4). We actually have a rectangle free subset of 17x17 of size Ceil(289/4)+1.
Hence we think it is 4-colorable.
For the rectangle-free subset see
here.
For the original LaTeX (which you can use for a template when you submit yours)
see
here.
THIS IS WHY I AM FOCUSING ON 17x17--- BECAUSE I REALLY REALLY
THINK THAT IT IS 4-COLORABLE. I could still be wrong.
What if 17x17 is not 4-colorable?
Then nobody will collect the $289.00. Even so, if you find this out I would
very much like to hear about it. I don't want to offer money for that
since if your proof is a computer proof that I can't verify then its not clear
how I can verify it. I also don't want to offer money for a
reasonable proof since this may lead to having the Supreme Court
decide what is a reasonable proof.
Can I get a paper out of this?
FACT: If you get me the coloring and want to use it in a publication then
that is fine.
OPINION: It would not be worth publishing unless you get all of OBS4.
See next question.
What do you hope to get out of this?
My most optimistic scenario is that someone solves the 17x17 problem and
that the math or software that they use can be used to crack the entire OBS4 problem.
If this happens and my paper has not been accepted yet then we could talk about a merge,
though this is tentative on both ends.
Has there been any work done on this problem that is not in your paper?
A Rutgers grad student named Beth Kupkin has worked on the
problem: here.
A high school student (member of my VDW gang) Rohan Puttagunta
has obtained a 4-coloring of 17x17 EXCEPT for one square:
here.
SAT-solvers and IP-programs have been used but have not worked--- however,
I don't think they were tried that seriously.
Here are some thoughts I have had on the problem lately:
here.
There is a paper on the 3-d version of this problem:
here.
Is Lance involved with this at all?
When I gave a talk on grid colorings at Northwestern, Lance fell asleep.
Here is a quick approach, I am not able to pin down why it would not work.
Since OBS3 = {19x4, 16x5, 13x7, 11x10, 10x11, 7x13, 5x16, 4x19}, I suppose a 8x8 grid is 3-colorable.
I think of the 17x17 grid as split into 4 8x8 grids (build them from the 4 corners) and there's the remaining cross (intersecting right in the middle).
Suppose I have a 3 coloring, let me call it C. Apply C on the top-left and bottom-right sub-grids, and a suitable of C[*] on the remaining two. I color the "cross" with the fourth color.
[*] A variation of C that might work is the following: suppose C used the colors black, white and gray. The variant of C is obtained by swapping black and white, and leaving gray as is. If I'm not mistaken, this is a valid coloring?
The fourth color doesn't create monochoromatic rectangles. There are no problems within the four grids. Only potential problem is with rectangles going across, but my intuition is that the swapping will take care of it.
Whoops, sorry - there is definitely a problem with gray rectangles, and presumably with other cross-over rectangles too. Whew, I think I need a concrete 3-coloring before I go down this particular route.
The intuition was be to try and "mirror" the 8x8 colorings across and exploit the fact that they were proper colorings to begin with, but perhaps this is not quite correct. Yikes :)
The 4-color theorem refers to unique colors in adjacent regions. c-colorable configurations refers to corners on rectangles.
Note that the 17x16 clearly 4-colorable under Bill's definition (i.e., in the txt file example by the high school student you can simply delete the last row).
Okay, I want to pursue the first approach I outlined just a little bit longer.
Let X be a 3-coloring of a 8x8 grid. Suppose the colors used are black, white and gray. Let Y be the coloring obtained from X by making all black nodes white, white nodes gray, and gray nodes black (a permutation, after all). It's clear that Y is also a 3-coloring.
Let the 4 8x8 sub-grids of the 17x17 grid (each obtained by starting at a corner and expanding inwards) have the names A,B,C,D in clockwise order (A == top left, and so on).
I color A and D with X and B and C with Y. And everything that's leftover is colored red (the fourth color).
It's clear that rectangles formed with vertices of the "cross", the red ones, are never monochromatic. Rectangles sitting inside A,B,C,D are also not monochromatic. So we worry about those that lie in, say, A and B. The left column of the rectangle is in A and the right column is in B. Clearly, if both columns of the rectangle identified are the i^th columns in their respective 8x8 grids (for the same i), then because of the change in coloring, it cannot be monochromatic. If it's the i^th and j^th column in their respective grids, i different from j, it still cannot be monochromatic, because if it was, look at the i^th and j^th columns *inside one of the grids* and note that that would have been monochromatic.
A similar argument takes care of rectangles across B and D, C and D and A and C. Luckily, we don't have to worry about A and D and C and B.
Now we look at rectangles with one endpoint in each of A, B, C and D. Here, treat "A and C" as one large properly colored unit and "B and D" as a large properly colored unit and repeat the argument above.
@Neel: you can still have corners in each of A, B, C, D which are at different coordinates within each 8x8 quadrant, and therefore may be the same color. You must additionally devise a specific grid or set of grids which disallow this. Good luck!
@Ess: Look at the 5th and 6th rows of your so-called "solution":
20022112200330023 20022002200220022
These rows contain many monochromatic rectangles, such as the rectangle in columns 2 and 3 with all four corners colored 0. Remember, the problem is to color the grid such that no rectangles have all four corners the same color.
I probably misunderstood the problem but something doesn't make any sense. You say that the 3x7 grid is in OBS2. This just isn't possible. Why? Because: 1. If two the same patterns are used they will ALWAYS form a rectangle if the width > 2: 010 010 2. With two colors, you could see each line as a binary number. However, there are only 8 different combinations. 7 of these need to be used (see point 1), therefore you get the following solution (interchangeing lines and flipping all colors won't change anything): 000 001 010 011 100 101 110 Which would work perfectly if the first line wasn't necessary. But as there are no other permutations left, this HAS to be used!
Could you provide the 3x7 (or 7x3, it's almost the same) grid? I just don't see how it could be solved!
For the people who don't want to check their solution by hand, I've put a PHP script on pastebin that highlights all rectangles. It's not heavily optimized, but it should work with any size and number of colors.
@Anon: Of course! Should've occurred to me, thanks. I considered using the new color in the permutations - that seems to take care of all crossover rectangles (there was, actually, a more direct problem with my solution). However, coloring the cross in between becomes rather tricky!
@sep332: Thanks for pointing that out! I'm not sure I see why the one in each quadrant should be a problem (yet) - if you have shown it across the individual quadrant, like I was trying to say before, treat "A and C" as one large properly colored unit and "B and D" as a large properly colored unit and repeat whatever argument you have for, say, ruling out monochromatic rectangles across A and B. The coordinates cannot be too arbitrary since the rectangles have edges parallel to the axes?
It's impossible to solve by simply adding a row to the 16x17 solution as in the "EXCEPT for one square example" Any choice for the first 5 elements will lead to a rectangle.
Specifically, I posit that it's impossible to place 73 1s on a 17x17 matrix without creating a rectangle composed entirely of 1s.
To reduce the case-checking that would be required to test this, it's simple to prove that the four rows with the most 1s have between 20 and 23 1s in total.
I'm not too sure where to go past that, but if it can be proven that there exist four rows that span the column set with 1s, that makes things simpler. (Otherwise, if that can't be proven, it could lead to a way to construct the desired coloring!)
anon to anon, the is a most formidable problem that lies at the very heart of this problem. If we solve your problem maybe we can solve the hardcode++ problem and maybe this will lead to a solution of the original problem ?
The known results for 4-colorings claim that a 21 x 09 grid is colorable, but a 9 x 21 grid is not (reading the first value of the pair from the left column). There are other inconsistencies with some of the U cells close to this. I suppose a simple clerical error is to blame.
Not a solution - but here's 74 zeros that seem to work (don't know how to specify a fixed width font, so the columns don't line up properly through blogger):
The chart had a typo which I have now fixed. THANKS for catching it!
YES I am also interested in the status of 21x10, 21x11, 21x12, 22x10, 17x18, 18x18. However I am not putting a bounty on those. It IS my hope that whoever does 17x17 will then use the software or math on those.
Aaron Sterling- I will email you privatly on the mistake you may have found (fortunatly it does not affect the contest). Also, Aaron, THANKS for posting with your name, else I could not contact you.
Apologies for the post - was reading a thread on hacker news where they said you'd found a single colouring with 73 cells. Now I've checked it I see it was 74
It is claimed in the paper that exactly one of 19x17, 18x17, 17x17 is in OBS4 (This is close to a typo repeating that 22x10 is only 6 other unknown grids..).
We know that 17x17 in OBS4 => 18x17 in OBS4 => 19x17 in OBS4. Thus, according to the claim 19x17 can be the only one of the 3 to be in OBS4 and 17x17 is solvable..
But it seems clear that most of these claims are actually riddled with typos.
A valid coloring for a m x n grid can be turned into a valid coloring for a (m-1) x n grid (you just have to forget the last line of the grid). If there is exactly one of the following sets in OBS4: 19x17, 18x17, 17x17, the 17 x 17 grid must have a valid coloring.
Scott and louif, it's apparent that OBS4 is only a list of the "smallest" unsolvable grids: i.e. if 17x17 is in OBS4 then 18x17 is not, even though both would be unsolvable.
It's trivial to see that if you populate the left and top rows then all the remaining cells can be filled by process of elimination (or using process of elimination will yield a contradiction).
Using this method I have a simple program that "proves" no solution, see here.
Remember, there are four colors. Let's test your "process of elimination" theory on a smaller grid, say 3x3. Pretend you fill in the top and left rows as follows:
123 2__ 3__
The four _s can be any color as long as they are not all the same color. This leaves 4^4-4=252 possibilities. No process of elimination here.
I decided to try the brute force approach. Last night, I wrote a program that fills a 17x17 grid with random numbers between 1 and 4, then searches for rectangles. If it finds one, it changes three of the vertices to new random numbers. This process is repeated until no rectangles are found. It has checked more than 131 million grids so far, with no hits.
Sassan, you are rite i ran the same program(not even knowing what the program is and waht it really does) on my computer and nothing checked. so, the answer to the original problem is a big "-no-".
Sassan: It would be good to test your approach on 15x15 or 16x16, which do have solutions.
I also tried a Monte Carlo approach. I could get a 15x15 with a fair amount of computation, but I couldn't get a 16x16 even running on a grid for 12 hours. It seems like the state space is too large and/or complicated for my code. Thus I can't say that my not finding a 17x17 means that there isn't one.
I myself tried various greedy-style local search approaches, where we start with a random coloring and repeatedly try to make a modification that reduces the number of bad rectangles by as much as possible. But for me no luck up till now either.
I am skeptical of Annon #60's claim. It does, however, raise the interesting question can he convince us he has the correct answer with a zero knowledge proof for this particular problem?
I've tried the greedy and brute-force coloring approaches too without any luck so far. :( Question: Would anyone want to join forces? Perhaps we can increase the bounty using anon #60's trick. (But to be honest I don't care about the money at this stage, and would prefer to do an open wiki/wave where one could gather programs/ideas/failed approaches.) email: 289challenge@gmail.com
Suppose you have: ab cX and you wish to know the value of X. Since a,b,c touch you can assume they are three distinct elements; hence X is the unique {0,1,2,3} - {a,b,c}
So if you have abcdefgh q..... r s t you can compute the dots left-to-right -- or reach a contradiction.
I find the problem presentation confusing, and I would appreciate it if someone would verify whether or not I understand the correctly.
If I understand correctly, we are trying to create an N-coloring of an YxZ grid fitting constraints C. By grid, we mean the inset presence grid usually called a "checkerboard", where member cells, rather than member vertices, are considered, and where the member cells are not importantly different than squares.
The prize line is only satisfied for a coloring of four or fewer colors of a grid of exactly Y=17, Z=17, given C.
The constraints C are:
* From the grid, define the set of rectangles R such that every rectangle: ** Contains only inset unit cells, never fractions and never empty surrounding space ** Every rectangle position allowable by that constraint is represented, given a minimum dimension in either direction of two unit cells - that is, fit any rectangle you can along the border lines of the grid, and count it *** We skip rectangles with dimension 1 because identical corners seem to violate the spirit of the search, and because 1x1 squares preclude a solution being possible ** By example, a grid of Y=2, Z=3 would have a set R of three rectangles: the two 2x2 squares and the master 2x3 rectangle. Similarly, a Y=3 Z=4 grid would have 17 rectangles. ** The 17x17 <= 4 coloring must therefore satisfy 18496 rectangle corner sets. * For every rectangle in R, show that the histograph of the four corners' colors contains a minimum of two colors.
Is that a correct re-statement of the problem?
For reference, R is expressable as
rectlist(Width, Height) -> lists:flatten( [ [ {{X,Y},{X+W-1,Y+H-1}} || X <- lists:seq(1,(Width+1-W)), Y <- lists:seq(1,(Height+1-H)) ] || W <- lists:seq(2,Width), H <- lists:seq(2,Height) ] ).
Um... color the first row ABABABetc, then the second row CDCDCDetc. Alternate rows in this fashion, no two letters will be adjacent. It's really late so maybe I'm missing something obvious.
@Alexandru, @gasarch: Thanks! The explicit colorings should come in very handy, and I'm all inspired again.
By the way, coming up from the other side - what's the smallest number of colors with which one is able to color 17x17? The first trivial number that comes to mind is 17 (color each row with a different color). An application of the probabilistic method seems to yield a number more than this. Applying the Lovasz Local Lemma seems to give us 14 (worked this out in a discussion with a couple of interested/victimized colleagues here).
By looking at the 8x8 approach, I think getting a 7-coloring is quite easy, use a different set of 3 colors on the second set of quadrants, and yet another new color on the cross. I'm pretty sure it's not hard to bring this down to 6.
Anyone got a 5-coloring? Sorry if a 5-coloring is obvious or has been pointed out in the post/associated literature and I've missed it all along!
By the way, if you look at the 4x6 coloring, it has some very nice symmetry (mirror symmetry, across diagonals symmetry). It seems to reaffirm my hope to be able to go about this in a structural fashion, although I admit that I could be off on this by miles!
Has anyone tried using permutations of the rectangle-free set of 74 in order to reduce the complexity of a brute force approach? You might try to find as many rectangle-free sets of 73 as possible, find the 2 or even 3 that overlap least, and then randomly delete overlapping entries from all but one of the grids. That could reduce the overall complexity drastically.
I want to know if a 4x4 and 5x5 grid using 2 colors is possible, also whether a 9x9 and 10x10 grid of 3 colors is possible. If the 4x4 and 9x9 are possible while the 5x5 and 10x10 are not, I think it's reasonable that the 17x17 is not possible.
Edward - Any adjustment to your grid will introduce new monochrome rectangles as it goes. Taking an incorrect solution as a starting point is not going to make finding a solution any easier, it's just going to force a similarly huge amount of computations but in a different way.
FWIW, the GPU simulated annealing has now found a tiling with just 7 bad rectangles and one with just 6. If it is of any use to anyone I can post these here.
@Brad: Woah, how do you come up with things like that? :)
@kanodonkey: I'm sure you haven't missed this, but just in case, the post has a coloring that has only one bad rectangle... if your algorithm runs better on initial configurations with a small number of rectangles, then that would be the one to start off with :)
I was curious if anyone has pondered a lower granularity approach. That is to say, attempting to enumerate all of the 4-colorable 4x4 squares (or, even better, all of the 8x8 squares), and searching a space composed of these pieces.
Intuitively, we should appreciate by now that it is reasonably easy to come up with a 17x17 with only a few errors - and that the number of these is probably massive compared to the number with no errors. Further, there is little to no guarantee that the edit distance between the 17x17s with no errors and those with few errors is small. I appreciate that simulated annealing and GA both have tricks to get around these local maxima, but why not just decrease the total search space first?
I appreciate that enumerating all of the acceptable 4x4s will not be easy - and that there will probably still be many of them. However, there are a lot of tricks involving the symmetries and permutabilities of the problem that should allow them to both be both computed and stored in a reasonable amount of space and time. Also, I would be willing to believe that, if you get the 4x4s, that the number of 8x8s would not be so large (at some point the constraints will overwhelm the size of the search space, though exactly when is unknown).
@neel Not sure I saw that. There is a link to a solution with just one missing "square" but as far as I can see whatever number/color you put into that missing square there are 4 bad rectangles not one. Maybe there was a different post I was missing.
Sorry, i've not read all the comments of this post, so i don't know if the problem has been already solved, but I don't think it is posible to get that 17x17 square.
Thinking backwards, how far can you get with a 2-colorable problem? You could get 4x4, 4x5 or 5x4 colorable grids, but not 5x5. Why? Since you have two elements and 5 positions in each row you will have at least 3 positions with the same color in any row. There can't be any other rows which have that color repeated in those 3 positions. So there are only 3 (= 2^2 - 1)posibilities in 4 rows, f.e:
11122 221XX 122XX 212XX ???XX
Any combination you could think in substitution of the question marks will create a non-colarable grid.
The same thing happens with the 3-colarable problem. You could get a 9x9, 9x10 or 10x9 colorable grid, but no 10x10 posible, since any row would have at least one color repeated 4 times. You can think in only 8 (= 3^3 - 1) posible distributions but 9 more rows to get.
The last step would be applying the same to the 4-colorable problem. At least a color would be repeated 5 times per row. So only 16x16, 16x17 or 17x16 colorable grids could be found, but no 17x17 posible.
There are 7 unique (up to re-ordering the rows and columns) rectangle free arrangements on 21x12 of cardinality 63--and none of any greater cardinality. Proof forthcoming just as soon as I get it written up.
1x1 -> 1 colour from 2x2 to 4x4 -> 2 colours from 5x5 to 8x8 -> 3 colours from 9x9 to 16x16 -> 4 colours 17x17 -> 5 colours 18x18 -> 5 colours
How do I now? Easy. For example, an 8x8 square. 7 in binary is 111, there are three characters on '111'. So you can do it with 3 colours.
For 8x8, 8 is 1000, you'll say 4 characters, let me explain.
The theory is: 1 - 1 2 - 10 3 - 11 4 - 100 -> From 4 to above 3 colours and 4 is not included on that rule!!! 4 will be included on the rule of 2 colours. 5 - 101 6 - 110 7 - 111 8 - 1000 -> From 8 to above 4 colours and 8 is not included on that rule!!! 8 in 3 colours 9 - 1001 10 - 1010 11 - 1011 12 - 1100 13 - 1101 14 - 1110 15 - 1111 16 - 10000 -> From 16 to above 5 colours and 16 is not included on that rule!!! 16 in 4 colours
#37's grid is very interesting. there are 72 ones, 72 twos, 72 threes and 73 zeros. there are 4 rectangles, all with zero-corners and all can be removed by switching the colour of point (4,0). the problem is, switching the colour of this point doesn't make things better. who made the grid, machine or human? it looks to synthetic to be a random guess and the probability of guessing a 4-rectangle grid is very low. i'm looking forward to hearing from the grid's creator.
Sorry, I made a mistake in my previous comment. However, I do believe that the 17x19 case is impossible ... but I will not venture stating that I have proven it (yet).
Hi to everyone, I've tried to solve the problem with a SAT solver, and couldn't yet.. I've written a Python script which translate the coloring problem to an equivalent Sat problem in the cnf file format, then I manually try to solve it with WinSAT and the script reads back the solution and checks if it works with the php script which has been posted.. The Python script is now at https://code.launchpad.net/~sir-rainbow/+junk/4col , feel free to experiment with it(GPL code), I think someone with more knowledge of SAT solver might crack it :) it's also useful to generate grid of which we know there is a solution :)
I've tried solving the problem with a SAT solver based on WalkSAT. Since WalkSAT is an incomplete procedure, it can't prove unsatisfiability in general. For nxn puzzles, I managed to find a solution to 16x16 but no solution to 17x17.
Thanks ever so much for bringing a truly fascinating problem to the world. It has kept me stimulated during the christmas holidays!
First of all, I have not solved it. However, I have tried a number of approaches and thought I would share my experience just in case it should inspire someone else.
I notice that the problem is highly symmetrical. If a single colouring is found for an mxn grid then then must be many others, since (I believe) the rows and columns can be permuted in any order, which leads to m!n! alternatives. Also, the 4 colours can be permuted and the grid itself can be rotated/reflected.
An exhaustive search may not be so hard, because the vast majority candidates can be avoided by building up from smaller grids that have solutions, i.e. starting at 1x1, extending and backtracking (plus a few heuristics to avoid unnecessary attempts). Using this approach I can find 16x20 grids quite easily, e.g.
Considering the number of vertices and colours, it is clear that if a solution for a 17x17 exists then at least one colour must occur >=73 times. So my next attempt involves searching for arrangements of single colour vertices (the remaining ones are blank) that has no monochromatic rectangles and then adding the second colour and so on. Using this technique it is possible to find grids with 74 zeros and 74 ones, e.g.
I'm using a GA approach here, but the last two colours are proving difficult (as one would expect). I was very impressed with kanodonkey's approach, since the best I can do with the remaining colours is 14 monochromatic rectangles.
@baz I coded the simulated annealing using a combination of java, C (jni) and CUDA (http://www.nvidia.com/object/cuda_home.html) to use the graphics cards. The code itself is pretty simple so I did not need to use any third party library for the annealing.
@baz I put a more detail on my implementation in the comments for Chris Taylor's excellent blog post here http://crntaylor.wordpress.com/2009/12/10/17-x-17-challenge/
@kanodonkey, no problem, the (embarrassingly simple) code for searching and backtracking I put here: http://www.sti2.at/~barryb/four_colour.zip
It's Java and should be easy to import in to eclipse.
The search is done in the ExhaustiveSearch class. All I did was play around with different implementations of ColourOrderer and saved some interesting combinations, e.g. class Exp_16x20. Have fun!
I am guessing that the majority of posters on this blog have never solved an NP-Complete computer science problem before.
I have published a solution to the "10 most point dense 5x5 Boggle boards" problem. Starting from any initial board, the best ten boards will arise during a run of DeepSearch.c on a quad-core running over night.
This kind of solution required 3 months focused effort.
As demonstrated, if a single non-monochromatic coloring exists, then many of them exist. Therefore, we are not searching for a global optimal value in the traditional sense.
THE UNDERLYING ALGORITHM PRINCIPLE:
Many roads lead to Rome, but when do we know that we are 1 step away from Rome?
It seems that there are 2 important metric values that belong to this problem...
1) The number of monochromatic rectangles.
2) The minimum number of positions to be erased for a partial solution.
Integrating these two values along with custom meticulous-record-keeping, to avoid cyclic-redundant behavior, will allow an adaptation of the DeepSearch.c framework to either find a working coloring, or provide solid evidence to call off the search.
Obviously, when altering one position in the coloring at a time, shortcuts can be taken to reduce the analysis time required. This is the segment that I am investigating right now.
Please contact me if you are serious about solving this problem,
The program I am writing will find a coloring with zero monochromatic rectangles if any exist, and further, it will be finding it roughly over night.
If my program is unable to find the zero-coloring over night, the evidence will be so convincing to anybody who reads the WideSearch.c documentation that a reward of $289,000,000 will not convince any legit computer programmer to work on this problem.
The solution that I am developing is far from trivial, includes advanced data structures / algorithms, and is based on POSIX pthreads parallel batch processing.
An enormous number of 16x16 zero-colorings can be generated with a pencil, and a piece of paper.
I think that it would be nice to set up a clean place where everyone could put the best configuration he got, with a brief description of the method used - it is quite a pain to go through the hundreds of non-organized comments.
for those interested, I just set up a place where everyone can put the best result he obtained + brief description of the method: http://linbaba.wordpress.com/17x17-challenge/
I hope to have nice chats about ways of attacking the challenge ...
Let's not beat around the bush here... I like doing my mathematics by hand.
Computers only need to be used when the paperwork becomes overwhelming. Computers should not be used when a pencil and paper will get the job done.
By hand, a high-school student should understand how to generate an enormous number of 17x17 4-colourings with FOUR monochromatic rectangles. There may be a proof that FOUR is a hard limit, so find it in this essay, and get your $289. It may also be possible that no such limit exists.
Allow me to demonstrate:
Step 1) Define 4 colour sets { A, B, C, D }, where each set contains each colour, but has nothing in common with the other sets. There are many such sets.
Example: A = 0123 B = 1230 C = 2301 D = 3012
Step 2) Using { A, B, C, D }, construct a perfect 16x16 4-colouring, where each row has nothing in common with 3 rows, and ( 1 of each colour ) in common with the remaining 12 rows.
Example: 16x16 - A perfect 4-colouring. 0 - AAAA 1 - BBBB 2 - CCCC 3 - DDDD 4 - ABCD 5 - ACDB 6 - ADBC 7 - BADC 8 - BCAD 9 - BDCA a - CABD b - CBDA c - CDAB d - DACB e - DBAC f - DCBA
* I am ashamed about how long it took me to formalize these simple permutations.
Step 3) Group the rows with nothing in common together. There will be 4 groups, each containing 4 rows. This will guide Step 4.
Gp0 = { 0, 1, 2, 3 } Gp1 = { 4, 7, c, f } Gp2 = { 5, 9, a, e } Gp3 = { 6, 8, b, d }
Step 4) Build a 17th column by assigning 1 colour to each Group. Simply choose the corresponding Gp#. Note that a perfect 16x20 colouring can easily be generated using this method.
Step 5) Build a 17th row by assigning 1 colour to each Column-Group with nothing in common. In the 17th row, each number represents 4 identical numbers. Notice how there will be a single position, which has not been assigned a colour, marked by X. When it gets assigned, it introduces exactly 4 mono-chromatic rectangles into an otherwise perfect 17x17 colouring. Behold the result:
0 - AAAA 0 1 - BBBB 0 2 - CCCC 0 3 - DDDD 0 4 - ABCD 1 5 - ACDB 2 6 - ADBC 3 7 - BADC 1 8 - BCAD 3 9 - BDCA 2 a - CABD 2 b - CBDA 3 c - CDAB 1 d - DACB 3 e - DBAC 2 f - DCBA 1 L - 0123 X
* L = Last Row Number 17
Please do not give up hope just yet. If somebody would like to show me a 16x21 perfect 4-colouring, this might open the gates to the 17x17 perfect 4-colouring, because the 16x21 grid is the first format not easily plotted perfect by hand.
Mathematical Aside:
The "Apex Constraint Condition" - I define this condition to be a colouring where each row has exactly one position, of each colour, in common with EVERY other row.
I conjecture that an analytical proof for the (existence / non-existence) of a perfect 17x17 4-colouring will arise from a thorough investigation of colourings having the "Apex Constraint Condition".
Long story short. I've stumbled into a proof that 4 Monochromatic rectangles is the HARD-LIMIT minimum for a 17x17 4-Colouring.
Mathematics Required: High School - Basic Enumeration Techniques
STATEMENT: It is impossible to construct 5 rows in any 4-Colouring, which have nothing in common with each other.
PROOF: r1 - 0 r2 - 1 r3 - 2 r4 - 3 r5 - X
* Filling X with any Colour will introduce a commonality in the set.
CONCLUSION:
Four sets of 4 rows with nothing in common is an absolute hard limit for a 16x16 perfect 4-Colouring. This represents a "Minimal Constraint Condition" for 16x16 Colourings. It can also be shown that the "Apex Constraint Condition" where every row has 1 position of each Colour in common with each other row is impossible to construct for a 16x16 grid, and trivial for a 16x20 grid.
T1 - Any 4-Colouring can only contain a maximum of 4 rows with nothing in common.
PROOF BY CONTRADICTION:
Proposition: A Perfect 17x17 4-Colourings Does Exist
Thus, this Colouring must contain a perfect 16x16 Colouring. By T1, and demonstrated in above post, the Optimal 16x16 Perfect Colouring has 4 sets of 4 rows with nothing in common.
Even with this optimal arrangement, there will be 4 sets of columns with nothing in common, and there will be 4 row sets with nothing in common.
Each row and column set can therefore be assigned a unique Colour, which will be added to the 17th row and column respectively. Adding the 16-element-row and 16-element-column will then introduce ZERO monochromatic rectangles.
The final element in the Bottom-Right corner is marked with an "X".
Leaving the "X" blank, even in the most optimal case, the 17th row, and 17th column have exactly 1 Colour in common with each other corresponding row or column.
Filling any Colour into position X will thus introduce exactly 4 monochromatic rectangles. Simply inspect the Enumeration examples in the post directly above this one...
The proposition is a logical flaw, because assuming it to be true, PROVES THAT IT IS FALSE!
Therefore, A Perfect 17x17 4-Colourings Does NOT Exist
PS - I prefer cash, so please find a colleague of yours that lives in Toronto, who can hand it to me, and then you can wire them the money.
PPS - I prefer not to deal with banks until I get a sincere-written-apology from CIBC for claiming that they saved my life by emptying the $5000 in my account, while I was in a 25 day-long coma. I saved up that money working construction to pay for a trip to find a merit-based Aerospace Engineering job. I'm pretty sure that bankers aren't in the business of saving lives, and I don't give up, so I am still unemployed.
PPPS - I'm thinking this was a hoax, because I doubt that a tenured computer scientist would have any trouble putting together this bush-league high-school proof after a thorough and systematic investigation. I've recovered from massive head trauma, so even if it was a hoax, I'd at least like some peer review, and then my money in cash.
PPPPS - I also wrote an extremely powerful search algorithm in C with meticulous and space-saving record keeping, so as to completely eliminate cyclic redundant analysis, while being extremely greedy. Row isolated deviations allowed my quad core to analyse 2,733,499,642,000 of the best colourings in 9 hours and change. The program tanks out at 4 monochromatic rectangles, moves around the 6 to 10 space, and finds the next closest 4-mono-Colourings (typically 20 of them).
5 Monochromatic Rectangles are never found.
Maybe put out a bounty to prove that they don't exist.
Either your intuition was way off, and-or you're a stooge.
"Leaving the "X" blank, even in the most optimal case, the 17th row, and 17th column have exactly 1 *Colour* in common with each other corresponding row or column.
Replace *Colour* with "of each Colour".
It's 2 small words, and it doesn't sound as good, but it is correct.
It sounds like your unwillingness to pay out the imaginary $289 is a clear indication that you have never studied mathematics!
In simple Mathematics, a proof falls under only 2 categories:
1) VALID 2) INVALID
My proof, although the syntax does have typos, is logically airtight, and thus falls into category #1.
Please do the honorable thing, and pay out the Challenge Prize.
Without the $289, this so called Challenge is a lot of hot air. It's a novelty act, like Topo Gigio.
Mathematics, in its very nature is self-consistent, and thus not open to subjective interpretation. In other words, there is no room for debate using simple mathematics, and hence, it will never see the inside of a court room.
Given a valid proof, the honorable man must pay out the $289, in order to remain consistent.
Deciding not to pay the $289 for a VALID proof is what ultimately fails the "Reasonable Test".
1) I have looked over your proof and I do not find it convincing.
2) You claim that a 4-coloring of 16x16 MUST have a certain form. There are MANY 4-colorings of 16x16 with different forms. I recommend that you use your computer programs to find a 16x16 that is NOT of that form. If you find one then you will know your approach cannot work. If you do not find one then you can try to make your approach work.
3) MANY people have worked on the problem using computers. I have not kept any results secret. They have all posted on either my blog (Probably THIS posting) or on Brian Hayes Blog of Dec 2, 2009.
4) I set it up so that only a VALID coloring gets the money to avoid getting into lawsuits--- what if someone emailed me or posted an incorrect proof that they insisted was correct. And then sued for the money. Do we really want the supreme court deciding on what a valid proof is? (I don't think any of them have any mathematics training.)
I didn't go to Law School, but I do know how to read. Your proof states: "Therefore, A Perfect 17x17 4-Colourings Does NOT Exist." I will not comment on whether your proof is "VALID" or "INVALID." But if it is valid, as you claim it is, then you have proven that 17x17 is not 4-colorable.
Now refer back to Gasarch's original blog post: What if 17x17 is not 4-colorable? Then nobody will collect the $289.00. Even so, if you find this out I would very much like to hear about it. I don't want to offer money for that since if your proof is a computer proof that I can't verify then its not clear how I can verify it. I also don't want to offer money for a reasonable proof since this may lead to having the Supreme Court decide what is a reasonable proof.
You claim that 16x16 perfect colourings exist in many different forms, so why don't YOU produce some of these imaginary-fantasy-grids and elevate your comment from anecdotal jibber-jabber self-defense to something more scientific and systematic.
It is not my job to validate your weak comments.
You say that you have seen one, so produce it! Please!
If it does exist, I will work it into my proof because my humble intuition tells me that the logic is airtight. I certainly don't trust your intuition.
I am using my time to work on your problem, and not the other way around.
Let me show you a little magic-trick:
Your dear-boy, Rohan Puttagunta produced this 17x17 4-colouring with 4 monochromatic rectangles:
Sets A, B, C, and D are the same, and the beyond that, there is some superficial shuffling of relative locations.
AAAA 0 BDCB 0 CBDC 0 DCBD 0
ABBB 1 BCDA 1 CACD 1 DDAC 1
ACCC 2 BBAD 2 CDBA 2 DADB 2
ADDD 3 BABC 3 CCAB 3 DBCA 3
0123 +
Patterns do exist in the 16x16 perfect colourings.
Please show me the magical-mystery-imaginary 16x16 colourings with radically different formats to the one demonstrated in my proof, or just be a man and pay out the prize money.
$289 isn't going to ruin you, but it will save you from a competition that simple mathematics will not allow you to win. Also, being unemployed, I have 24 hours a day to work on this. It makes a lot of sense for you to just do the honorable thing here, and pay this man his money.
All the very best,
JohnPaul Adamovsky - TRUE until proven FALSE.
PS - No more superficial anecdotes please. Systematic, hard-evidence only.
Nobody cares whether a cheap-lazy-slob, with $289 to lose, is convinced by my proof. Mathematics is entirely self-consistent. There is no debate here, Gasarch. I win. Period.
"There are MANY 4-colorings of 16x16 with different forms."
Is this based on your keen scientific intuition?
Have you actually seen one? Were you awake at the time?
Work with me here, pal, I am trying to help you out, so please show us even just 1 16x16 perfect 4-coulouring with a different form than the one I use in my proof.
anecdotal: based on personal observation, case study reports, or random investigations rather than systematic scientific evaluation
Please at least show us your personal observations. I can't see inside of your head and I don't want to.
All the very best,
JohnPaul Adamovsky
PS - The 16x16 4-colouring in Rohan's example has four sets of four rows with nothing in common just like mine, and if your blog worked properly, it would be posted here.
I am making good progress in my attempt to enumerate all possible Perfect 16x16 4-colourings so as to complete my proof.
So far, any 16x16 4-colouring, which emerges from a 16x20 Perfect colouring with the "Apex Constraint Condition" will not fit into a 17x17 perfect colouring.
There is a good chance that all 16x16 Perfect colourings can be obtained in this manner, and hence my proof is complete.
Help out if you understand what I am trying to do.
The special boundary cases of interest for k colors occur at dimensions (k^2+1)x(k^2+1).
5x5 - not 2-colorable 10x10 - 3-colorable 17x17 - ??
This brings up an interesting point for JohnPaul: You claim that a valid 4-coloring of a 17x17 grid requires a 16x16 subgrid of a specific form. If this is true, I would hazard to guess that it would also be true for a 3-coloring of a 10x10 grid - specifically, that it would need a 9x9 subgrid of the same restricted form.
Of course, if that were true, 10x10 would not be 3-colorable, but we know[1] it is.
So, to JohnPaul: What about your proof holds in the 17x17 case, but allows the 10x10 to remain 3-colorable under the same arguments?
[1] See slide 44 of Bill's Rectangle-Free presentation: http://www.cs.umd.edu/~gasarch/papers/gridtalk.pdf
The imaginary 17x17 Perfect colouring must contain within it, a 17x16 Perfect colouring with four independent sets of rows, which are missing at least one colour in common.
This is a much looser form than the one contained in my proof.
I am thinking that any candidate 17x17 Perfect Colouring can be converted into this format using row/col switches, and colour flip-flops.
The "Y" positions can only take on 3 colours.
Please let me know if you have anything to add...
Along with my enumeration investigation, I am going to write a program that uses this format, along with massive pre-allocated arrays, and POSIX threads, which will hopefully start from a mono-colouring, and bounce around to colourings with the HARD-LIMIT minimum RANK. It will be extremely greedy, keep trie-compressed records, and have deviations confined to single rows to reduce the analysis time required.
All the very best,
JohnPaul Adamovsky - logarithm69@hotmail.com
PS - I've decided to solve this problem if it is possible, and there is a very good chance that it is possible.