Puzzle Time - Election Edition
-
Let me illustrate that my solution works with a simpler case:
Let's say that K wins with 3 votes against 2 votes for H.
According to my solution, the probability would be (3-2)/(3+2) = 20%.
Let's consider all 10 possible sequences:
HKKKH
HKKHK
HKHKK
HHKKK
KHKKH
KHKHK
KHHKK
KKHKH
KKHHK
KKKHHOnly two of these are successful, namely:
KKHKH
KKKHH2 out of 10; exactly the 20% my formula predicted.
You can also see the 1:1 correspondence of the remaining 8 ones: There's an equal number of paths starting with H and unsuccessful paths starting with K, namely 4 each. Flip at the first tie and you get the corresponding other one. Here are the four pairs of the correspondence.
HKKKH - KHKKH
HKKHK - KHKKH
HKHKK - KHHKK
HHKKK - KKHHK -
Ah, I thought you meant those that ended in a tie. Not those that tied at all. Let me look at it again after I’m done with lunch
-
By the way, there's an interesting pattern in the puzzles you post. They seem to be extremely complicated and involve all kinds of advanced maths, but then it turns out there's some kind of trick that only applies in the very specific situation that suddenly makes all the complexity go away and there's a very simple solution. I assume one could also come up with all the formulas to compute the number of distinct successful paths (which would involve Catalan numbers and stuff), divide it by the total number of paths, and, after a lot of algebraic manipulation, end up with the same formula. So the actual puzzle is to find a shortcut to the formula, which, in this case, turns out to be the identification of the path correspondence.
-
Your solution is neat.
Another is similar to a cycle lemma proof.
Imagine randomly arranging the votes in a circle and trying to decide where to start in order to satisfy the goal of K always being ahead. You can remove any adjacent pairs KH as they will not lead to an increase in H votes. You are left with 10 Ks at the end of this process, corresponding to starting points that would have resulted in K always being ahead.
10/200=5%
-
@jon-nyc said in Puzzle Time - Election Edition:
Imagine randomly arranging the votes in a circle and trying to decide where to start in order to satisfy the goal of K always being ahead. You can remove any adjacent pairs KH as they will not lead to an increase in H votes. You are left with 10 Ks at the end of this process, corresponding to starting points that would have resulted in K always being ahead.
You lost me at "You are left with 10 Ks...". Can you elaborate?
-
You would finish the process and there would be 10 ‘K’ votes remaining. Had you started counting from any of those 10 spots on the circle than you would have always had a positive number because every H vote you came across would have been preceded (not necessarily immediately) by a canceling K vote.
-
Try it with a circle of 10 (6K,4H) and you’ll see what I mean.
-
I want to know if the reason Horace hasn’t chimed in is because he’s indignant at his loss to Klaus.