mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Puzzles

Reply
 
Thread Tools
Old 2017-04-27, 23:01   #1
R. Gerbicz
 
R. Gerbicz's Avatar
 
"Robert Gerbicz"
Oct 2005
Hungary

17·97 Posts
Default May 2017

There is a new Ibm puzzle:
https://www.research.ibm.com/haifa/p...s/May2017.html
R. Gerbicz is offline   Reply With Quote
Old 2017-05-01, 16:02   #2
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

22×1,553 Posts
Default

Brute force seems to run out of steam at around n=15. Not sure what to do next.
henryzz is offline   Reply With Quote
Old 2017-05-01, 16:17   #3
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

22·1,439 Posts
Default

I wrote program that gives me thousands of valid answers, but how to translate it into a formula escapes me...

Edit: I wrote the program with embedded loops, hoping that once I found a valid string, I could create a formula, but alas, I can't get there from there...

Last fiddled with by EdH on 2017-05-01 at 16:20
EdH is offline   Reply With Quote
Old 2017-05-01, 16:38   #4
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

22·1,553 Posts
Default

Quote:
Originally Posted by EdH View Post
I wrote program that gives me thousands of valid answers, but how to translate it into a formula escapes me...

Edit: I wrote the program with embedded loops, hoping that once I found a valid string, I could create a formula, but alas, I can't get there from there...
You are brave doing that many embedded loops. I chose recursion.
henryzz is offline   Reply With Quote
Old 2017-05-01, 16:41   #5
a1call
 
a1call's Avatar
 
"Rashid Naimi"
Oct 2015
Remote to Here/There

41·59 Posts
Default

Without the 53 character limit, it would be trivial to come up with a solution, just line them up.
With the restriction however the brute force will require astronomical execution times to come up with a solution if such solutions are rare. Perhaps someone can do the number of atoms comparison here. I think running the brute force intelligently is the best approach. Running the brute force from large strings to lower should yield results faster (there are other similar improvement possible). Another improvement would be stop executing inner loops as soon as a conflict is found. But with 26 nested loops, it is a pain to code.
I have tried but can't afford to invest enough time to optimize the code.
a1call is online now   Reply With Quote
Old 2017-05-01, 16:41   #6
R. Gerbicz
 
R. Gerbicz's Avatar
 
"Robert Gerbicz"
Oct 2005
Hungary

17×97 Posts
Default

Quote:
Originally Posted by EdH View Post
Edit: I wrote the program with embedded loops, hoping that once I found a valid string, I could create a formula, but alas, I can't get there from there...
What formula? You need to find a valid string with no more than 53 characters... (it is likely it'll be a meaningless word). And send it with description how you found it (optionally with a code).
R. Gerbicz is offline   Reply With Quote
Old 2017-05-01, 16:56   #7
a1call
 
a1call's Avatar
 
"Rashid Naimi"
Oct 2015
Remote to Here/There

1001011100112 Posts
Default

If the solutions are abundant enough, then a random search might find a solution faster than an organized brute force.
a1call is online now   Reply With Quote
Old 2017-05-01, 18:11   #8
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

22×1,439 Posts
Default

Quote:
Originally Posted by R. Gerbicz View Post
What formula? You need to find a valid string with no more than 53 characters... (it is likely it'll be a meaningless word). And send it with description how you found it (optionally with a code).
If a program is all that's needed, I'll clean up the code and submit it. Right now it generates 54 character strings, but the 54th character is an "*" instead of a valid character. The first 53 characters are valid. In 10 seconds on my machine the C++ code writes over 500 valid strings. This, of course, assumes that I am not mistaken in my understanding.

Can I post one of the stings here for review or would that share too much info for the challenge?
EdH is offline   Reply With Quote
Old 2017-05-01, 18:31   #9
R. Gerbicz
 
R. Gerbicz's Avatar
 
"Robert Gerbicz"
Oct 2005
Hungary

17×97 Posts
Default

Quote:
Originally Posted by EdH View Post
If a program is all that's needed, I'll clean up the code and submit it. Right now it generates 54 character strings, but the 54th character is an "*" instead of a valid character. The first 53 characters are valid. In 10 seconds on my machine the C++ code writes over 500 valid strings. This, of course, assumes that I am not mistaken in my understanding.
I'm not the puzzlemaster, but I think that he needs a valid string + description your method. The code is really optional (in some cases I don't email that, if that is not very nice/short). It could be possible that he accepts valid string + code also.

Quote:
Originally Posted by EdH View Post
Can I post one of the stings here for review or would that share too much info for the challenge?
Here do not post full/partial solutions. You can do that only after the contest, when the official solution appears.
R. Gerbicz is offline   Reply With Quote
Old 2017-05-01, 18:38   #10
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

22·1,439 Posts
Default

Quote:
Originally Posted by R. Gerbicz View Post
I'm not the puzzlemaster, but I think that he needs a valid string + description your method. The code is really optional (in some cases I don't email that, if that is not very nice/short). It could be possible that he accepts valid string + code also.



Here do not post full/partial solutions. You can do that only after the contest, when the official solution appears.
Thanks. I'll construct an email and send it. Then I'll know more.
EdH is offline   Reply With Quote
Old 2017-05-01, 18:48   #11
R. Gerbicz
 
R. Gerbicz's Avatar
 
"Robert Gerbicz"
Oct 2005
Hungary

17·97 Posts
Default

Quote:
Originally Posted by EdH View Post
Thanks. I'll construct an email and send it. Then I'll know more.
OK, it is not a very complicated process. Furthermore what I generally follow is that if you use a special program (say Maple/Mathematica/Matlab) or even a free program then submit also the screen output. You don't need it for c/c++/Pari-Gp code because it is so general, he can even run it easily if he wants it.

Last fiddled with by R. Gerbicz on 2017-05-01 at 18:48
R. Gerbicz is offline   Reply With Quote
Reply

Thread Tools


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 04:16.


Sun Sep 24 04:16:14 UTC 2023 up 11 days, 1:58, 0 users, load averages: 1.63, 2.01, 1.74

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, 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.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