\begin{algorithm}[H]
\caption{{\sc Bernoulli Factory for $\P_{\alpha,n}$ for non-integer $\alpha$} (version 1)}
\label{alg:sampford_generic}
\begin{algorithmic} 
\State Pick a random vertex $v$
\State For each index such that $v_i = 1$, sample the $x_i$-coin and restart if it is $0$.
\State For each index such that $v_i = 0$, sample the $x_i$-coin and restart if it is $1$.
\State For the remaining index $i$ sample two coins $x_i$-coins and restart unless their outcome is $0$ and $1$.
\State Output vertex $v$
\end{algorithmic}
\end{algorithm}

\begin{algorithm}
[H]
\caption{{\sc Bernoulli Factory for $\P_{\alpha,n}$ for non-integer $\alpha$} (version 1)}
\begin{algorithmic}
\State Pick a random vertex $v$
\State For each index such that $v_i = 1$, sample the $x_i$-coin and restart if it is $0$.
\State For each index such that $v_i = 0$, sample the $x_i$-coin and restart if it is $1$.
\State For the remaining index $i$ sample two coins $x_i$-coins and restart unless their outcome is $0$ and $1$.
\State Output vertex $v$
\end{algorithmic}
\end{algorithm}
{
    "title": "combinatorial bernoulli factories",
    "id": "2011.03865",
    "abstract": "a bernoulli factory is an algorithmic procedure for exact sampling of certain random variables having only bernoulli access to their parameters. bernoulli access to a parameter $p \\in [0,1]$ means the algorithm does not know $p$, but has sample access to independent draws of a bernoulli random variable with mean equal to $p$. in this paper, we study the problem of bernoulli factories for polytopes: given bernoulli access to a vector $x\\in p$ for a given polytope $p\\subset [0,1]^n$, output a randomized vertex such that the expected value of the $i$-th coordinate is \\emph{exactly} equal to $x_i$. for example, for the special case of the perfect matching polytope, one is given bernoulli access to the entries of a doubly stochastic matrix $[x_{ij}]$ and asked to sample a matching such that the probability of each edge $(i,j)$ be present in the matching is exactly equal to $x_{ij}$. we show that a polytope $p$ admits a bernoulli factory if and and only if $p$ is the intersection of $[0,1]^n$ with an affine subspace. our construction is based on an algebraic formulation of the problem, involving identifying a family of bernstein polynomials (one per vertex) that satisfy a certain algebraic identity on $p$. the main technical tool behind our construction is a connection between these polynomials and the geometry of zonotope tilings. we apply these results to construct an explicit factory for the perfect matching polytope. the resulting factory is deeply connected to the combinatorial enumeration of arborescences and may be of independent interest. for the $k$-uniform matroid polytope, we recover a sampling procedure known in statistics as sampford sampling.",
    "categories": "cs.ds cs.dm cs.gt math.co math.pr",
    "doi": "",
    "created": "2020-11-07",
    "updated": "2024-02-19",
    "authors": [
        "rad niazadeh",
        "renato paes leme",
        "jon schneider"
    ],
    "affiliation": [],
    "url": "https://arxiv.org/abs/2011.03865"
}
{
    "ToxicityFilter": {
        "text_to_toxicity_attributes": {
            "main-Bernoulli.bbl": {
                "toxicity_score": 0.011937759,
                "severe_toxicity_score": 0.0011444092,
                "identity_attack_score": 0.0039957687,
                "insult_score": 0.007493876,
                "profanity_score": 0.014805742,
                "threat_score": 0.0076119336,
                "sexually_explicit_score": 0.011795434,
                "flirtation_score": 0.23112918
            },
            "imsart.cls": {
                "toxicity_score": 0.014576632,
                "severe_toxicity_score": 0.0012397766,
                "identity_attack_score": 0.0034408006,
                "insult_score": 0.008234881,
                "profanity_score": 0.016479544,
                "threat_score": 0.007365964,
                "sexually_explicit_score": 0.0129749775,
                "flirtation_score": 0.33692676
            },
            "tex_journal/ack_journal.tex": {
                "toxicity_score": 0.017466826,
                "severe_toxicity_score": 0.0011396408,
                "identity_attack_score": 0.0052166977,
                "insult_score": 0.009032886,
                "profanity_score": 0.014566627,
                "threat_score": 0.008375733,
                "sexually_explicit_score": 0.011087708,
                "flirtation_score": 0.21878932
            },
            "preamble.sty": {
                "toxicity_score": 0.010869644,
                "severe_toxicity_score": 0.0011396408,
                "identity_attack_score": 0.0032558115,
                "insult_score": 0.007322875,
                "profanity_score": 0.014566627,
                "threat_score": 0.0074954215,
                "sexually_explicit_score": 0.011736456,
                "flirtation_score": 0.22498475
            },
            "tex_journal/appendix_necessary_conditions_journal.tex": {
                "toxicity_score": 0.011246625,
                "severe_toxicity_score": 0.00078201294,
                "identity_attack_score": 0.0034038029,
                "insult_score": 0.0072278744,
                "profanity_score": 0.013302735,
                "threat_score": 0.007081157,
                "sexually_explicit_score": 0.008846575,
                "flirtation_score": 0.2562556
            },
            "tex_journal/intro_journal.tex": {
                "toxicity_score": 0.006942749,
                "severe_toxicity_score": 0.0007390976,
                "identity_attack_score": 0.0022753682,
                "insult_score": 0.0064488696,
                "profanity_score": 0.012687869,
                "threat_score": 0.0066798385,
                "sexually_explicit_score": 0.009554301,
                "flirtation_score": 0.2300378
            },
            "tex_journal/prelim_journal.tex": {
                "toxicity_score": 0.008796243,
                "severe_toxicity_score": 0.00084400177,
                "identity_attack_score": 0.0025158543,
                "insult_score": 0.0067623714,
                "profanity_score": 0.012995303,
                "threat_score": 0.007029374,
                "sexually_explicit_score": 0.009849187,
                "flirtation_score": 0.34695542
            },
            "tex_journal/missingproofs.tex": {
                "toxicity_score": 0.011874928,
                "severe_toxicity_score": 0.0007677078,
                "identity_attack_score": 0.0025713511,
                "insult_score": 0.007607877,
                "profanity_score": 0.012961143,
                "threat_score": 0.0066798385,
                "sexually_explicit_score": 0.007726009,
                "flirtation_score": 0.32522786
            },
            "tex_journal/appendix_algebraic_proof_journal.tex": {
                "toxicity_score": 0.009047564,
                "severe_toxicity_score": 0.0021743774,
                "identity_attack_score": 0.0014891637,
                "insult_score": 0.0070378734,
                "profanity_score": 0.019622196,
                "threat_score": 0.0057186154,
                "sexually_explicit_score": 0.020995872,
                "flirtation_score": 0.24196765
            },
            "tex_journal/non_generic_impossibility_journal.tex": {
                "toxicity_score": 0.026145924,
                "severe_toxicity_score": 0.0017642975,
                "identity_attack_score": 0.008250522,
                "insult_score": 0.009678889,
                "profanity_score": 0.019212283,
                "threat_score": 0.0084793,
                "sexually_explicit_score": 0.022765188,
                "flirtation_score": 0.4438807
            },
            "tex_journal/appendix_impossibility_journal.tex": {
                "toxicity_score": 0.032863233,
                "severe_toxicity_score": 0.0017929077,
                "identity_attack_score": 0.010729378,
                "insult_score": 0.011920903,
                "profanity_score": 0.017504321,
                "threat_score": 0.007819066,
                "sexually_explicit_score": 0.016277699,
                "flirtation_score": 0.38663936
            },
            "tex_journal/non_generic_factory_journal.tex": {
                "toxicity_score": 0.01438814,
                "severe_toxicity_score": 0.00088214874,
                "identity_attack_score": 0.0050317086,
                "insult_score": 0.008652883,
                "profanity_score": 0.013678487,
                "threat_score": 0.006925808,
                "sexually_explicit_score": 0.011736456,
                "flirtation_score": 0.28204504
            },
            "tex_journal/necessary_condition_journal.tex": {
                "toxicity_score": 0.009990019,
                "severe_toxicity_score": 0.00074863434,
                "identity_attack_score": 0.0030708222,
                "insult_score": 0.0069713728,
                "profanity_score": 0.012687869,
                "threat_score": 0.0071717775,
                "sexually_explicit_score": 0.009967142,
                "flirtation_score": 0.36041215
            },
            "tex_journal/generic_factory_journal.tex": {
                "toxicity_score": 0.016964182,
                "severe_toxicity_score": 0.0012302399,
                "identity_attack_score": 0.0059936526,
                "insult_score": 0.009146886,
                "profanity_score": 0.016616182,
                "threat_score": 0.008129764,
                "sexually_explicit_score": 0.017221333,
                "flirtation_score": 0.35249746
            },
            "tex_journal/open_journal.tex": {
                "toxicity_score": 0.007288316,
                "severe_toxicity_score": 0.0007534027,
                "identity_attack_score": 0.0027193425,
                "insult_score": 0.006372869,
                "profanity_score": 0.012243799,
                "threat_score": 0.0068869707,
                "sexually_explicit_score": 0.00855169,
                "flirtation_score": 0.22490336
            },
            "tex_journal/matching_factory_journal.tex": {
                "toxicity_score": 0.008670582,
                "severe_toxicity_score": 0.0007200241,
                "identity_attack_score": 0.0027008436,
                "insult_score": 0.0067908717,
                "profanity_score": 0.012380436,
                "threat_score": 0.0069387536,
                "sexually_explicit_score": 0.0094363475,
                "flirtation_score": 0.23135975
            },
            "imsart.sty": {
                "toxicity_score": 0.04735767,
                "severe_toxicity_score": 0.0023460388,
                "identity_attack_score": 0.0047727237,
                "insult_score": 0.020063626,
                "profanity_score": 0.026863953,
                "threat_score": 0.0072753434,
                "sexually_explicit_score": 0.020759964,
                "flirtation_score": 0.34987062
            },
            "imsart-nameyear.bst": {
                "toxicity_score": 0.0201057,
                "severe_toxicity_score": 0.0013446808,
                "identity_attack_score": 0.0036997858,
                "insult_score": 0.010172892,
                "profanity_score": 0.018119188,
                "threat_score": 0.007340072,
                "sexually_explicit_score": 0.011618502,
                "flirtation_score": 0.32274416
            },
            "tex_journal/appendix_matching_journal.tex": {
                "toxicity_score": 0.011749268,
                "severe_toxicity_score": 0.0007724762,
                "identity_attack_score": 0.0024603575,
                "insult_score": 0.0076838774,
                "profanity_score": 0.012722028,
                "threat_score": 0.0067316215,
                "sexually_explicit_score": 0.0073426575,
                "flirtation_score": 0.25054014
            },
            "imsart-number.bst": {
                "toxicity_score": 0.019477395,
                "severe_toxicity_score": 0.0014019012,
                "identity_attack_score": 0.0037552824,
                "insult_score": 0.00979289,
                "profanity_score": 0.018119188,
                "threat_score": 0.00756015,
                "sexually_explicit_score": 0.01374168,
                "flirtation_score": 0.37246096
            },
            "main-Bernoulli.tex": {
                "toxicity_score": 0.022610499,
                "severe_toxicity_score": 0.0019264221,
                "identity_attack_score": 0.0050317086,
                "insult_score": 0.0103248935,
                "profanity_score": 0.023311393,
                "threat_score": 0.007637825,
                "sexually_explicit_score": 0.023590868,
                "flirtation_score": 0.38638145
            }
        },
        "reason": null
    }
}
{
    "num_done": {
        "table": 0,
        "figure": 0,
        "algorithm": 3,
        "plot": 3
    }
}
{
    "NonTrivialRenderingFilter": {
        "white_pixels_ratio": 95.44030004110152,
        "hash": "fff7e6e666666666",
        "most_frequent_color_ratio": 95.44030004110152
    }
}