I am reading Stephen S. Skien Algorithm Design Guide. In the first chapter I read about the problem with the lottery ticket. He claims that his first decision for the optimal number of tickets for guaranteed winnings was wrong. I do not understand how his next and final decision is right?
In Figure 1.11, he says: The guarantee of a winning pair from {1,2,3,4,5}, using only tickets {1,2,3} and {1, 4, 5}, is the scheme. I'm confused, why are there no other numbers there? For example, what if the winning numbers were (3.4), (2.4), (2.5), (3.5), etc. D ...? You obviously cannot combine tickets together, so how can we explain this? In the lottery, if they said that the winning numbers were 3 and 5, you should have one ticket in which 3 and 5 have some sort of order. Can someone explain please?
design algorithm
Rob l
source share