Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think the README mis-describes the performance comparison with the naive "huge array of samples" method.

In particular, both methods are O(1) after a precomputation step. What the Alias Method appears to get you is a significant reduction in space required.



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: