Skip to content

Commit 409bdee

Browse files
committed
fixed: reveted readme
1 parent 001aaae commit 409bdee

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@ been validated in terms of functionality and testing.
1717

1818
## 📚 Available Algorithms
1919

20-
| Algorithm | Description |
21-
|-----------|-------------|
22-
| [Random Weighted Selection](./rws/README.md) | Selects items randomly based on assigned weights. Useful in load balancing, gaming, and AI. |
23-
20+
| Algorithm | Description |
21+
|--------------------------------------------------|-------------|
22+
| [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. |
2427

2528
## 🚀 Installation >= go 1.19
2629

0 commit comments

Comments
 (0)