Problem 1959. German tank problem
After pulling my hair out, I have a couple of suggestions. The problem is to find the 'best estimate,' which I and many others attempting this problem took to be the mean expected value, the solution sought after historically. It's actually asking for the most likely single value. I suggest editing the problem description to make that clear.
I now see that the most likely value will always be m. In the process, I discovered that some of the test cases violate the assumptions of the problem, cases where the maximum value observed is less than the number of samples. I would correct this for the sake of those who don't immediately realize that the most likely single value will always be the maximum value observed.
The lack of clarity and problems with the test cases caused me to waste a good deal of time.
Thanks for the suggestions. I really did not want the problem to expel-out the solution that it is "asking for", but let players figure that out from the description given in "To pass this problem you must be exactly correct in at least 10% of the testsuite cases". I understand this can feel misleading, but the point was to make this problem more like a "escape room" puzzle than an straight up homework problem. And regarding the "incorrect" test cases, the tests are probabilistic, so of course in some of them your "optimal" solution will not get the number of samples right, but that is perfectly fine, 10% success rate is all that is expected/required to pass this problem
Well done, sir (and on your first try! You are clearly paying attention to the details :)
Problem Recent Solvers24
Remove the small words from a list of words.
More from this Author38
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!