lauren203
lauren203
20.07.2019 • 
Mathematics

Given integers n and k, along with p1, pn; where pi ε [0, 1], you want to determine the probability of obtaining exactly k heads when n biased coins are tossed independently at random, where pi is the probability that the ith coin comes up heads. give an o(n2) algorithm for this task. assume you can multiply and add two numbers in [0, 1] in o(1) time.

Solved
Show answers

Ask an AI advisor a question