A Polynomial Algorithm for Density Estimation | Synapse