mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Puzzles

Reply
 
Thread Tools
Old 2017-05-01, 20:58   #12
a1call
 
a1call's Avatar
 
"Rashid Naimi"
Oct 2015
Remote to Here/There

3×5×137 Posts
Default

Just submitted my solution. For the record the solutions don't seem abundant. A 53 character limit means there can be only one hyphen.
Brute force does not seem to be the correct approach.
a1call is offline   Reply With Quote
Old 2017-05-01, 21:04   #13
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

11×347 Posts
Default

Quote:
Originally Posted by a1call View Post
Just submitted my solution. For the record the solutions don't seem abundant. A 53 character limit means there can be only one hyphen.
Brute force does not seem to be the correct approach.
If this is true, I am lost in my understanding. My program found thousands of strings that satisfy my understanding of the solution, before I CTRL-C'd it.

I await further understanding...

Edit: I am currently letting my program run. It is nowhere near finishing, but it has found over 13000 strings at about ten minutes.

Last fiddled with by EdH on 2017-05-01 at 21:20
EdH is offline   Reply With Quote
Old 2017-05-01, 21:11   #14
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by EdH View Post
If this is true, I am lost in my understanding. My program found thousands of strings that satisfy my understanding of the solution, before I CTRL-C'd it.

I await further understanding...
I made an error in my own solution but logic dictates that solutions come in pairs. I came up with my solution using notepad and a few logically reasoned ideas.
science_man_88 is offline   Reply With Quote
Old 2017-05-01, 21:19   #15
a1call
 
a1call's Avatar
 
"Rashid Naimi"
Oct 2015
Remote to Here/There

3×5×137 Posts
Default

Quote:
Originally Posted by EdH View Post
If this is true, I am lost in my understanding. My program found thousands of strings that satisfy my understanding of the solution, before I CTRL-C'd it.

I await further understanding...
There are 26 letters
2 instances of each letter are required to establish a gap equal to the priority of the letter

2 x 26 = 52

Number of hyphens in a 53 character string = 53 - 52 = 1
a1call is offline   Reply With Quote
Old 2017-05-01, 21:37   #16
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

73518 Posts
Default

Quote:
Originally Posted by a1call View Post
There are 26 letters
2 instances of each letter are required to establish a gap equal to the priority of the letter

2 x 26 = 52

Number of hyphens in a 53 character string = 53 - 52 = 1
I was more referring to your abundance mention. I do believe I understand the challenge, yet, if you are correct about there not being many, than I may be misunderstanding something. All of the strings that I have checked have the following parameters:

-one hyphen
-two As separated by one character, as in AEA
-two Bs separated by two characters, as in BIEB
-two Cs separated by three characters, as in CGB-C
-...
-two Zs separated by twenty-six characters, (no example given due to challenge)
-all strings are 53 characters long

In about 25 minutes time elapsed, my program has logged over 30,000 such strings into its output file.
EdH is offline   Reply With Quote
Old 2017-05-01, 21:38   #17
R. Gerbicz
 
R. Gerbicz's Avatar
 
"Robert Gerbicz"
Oct 2005
Hungary

22×7×53 Posts
Default

Quote:
Originally Posted by EdH View Post
If this is true, I am lost in my understanding. My program found thousands of strings that satisfy my understanding of the solution, before I CTRL-C'd it.

I await further understanding...

Edit: I am currently letting my program run. It is nowhere near finishing, but it has found over 13000 strings at about ten minutes.
You are over complicating this, submit one string + your code, he doesn't need all solutions... And actually I've used "return 0;" in the main routine after it printed the first found solution.
R. Gerbicz is offline   Reply With Quote
Old 2017-05-01, 21:40   #18
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

11×347 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
I made an error in my own solution but logic dictates that solutions come in pairs. I came up with my solution using notepad and a few logically reasoned ideas.
And that may be where I am not doing this properly by writing a program rather than reasoning it out...
EdH is offline   Reply With Quote
Old 2017-05-01, 21:43   #19
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

11·347 Posts
Default

Quote:
Originally Posted by R. Gerbicz View Post
You are over complicating this, submit one string + your code, he doesn't need all solutions... And actually I've used "return 0;" in the main routine after it printed the first found solution.
Thanks! I sent an email with the first ten and the program. I'm just letting it run wild ATM to see what turns up, and to see if I might find a solution with only 52 characters (no hyphen) in a reasonable time.

Last fiddled with by EdH on 2017-05-01 at 21:45 Reason: clarification
EdH is offline   Reply With Quote
Old 2017-05-01, 21:45   #20
a1call
 
a1call's Avatar
 
"Rashid Naimi"
Oct 2015
Remote to Here/There

3·5·137 Posts
Default

Quote:
Originally Posted by EdH View Post
I was more referring to your abundance mention. I do believe I understand the challenge, yet, if you are correct about there not being many, than I may be misunderstanding something. All of the strings that I have checked have the following parameters:

-one hyphen
-two As separated by one character, as in AEA
-two Bs separated by two characters, as in BIEB
-two Cs separated by three characters, as in CGB-C
-...
-two Zs separated by twenty-six characters, (no example given due to challenge)
-all strings are 53 characters long

In about 25 minutes time elapsed, my program has logged over 30,000 such strings into its output file.
As you describe it any of the thousands would be a solution.
My statement about the abundance is just an estimate based on nothing mathematical. Essentially a guess. I don't think there are thousands of solution, but I could very easily be wrong about that.
a1call is offline   Reply With Quote
Old 2017-05-01, 21:53   #21
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

838410 Posts
Default

Quote:
Originally Posted by EdH View Post
And that may be where I am not doing this properly by writing a program rather than reasoning it out...
I wish I could give a few hints that may not ruin the puzzle. oh and for a1call technically any solutions reverse is also a solution ...

Last fiddled with by science_man_88 on 2017-05-01 at 22:00
science_man_88 is offline   Reply With Quote
Old 2017-05-01, 22:02   #22
a1call
 
a1call's Avatar
 
"Rashid Naimi"
Oct 2015
Remote to Here/There

3·5·137 Posts
Default

Quote:
Originally Posted by EdH View Post
And that may be where I am not doing this properly by writing a program rather than reasoning it out...
Writing a program that finds thousands of solutions in minutes is definitely not "not doing this properly".

The only reason I moved to manually finding a solution is because there was not a chance my brute force program would find a solution in my lifetime.
a1call 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
August 2017 Batalov Puzzles 15 2017-09-05 03:47
July 2017 R. Gerbicz Puzzles 6 2017-08-08 22:58
June 2017 R. Gerbicz Puzzles 14 2017-07-03 20:01
2017 LaurV Lounge 17 2017-01-01 15:22

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


Sat Jul 17 03:56:09 UTC 2021 up 50 days, 1:43, 1 user, load averages: 2.26, 1.99, 1.80

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.