Problem 185

A place to air possible concerns or difficulties in understanding ProjectEuler problems. This forum is not meant to publish solutions. This forum is NOT meant to discuss solution methods or giving hints how a problem can be solved.
Forum rules
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.

This forum is NOT meant to discuss solution methods for a problem.

In particular don't post any code fragments or results.

Don't start begging others to give partial answers to problems

Don't ask for hints how to solve a problem

Don't start a new topic for a problem if there already exists one


See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
axelbrz
Posts: 51
Joined: Mon Sep 08, 2008 5:34 am

Problem 185

Post by axelbrz »

Hi,

Can it be solved in less than a minute?

And do I have to use random function to solve it?

Thanks!
"think(O(n))+O(n) sometimes is better than think(O(1))+O(1)"

Image
User avatar
ed_r
Posts: 1009
Joined: Sun Jul 29, 2007 10:57 am

Re: Problem 185

Post by ed_r »

You've been around long enough, axelbrz, to know not to expect an answer to that sort of question! 8-)
!647 = &8FDF4C
LarryC

Re: Problem 185

Post by LarryC »

It can be solved in less than a minute as almost every problem can. But that's a given. ;)
axelbrz
Posts: 51
Joined: Mon Sep 08, 2008 5:34 am

Re: Problem 185

Post by axelbrz »

okss! lol :lol: I'll try to solve it!

Thanks! :)
"think(O(n))+O(n) sometimes is better than think(O(1))+O(1)"

Image
LarryBlake
Posts: 100
Joined: Sat Aug 29, 2009 8:49 pm

Re: Problem 185

Post by LarryBlake »

In the example for the 5 digit problem, the guesses hit all 5 of the digits. Can we assume the same for the 16 digit problem?
Image
User avatar
hk
Administrator
Posts: 12832
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: Problem 185

Post by hk »

When you assume something, you risk being wrong half the time.
So, try and find out.
Image
War ruins the life and health of untold numbers of innocent children.
quilan
Posts: 182
Joined: Fri Aug 03, 2007 11:08 pm

Re: Problem 185

Post by quilan »

LarryBlake wrote:In the example for the 5 digit problem, the guesses hit all 5 of the digits. Can we assume the same for the 16 digit problem?
I don't recall exactly, been a while, but I do remember it was deterministic... i.e. only one answer.
ex ~100%'er... until the gf came along.
Image
LarryBlake
Posts: 100
Joined: Sat Aug 29, 2009 8:49 pm

Re: Problem 185

Post by LarryBlake »

Half? You think highly of me. :lol:
Image
User avatar
stijn263
Posts: 1505
Joined: Sat Sep 15, 2007 11:57 pm
Location: Netherlands

Re: Problem 185

Post by stijn263 »

quilan wrote:I don't recall exactly, been a while, but I do remember it was deterministic... i.e. only one answer.
Problem 185 (View Problem) reads:
Find the unique 16-digit secret sequence
;-)
LarryBlake
Posts: 100
Joined: Sat Aug 29, 2009 8:49 pm

Re: Problem 185

Post by LarryBlake »

Thanks. I understood that there was only one right answer. My question was, are all 16 of the digits mentioned in the guesses, or do I need to consider every digit as a possibility in each position (except where I can logically exclude them)?
Image
User avatar
hk
Administrator
Posts: 12832
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: Problem 185

Post by hk »

I understood your question perfectly.
That's what you have to find out.
Image
War ruins the life and health of untold numbers of innocent children.
LarryBlake
Posts: 100
Joined: Sat Aug 29, 2009 8:49 pm

Re: Problem 185

Post by LarryBlake »

Okay.

Are you going to change your signature next year?
Image
User avatar
hk
Administrator
Posts: 12832
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: Problem 185

Post by hk »

Yes, into 7×7×(7×7-7-7/7)+7log(7)
Image
War ruins the life and health of untold numbers of innocent children.
Georges
Posts: 2
Joined: Tue Mar 11, 2008 9:30 pm

Re: Problem 185

Post by Georges »

is there a fast algorithm for this problem ? (polynomial time)
zwuupeape
Posts: 189
Joined: Tue Jun 09, 2009 6:11 pm

Re: Problem 185

Post by zwuupeape »

No, this problem is NP-complete.
LarryBlake
Posts: 100
Joined: Sat Aug 29, 2009 8:49 pm

Re: Problem 185

Post by LarryBlake »

Wow, this was hard. After many different attempts, I finally got it, and not under 1 minute either.

Really nice problem.
Image
User avatar
Lord_Farin
Posts: 239
Joined: Wed Jul 01, 2009 10:43 am
Location: Netherlands

Re: Problem 185

Post by Lord_Farin »

zwuupeape wrote:No, this problem is NP-complete.
If I read the definition of NP-complete correctly, a problem belonging there does not mean there is no polynomial time solution... It just means that if there is one, there is a P solution for every problem in NP. The proof or disproof that NP-complete problems have no P-time solutions, however, is still unknown to man.
Image
zwuupeape
Posts: 189
Joined: Tue Jun 09, 2009 6:11 pm

Re: Problem 185

Post by zwuupeape »

The way I understand, he asks if such an algorithm is known, not if it could exist in theory. No algorithm that solves any NP-complete problem in polynomial time is known to exist. The more interesting question is, of course, if the problem belongs to that class. The answer is yes, because - at least as I read on the forum and confirmed online - the game of Mastermind is NP-complete and this one is the same except you have less information.
elr
Posts: 67
Joined: Thu Apr 09, 2009 9:47 am

Re: Problem 185

Post by elr »

does leading zeros allowed at the "secret sequence of digits" ?
Image
User avatar
rayfil
Administrator
Posts: 1412
Joined: Sun Mar 26, 2006 5:30 am
Location: Quebec, Canada
Contact:

Re: Problem 185

Post by rayfil »

Find the unique 16-digit secret sequence
A sequence of digits is requested. Since 0's are allowed as digits, they could appear anywhere in the sequence. Consider the digits as different colors.
When you assume something, you risk being wrong half the time.
Post Reply