mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Puzzles

Reply
 
Thread Tools
Old 2018-10-17, 06:21   #56
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

36·13 Posts
Cool

Quote:
Originally Posted by bsquared View Post
I finally managed to find a solution (yay!).
Great!

Are you still at Mayo?

I've seen some talks from Mayo today, - this year ASHG is right here in San Diego.
Are you doing to any genetics conferences between some math puzzles?
Batalov is offline   Reply With Quote
Old 2018-10-17, 13:03   #57
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

3×1,171 Posts
Default

Yep, still here! No conference attendance planned as of now. Really I should wait till Jan/Feb to plan any trips to San Diego ;) Heck, Missouri starts looking nice in January.
bsquared is offline   Reply With Quote
Old 2018-10-23, 19:06   #58
Dr Sardonicus
 
Dr Sardonicus's Avatar
 
Feb 2017
Nowhere

122316 Posts
Default

Quote:
Originally Posted by Batalov View Post
Of course, maybe they have an elegant solution, instead.
They updated the site on the 17th. It now has this note:
Quote:
A bonus '*' will be awarded to the solutions with the smallest area.
Dr Sardonicus is offline   Reply With Quote
Old 2018-10-24, 17:26   #59
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

36×13 Posts
Default

And with the 10/24 update, the asterisks moved to other submitters.
So, minimality is an elusive goal.
Batalov is offline   Reply With Quote
Old 2018-10-24, 19:35   #60
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

73518 Posts
Default

After much frustration with 88 threads running for a couple of weeks I dialed them back considerably for a few days. But I now have a random program running on several of them again (80 threads). If I can't find a solution through a systematic approach, let's see how lucky I can get.

My random threads are turning up lots and lots of ten point solutions. All I need is one "lucky" eleventh point...
EdH is offline   Reply With Quote
Old 2018-11-06, 01:59   #61
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

25×257 Posts
Default

http://www.research.ibm.com/haifa/po...tober2018.html
Xyzzy is offline   Reply With Quote
Old 2018-11-06, 02:44   #62
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

250516 Posts
Default

It is a little underwhelming - because it shows that there is no elegant solution.
There is apparently no proof that 528 is minimal.
And if 528 is minimal then 23x23 square solution is not easily out of question (24x24 exists).

(and he also slipped into that N-1 x M-1 mode of presenting results, so I will, too)
Batalov is offline   Reply With Quote
Old 2018-11-06, 14:14   #63
Dr Sardonicus
 
Dr Sardonicus's Avatar
 
Feb 2017
Nowhere

4,643 Posts
Default

What they posted are answers, not solutions. No clue on how they arrived at the answers. No indication of how they determined minimality.

Color me disappointed.
Dr Sardonicus is offline   Reply With Quote
Old 2018-11-06, 16:57   #64
axn
 
axn's Avatar
 
Jun 2003

22×3×421 Posts
Default

Quote:
Originally Posted by Dr Sardonicus View Post
No indication of how they determined minimality.
It doesn't look to me like they're claiming minimality, merely that that is the smallest area that they _received_.
axn is online now   Reply With Quote
Old 2018-11-06, 19:17   #65
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

381710 Posts
Default

The fact that less than 30 names are listed makes me feel slightly better about not being one of them, but somewhat worse for tasking 8, i7s for the month with nothing to show. Not sure how I'll approach November's challenge...
EdH is offline   Reply With Quote
Old 2018-11-07, 06:31   #66
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

36×13 Posts
Default

Quote:
Originally Posted by Dr Sardonicus View Post
What they posted are answers, not solutions. No clue on how they arrived at the answers. Color me disappointed.
I am not afraid to post mine. It's ugly (random shaking) but it did find 570 and later 567.
It is shown as hacked - it could have been improved, but it did produce a solution overnight on 20 threads (different L1 and L2=600\(L1-1)+1), so there, after that I had too much work.


I later played with some heuristics... but I am not going to show those variants.
Code:
// IBM_Oct2018.c
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

