Excellent Math Riddle
Also subtracting numbers can eliminate ''over 1001'' problem for b).
I generalized the problem and came up with an entirely different strategy. What if the hat value of the second wizard falls equidistant between the two missing values?
This makes certainty under this strategy impossible.
No problem in that?
Free hat: 1
First wizards hat: 3
Second wizards hat: 2
The first wizard can say 1 or 3, it does not matter. If the first wizard says 1: the second wizard can say 2 or 3. He will choose 2, since it is closer to 1. If the first wizard says 3: the second wizard can say 1 and 2. 2 again.
Odd and even in what assignment? Hat values or a cardinal assignment of wizards? This is very clever of you. I should have paid a closer look towards solving for 500. I knew initially that odd/even expressions were relevant but I didn't devote effort towards working out the structure of such a strategy employing odd/even values with respect to proximity. I became pinned by the allure of solving 999.
I'm trying to disprove your 500 wizard strategy here and I'm uncertain. A few things popped up that I'm mulling over still; if we're assuming the hat value assignment is random then wouldn't the probability distribution of correct guesses be odd or asymmetrical? Will the strategy follow the same, symmetric distribution of correctness under all configurations of assigned values resulting in 500 promotions? I feel like if there are successive, equidistant value configurations or clusters of odd/even hat values then it would shift this either above or below .5 (specifically 0, .5, or 1). Where did I go wrong? If this initial assumption is true then would correcting it in a manner wherein odd and even both employ a system of expression individually promoting .5 even and .5 odd? Am I wrong on this one? I'm trying to find the one scenario wherein your solution is excepted.
I will likely edit this post as I continue to try to find the one scenario wherein the absolute solution is excepted if at all possible. Forgive my lack of such ability.
I think there is a misunderstanding.
Odd wizards give clues, even ones answer correctly. By saying odd (or even) wizards, I mean their position in the line, not their hat number.
In other conditions, odd wizards would state the closer number to their even successors.
let me give an example to clarify the method.
The seventh wizard (odd) in the line will have two options, for example 274 and 16. In front, from eighth wizard he reads 982. Even wizard already knows that there are three missing numbers for him beforehand: 982, 274 and 16. At this point, he would state the smaller closer number, namely 274. If eighth wizards hat was 16, he would say 982. So it is in a circular manner (mod 1001). If he had said 982, he would be pointing 16. If he had said 16, he would be pointing 274 and 274 would be pointing 982.
I do not know if I managed to clearly state my thoughts.
Thank you for clarifying and forgive my inability to initially reach this conclusion. It is the absolute solution for 500 with all possible configurations. I did two quick distinct distributions of values and it is something I should have recognized before formulating my last post. I rarely find absolutes and I've found so few in everything I've studied thus far that my natural tendency is to look for exceptions in everything. I'm really excited for this solution and I have a greater perspective.
You did very well in your explanation and I understood. Thank you for the clarification and this is logically incontrovertible as a solution and even under other conditions this is absolute.
I only understand things through the philosopher's approach because I lack formal knowledge and training in basic mathematics, pattern discernment and overarching logical absolutes notwithstanding aspects of legal reasoning. I love mathematics a lot and it's always a priority to be proven wrong as much as possible. My abilities lie within the dimensions of written (and sometimes verbal) linguistic expression though I really dig systems science and probability (including Bayesian networks.)
Do you stick to a particular branch of mathematics? You seemed to process and discern this solution very quickly. Do you mind if I message you my solution for 998 for you to maybe comment on or review? I don't want to post it here in case it's the most optimal.
I am pretty sure that there is no way to get 998 and that you have a fatal flaw in your analysis.
My guess is that you want the first wizard to subtract the smaller hat number from the larger hat number and give that as his choice. Then, the second wizard would see three numbers missing, figure out which two one would subtract to get the choice of the first wizard, and select the third as his own. And so on.
If that is so, then it doesn't work except in specific hat distributions.
For example, what if the first wizard doesn't see hats number 500 and 510. So he selects 10 as his choice. The second wizard would then look to see which hats were missing and determine that the two seen by the first wizard was 500 and 510. If hat number 750 wasn't seen, then he would choose 750 and get it right.
Sounds good so far.
But what if he sees that hats 500, 510, and 520 are missing? All he can know is that the first wizard either sees 500 and 510 as missing or 510 and 520 as missing. He is left with a guess between hat number 500 and hat number 520.
Even if the second wizard's hat was 750, when you get to a wizard with either hat 490 or hat 520, he is going to be left with a 50% chance of getting it right.
With a method like this, you really can't guarantee that any wizard will be faced with anything but a 50-50 guess and the total number of winners could easily be significantly less than 500.
Remember that for you to guarantee that 998 wizards win, the method must work for every possible distribution of hats. If there is even just one distribution that will not guarantee a win for 998 wizards, then you don't have a solution that guarantees wins for 998 wizards.
I really think that the best one can do is a guarantee that 500 wizards win like Somberlain suggested in which the odd numbered wizards give clues specifically for the even numbered wizards. His suggestion of doing a kind of round robin where the guess can wrap is brilliant. I wish I had thought of that.
My guess is that you want the first wizard to subtract the smaller hat number from the larger hat number and give that as his choice. Then, the second wizard would see three numbers missing, figure out which two one would subtract to get the choice of the first wizard, and select the third as his own. And so on.
If that is so, then it doesn't work except in specific hat distributions.
For example, what if the first wizard doesn't see hats number 500 and 510. So he selects 10 as his choice. The second wizard would then look to see which hats were missing and determine that the two seen by the first wizard was 500 and 510. If hat number 750 wasn't seen, then he would choose 750 and get it right.
Sounds good so far.
But what if he sees that hats 500, 510, and 520 are missing? All he can know is that the first wizard either sees 500 and 510 as missing or 510 and 520 as missing. He is left with a guess between hat number 500 and hat number 520.
Even if the second wizard's hat was 750, when you get to a wizard with either hat 490 or hat 520, he is going to be left with a 50% chance of getting it right.
With a method like this, you really can't guarantee that any wizard will be faced with anything but a 50-50 guess and the total number of winners could easily be significantly less than 500.
Remember that for you to guarantee that 998 wizards win, the method must work for every possible distribution of hats. If there is even just one distribution that will not guarantee a win for 998 wizards, then you don't have a solution that guarantees wins for 998 wizards.
I really think that the best one can do is a guarantee that 500 wizards win like Somberlain suggested in which the odd numbered wizards give clues specifically for the even numbered wizards. His suggestion of doing a kind of round robin where the guess can wrap is brilliant. I wish I had thought of that.
It was a perfect answer. Same here.
I'm not so confident about my original solution because I went back and tried to consider more things.
I actually tried to play it out on a piece of paper- but with only ten wizards and eleven hats.
Labeling the unused hat N11, and labeling the number picked by the first wizard N1, the second N2, and so on...up to N10.
And picking random numbers between 1 and 11 for each,AND following the rules.
I assumed the ploy of the first guy trying to tip off the rest by giving the difference between the two missing numbers (N1minus N11, or the opposite, whichever is bigger) instead of a real guess.
The values happened to two and seven - so each wizard knew the difference was five.
And went through each wizards options. Very complicated.
But usually each wizard would have three options - the number of unseen numbers- minus the numbers that had already been picked by previous wizards. Knowing that the point spread had to be five reduced that number of choices- not usually to one- but to two typically. So it did increase many wizards odds somewhat.
As it has already been said a few times, and assuming all wizards coöperate and don’t needlessly ruin each other’s chances to get promoted, each one has two possible hat numbers after discarding those he sees in front of him and those previously guessed.
Each wizard’s correct option will be, obviously, his own hat number, and his incorrect option will be the option the previous wizard discarded, no matter whether it would have been correct for him or not. That is, each wizard will say one of his two options and hand the other to the next wizard as the incorrect option. The first wizard’s incorrect option is the missing hat number.
Therefore, for any given wizard to be certainly promoted, the previous wizards have to use their guesses in some way to convey him the one bit of information he needs to determine which one of his two options is correct, according to the strategy they agreed on before the trial.
If we just want to make sure 500 wizards are promoted, it can be done by having each wizard at an odd-numbered place in the row use his guess to send that information to the next wizard. A given odd-numbered wizard will know his two options and the next wizard’s hat number. Let’s arrange these three numbers in decreasing order, calling them a, b and c, with a > b > c. The next wizard will know what these numbers are—his own two options and the number the previous wizard “guessed”—and therefore can also order them and know which is a, which is b and which is c. Therefore, Somberlain’s strategy can be used: if the even-numbered wizard’s hat number is a, the previous, odd-numbered wizard says b; if it’s b, he says c, and if it’s c, he says a. Now the even-numbered wizard can tell which of his two options is correct from the number the previous wizard “guessed”.
In order to make sure 999 wizards are promoted, there’d have to be a way for every wizard other than the first to deduce which of his options is the correct one from the previous guesses and the knowledge that they’re all right, with the possible exception of the first. The first wizard can never be guaranteed to get his guess right, so all the remaining wizards have to be. I haven’t managed to work this out.
We need a new strategy, because, if the first and the second wizards follow Somberlain’s, there are cases in which the third has no way to deduce which of his two options is correct. Namely, if the second wizard’s guess is less than the first’s, he’ll know his own incorrect option is between those two numbers, and otherwise that it’s outside that range. But if his real hat number also happens to meet the same condition, he won’t be able to tell it apart from the wrong option.
Considering all wizards except the first have to be right, only the first can actually use his “guess” to send information, even if the other wizards have to make use of other guesses to decode it. He’ll also know that the option he discards will reach all the other wizards as their own incorrect option.
wizard 1000 sees every hat in front of him and the number between 1 and 1001 that is not seen on a hat by him must be the number on his hat.
the person in front of him who also has the ability to see every hat ahead of him can ignore the number on the hat behind him as a possibility to be his own answer considering the rearmost person will be correct. if he can see all the all the hats in front of him, he can calculate what number will be on his hat since all the hats he sees will not contain 2 numbers (since one is already taken)
and the remaining unseen number must be the one on his cap. the process inevitably resolves itself so that every person correctly identifies what their hat number is.
Are you certain?
Reassess the data provided in the riddle: 1000 wizards, 1001 hat values and a total of 999 wizards/hat values encountered initially by the first wizard. He can use the process of elimination as you've argued but he nonetheless encounters two missing hat values and discerning the one placed on his own head is impossible with respect to total certainty. This means that the probability after using the process of elimination by the first wizard aided by the x-ray function will result in a .5 probability of correctness should the strategy be an iteration of blind guessing. If your strategy is the iteration of blind guessing then the first and subsequent wizards are enrolled in a continual inheritance of a probability of .5. which proves with certainty neither 500 or 999 wizards.
ok i misinterpreted your original question. i assumed that there was no hidden hat (not worn by any wizard) because you said this:
now i understand clearly that there is a hidden hat, then the question becomes more difficult.
the way i would reason it in this circumstance is as follows:
probabilities are not inevitabilities, so there is a sense of fuzzy logic that must be applied.
since we are using probabilities as absolute values, then i would propose that the first person to guess (the 1000th person ) will have a 50% probability of guessing the number on his head. he may be right and he may be wrong.
the person in front of him which is next to guess, will know that the person behind him has 50% chance of being correct, and therefore the two numbers that he can not see in front of him have also a 50% probability of being correct since one of those numbers may be worn by the person behind him.
the fifth person (if the 50% probability of the correctness of the 4 people behind him is taken as an absolute value) will hear the same number guessed twice, and therefore will be able to eliminate that hidden hat's number as a possibility. this makes 995 people who are certain of the number on their heads.
Somberlain
Deinonychus
Joined: 20 Jun 2012
Age: 38
Gender: Male
Posts: 362
Location: Land of Seven Horizons
b) The 998 solution:
The first wizard tells the average of the two unknown. There will always be 3 unknowns for the guessing wizard, and from 3 unknowns, the arithmetic mean of the 2 will always be unique, eliminating confusion. The wizard will use rounding in case of encountering averages with decimals.
Edit: Oh, that was stupid. Whatever.
The 999 solution is not possible, because the first wizard should send the data of the two unknowns in one number. The boundary ''over 1001 is not allowed'' forces the first wizard to say another wizards number, ruining the 999 solution.
And 998... Well, it is only possible if we can manage to point two unknowns with a single number within boundaries.
_________________
Aspie quiz: 158/200 AS AQ: 39 EQ: 17 SQ: 76.
You scored 124 aloof, 121 rigid and 95 pragmatic.
English is not my native language. 1000th edit, here I come.
Somberlain
Deinonychus
Joined: 20 Jun 2012
Age: 38
Gender: Male
Posts: 362
Location: Land of Seven Horizons
Wizards are allowed to hear each other's guesses, but not the correctness of a guess. In addition they can cast an x-ray vision spell that allows them to see all the hats in front of them (but not those behind them). Lastly, and importantly, no two wizards are allowed to say (guess) the same number.
They are allowed to decide on a strategy beforehand. The guessing begins with the wizard in the back who can x-ray 999 wizards in front of him.
(a) Show that at least 500 wizards can be promoted with certainty.
(b) Can 999 wizards be promoted with certainty?
I added the assumption that no wizard can posit or guess a value greater than 1001.
I love this riddle.
Can a wizard choose to stay silent? If he can, the 998 solution can absolutely be reached. Simply apply mod 1001 to the addition method, that is it.
_________________
Aspie quiz: 158/200 AS AQ: 39 EQ: 17 SQ: 76.
You scored 124 aloof, 121 rigid and 95 pragmatic.
English is not my native language. 1000th edit, here I come.
Last edited by Somberlain on 12 May 2013, 12:06 pm, edited 2 times in total.
One more thought in case it comes in handy: if a wizard “guesses” a number which isn’t one of his two options, which necessarily is the hat number of a wizard in front of him, any wizards in the middle will have an extra option (they’ll see in front of them a number already said by a wizard behind them, so the chance to eliminate another number will be lost), and the wizard whose name was “guessed” will have one less option again, because he won’t have the correct one. In other words, when a wizard says an invalid option, he’ll relay his two plausible ones to the next wizard, rather than just one, and this excess will be purged when the wizard whose hat number was said fails to have a correct option.
This can be nested, so each time a wizard “guesses” a number other than his plausible options, the number of options is increased by one, and it’s decreased by one when the turn comes for a wizard whose hat number has already been said to make his guess.
Of course, this can’t be used if you aim to promote 999 wizards with certainty.
Somberlain
Deinonychus
Joined: 20 Jun 2012
Age: 38
Gender: Male
Posts: 362
Location: Land of Seven Horizons
Also subtracting numbers can eliminate ''over 1001'' problem for b).
I generalized the problem and came up with an entirely different strategy. What if the hat value of the second wizard falls equidistant between the two missing values?
This makes certainty under this strategy impossible.
No problem in that?
Free hat: 1
First wizards hat: 3
Second wizards hat: 2
The first wizard can say 1 or 3, it does not matter. If the first wizard says 1: the second wizard can say 2 or 3. He will choose 2, since it is closer to 1. If the first wizard says 3: the second wizard can say 1 and 2. 2 again.
Odd and even in what assignment? Hat values or a cardinal assignment of wizards? This is very clever of you. I should have paid a closer look towards solving for 500. I knew initially that odd/even expressions were relevant but I didn't devote effort towards working out the structure of such a strategy employing odd/even values with respect to proximity. I became pinned by the allure of solving 999.
I'm trying to disprove your 500 wizard strategy here and I'm uncertain. A few things popped up that I'm mulling over still; if we're assuming the hat value assignment is random then wouldn't the probability distribution of correct guesses be odd or asymmetrical? Will the strategy follow the same, symmetric distribution of correctness under all configurations of assigned values resulting in 500 promotions? I feel like if there are successive, equidistant value configurations or clusters of odd/even hat values then it would shift this either above or below .5 (specifically 0, .5, or 1). Where did I go wrong? If this initial assumption is true then would correcting it in a manner wherein odd and even both employ a system of expression individually promoting .5 even and .5 odd? Am I wrong on this one? I'm trying to find the one scenario wherein your solution is excepted.
I will likely edit this post as I continue to try to find the one scenario wherein the absolute solution is excepted if at all possible. Forgive my lack of such ability.
I think there is a misunderstanding.
Odd wizards give clues, even ones answer correctly. By saying odd (or even) wizards, I mean their position in the line, not their hat number.
In other conditions, odd wizards would state the closer number to their even successors.
let me give an example to clarify the method.
The seventh wizard (odd) in the line will have two options, for example 274 and 16. In front, from eighth wizard he reads 982. Even wizard already knows that there are three missing numbers for him beforehand: 982, 274 and 16. At this point, he would state the smaller closer number, namely 274. If eighth wizards hat was 16, he would say 982. So it is in a circular manner (mod 1001). If he had said 982, he would be pointing 16. If he had said 16, he would be pointing 274 and 274 would be pointing 982.
I do not know if I managed to clearly state my thoughts.
Thank you for clarifying and forgive my inability to initially reach this conclusion. It is the absolute solution for 500 with all possible configurations. I did two quick distinct distributions of values and it is something I should have recognized before formulating my last post. I rarely find absolutes and I've found so few in everything I've studied thus far that my natural tendency is to look for exceptions in everything. I'm really excited for this solution and I have a greater perspective.
You did very well in your explanation and I understood. Thank you for the clarification and this is logically incontrovertible as a solution and even under other conditions this is absolute.
I only understand things through the philosopher's approach because I lack formal knowledge and training in basic mathematics, pattern discernment and overarching logical absolutes notwithstanding aspects of legal reasoning. I love mathematics a lot and it's always a priority to be proven wrong as much as possible. My abilities lie within the dimensions of written (and sometimes verbal) linguistic expression though I really dig systems science and probability (including Bayesian networks.)
Do you stick to a particular branch of mathematics? You seemed to process and discern this solution very quickly. Do you mind if I message you my solution for 998 for you to maybe comment on or review? I don't want to post it here in case it's the most optimal.
Thanks for your comment and for this riddle. I am a civil engineer (MS degree), I have no particular interest in mathematics. I really want to see your 998 solution, please send it via message.
_________________
Aspie quiz: 158/200 AS AQ: 39 EQ: 17 SQ: 76.
You scored 124 aloof, 121 rigid and 95 pragmatic.
English is not my native language. 1000th edit, here I come.
The strategy of having the tirst wizard 'tip-off' the rest of the wizards by NOT doing the expected thing of picking a guess from one of the two numbers that he doesnt see on the heads of the wizards sitting in front of him- but by shouting the DIFFERENCE between the two missing numbers- probably would not work.
The problem is that if he did not use that strategem but did it the normal expected way- he would leave each of the subsequent wizards with a choice of two to guess from- giving each a fifty-fifty chance.
This is because he knows N2 through N1000, and only N1001(the unworn hat), and N1 (his own hat)are hidden from him. So he has a fifty-fify choice.
If he makes a real guess, he will pick either N1, or N1001.
So when the next wizard gets his turn that wizard will be forbiddened to guess either N1, or N1001 (whichever his predecessor picks). But he will not be able to see N2 (because it is sitting on his own head). So even though either N1, or N1001 have been eliminated- N2 is added. So like his predecessor he has a 50-50 choice of two.
And so it goes down the line.
But if WIzard one makes a fake guess- and gives out the point spread between N1, and N1001, but does not give out either of those numbers-this creates two problems- it guarantees two losers (himself- and the wizard who really has the number of the point spread number on his hat).
But it also means that he fails to eliminate one of the two mystery numbers because he didnt say either N1, or N1001. He said a third number. So wizard two cant see N1, N2, nor N1001, and he cannot discount ANY of them because none were guessed by wizard one. So he has -not two- but THREE mystery hats to pick from. So his odds have ostensibly been REDUCED from one/two to one/three!
But he does know the point spread between N1 and N1001- so that may or not partially compensate. Probably- in the long run for all he wizards most ofthe time- it would cancel out. So the subtracting strategy probably would not yield a net increase in winners because - though it gives with one hand (by giving the clue of the point spread) it takes away with the other (by forcing each wizard to have three -rather than just two- choices). And it also guarantees two losers.
This could be wrong but I revised my strategy and I think it solves for 998.
I initially generalized to 10 wizards and 11 hats and my original strategy for this was a range of sum totals the first wizard sees with correlative values in two separate ranges of 1-11 and it covered the range of sum totals but it can't be generalized to 1000 wizards and 1001 hats and I realized it wouldn't work.
The first wizard needs to express the two missing values and somehow express it with 1-1001.
So the first wizard expresses the sum of the two missing values. I constructed a range of possible sums for the two missing values and you get something like this: 3-2001.
Take this range of sums and overlay two ranges of 1-1001 for expressions. If the sum of the two missing values correlates to the first expression between 1-1001 he guesses in a high tone and if it falls in the 2nd then he guesses in a low tone. One of the ranges is expressed in a low tone and covers the first half of the sum totals range and a high tone for the second part of the range. Using the process of elimination, the second wizard knows the two missing values and while this robs one subsequent wizard of a correct guess, that wizard simply states one of the 2 missing values expressed by the first wizard.
Is this flawed?
Last edited by aequitas1 on 12 May 2013, 9:09 pm, edited 1 time in total.
Similar Topics | |
---|---|
Fifth grade math teacher's Facebook |
21 Nov 2024, 11:28 pm |
Math question supposed to reveal if someone is autistic |
23 Nov 2024, 7:39 pm |