Read Program document first.
Java API programming. Design a fast algorithm to repeatedly generate numbers from the discrete distribution: Given an array a of non-negative real numbers that sum to 1, the goal is to return index i with probability a[i]. Form an array sum[ ] of cumulated sums such that sum[i] is the sum of the first i elements of a[ ]. Now, generate a random real number r between 0 and 1, and use binary search to return the index i for which sum[i] less than or equal to r < sum[i+1]. Compare performance of this approach with the approach taken in [login to view URL]
6 pekerja bebas membida secara purata $29 untuk pekerjaan ini
Working in Java spring framework creating API’s from the past 3 years Relevant Skills and Experience Have Around 20 years of experience working in various technologies primarily in java.