You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[Random Weighted Selection](./rws/README.md)| Selects items randomly based on assigned weights. Useful in load balancing, gaming, and AI. |
23
+
|[Reservoir Sampling Algorithm R](./rs/README.md)| Basic reservoir sampling, replaces elements with probability `k/i`. Efficient for uniform random sampling. |
24
+
|[Reservoir Sampling Algorithm L](./rs/README.md)| Optimized reservoir sampling for large `N`, reduces unnecessary replacements using skipping. |
25
+
|[Weighted Reservoir Sampling](./rs/README.md)| Selects items with probability proportional to their weights using a heap-based approach. Used in recommendation systems and A/B testing. |
26
+
|[Random Sort Reservoir Sampling](./rs/README.md)| Uses a min-heap and random priorities to maintain the top `k` elements in a streaming dataset. |
0 commit comments