typedef struct {
  char x,y;
  float w;
} _pt;

int xy[24], tr[3*165], ar[165];

int ptcmp(const void* a,const void* b) { float x = ((_pt*)a)->w - ((_pt*)b)->w; return (x > 0) - (x < 0); }

int area(int n) {
  int i, x = xy[2*tr[3*n]], y = xy[2*tr[3*n]+1];
  int a = (xy[2*tr[3*n+1]]-x)*(xy[2*tr[3*n+2]+1]-y) - (xy[2*tr[3*n+2]]-x)*(xy[2*tr[3*n+1]+1]-y);
  if(a<0) a = -a; else if(a==0) return 0;
  for(i=0;i<n;i++) if(ar[i]==a) return 0;
  return (ar[n] = a);
}

main(int argc, char **argv) {
  int i,j,k,l,m,n,x,y,z, F[14], L1, L2, L;
  int of[12]={0,0}, s = argc>3 ? atoi(argv[3]) : 13;
  _pt *pt;

  s = rand(); srand(s+time(0));
  L1 = argc>1 ? atoi(argv[1]) : 20;
  L2 = argc>2 ? atoi(argv[2]) : 30;
  pt = malloc(L1*L2*sizeof(_pt));
top_: s++;
  //srand(s);
  for(n=j=0;j<L1;j++)
  for(k=0;k<L2;k++) {
    pt[n].x = j;
    pt[n].y = k;
    pt[n].w = rand(); n++;
  }
  L=L1*L2;
  qsort(pt,L,sizeof(_pt),ptcmp);
  //printf(" %d %d %f\n",pt[0].x,pt[0].y,pt[0].w); fflush(stdout);

  for(i=n=0;i<11;i++) {
  for(j=0;j<i;j++)
  for(k=0;k<j;k++) {
    tr[3*n]=k;
    tr[3*n+1]=j;
    tr[3*n+2]=i; //printf(" %d %d %d\n",k,j,i);
    n++;
  } of[i+1]=n;
  }
  //printf(" n=%d \n",n);
  for(n=i=0;i<11;i++) {
  retry_: if(n>=L) break;
    xy[2*i]=pt[n].x;
    xy[2*i+1]=pt[n].y; n++;
    for(k=of[i];k<of[i+1];k++) {
      if(!area(k)) goto retry_;
      //printf(" %d",ar[k]);
    }
  }
  if(i==11) {
    int mx=xy[0], my=xy[1], sx=0, sy=0;
    for(i=1;i<11;i++) {if(mx>xy[2*i]) mx=xy[2*i]; if(my>xy[2*i+1]) my=xy[2*i+1];}
    for(i=0;i<11;i++) {
      xy[2*i]-=mx;xy[2*i+1]-=my;
      if(sx<xy[2*i]) sx=xy[2*i]; if(sy<xy[2*i+1]) sy=xy[2*i+1];
      pt[i].w=(pt[i].x=xy[2*i])*1000+(pt[i].y=xy[2*i+1]);
    }
    qsort(pt,11,sizeof(_pt),ptcmp);
    printf("[");
    for(i=0;i<10;i++) printf("[%d,%d], ",pt[i].x,pt[i].y);
    printf("[%d,%d]] L1=%d L2=%d S=%d\n",pt[i].x,pt[i].y,sx,sy,sx*sy);
  } else goto top_;
  exit(0);
 }
Batalov is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
October 2017 Xyzzy Puzzles 9 2017-11-07 15:18
October 2016 R. Gerbicz Puzzles 10 2016-11-01 13:35
October 2015 LaurV Puzzles 3 2015-11-02 15:22
October 2014 Xyzzy Puzzles 8 2014-11-02 19:03
13 October is approaching! Joe O Prime Sierpinski Project 1 2010-10-09 06:12

All times are UTC. The time now is 03:34.


Sat Jul 17 03:34:52 UTC 2021 up 50 days, 1:22, 1 user, load averages: 1.59, 1.91, 1.68

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.