While working on my network exploration tool project, I've ran across the problem of reliably determining number of possible exit addresses of a tunnel with single entrance. I've came up with following formulation:
Given black box with infinite number of marbles of
Ndifferent colors. What is minimal number of marbles should I get out of box to determineNwith some level of confidence, if each color has the same probability to roll out?
I have no idea to where start from. Maybe this has some relation to Bayes, credible intervals, or confidence intervals? Really, I have no idea.
Suppose after some draws you've seen $k$ different colors. Furthermore, suppose you haven't seen any new colors in the previous $t$ draws.
If there are more than $k$ colors, the probability that you see a new color within $t$ draws is at least $1-\left(\frac{k}{k+1}\right)^t$. By letting $t$ (the number of draws since the last ($k^{\text{th}}$) new color was seen) get large, we can make the above probability get very close to 1. So if you haven't seen a new color, it is likely that there are no new colors to see.
The exact strategy to adopt may depend on how expensive it is to make draws.