mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-24 17:05:03 +00:00
- Precomputed sorted word lists for each word length (stored in self.words_lists) to avoid redundant sorting on every _generate_word_pair call. - Updated _generate_word_pair to utilize the cached sorted list, significantly improving computational efficiency. - Implemented weighted random sampling for 5-letter words, giving words ending with 'S' a lower weight (0.5) to reduce bias without completely filtering them out. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| base_conversion.py | ||
| caesar_cipher.py | ||
| letter_counting.py | ||
| letter_jumble.py | ||
| number_filtering.py | ||
| number_sorting.py | ||
| sentence_reordering.py | ||
| spell_backward.py | ||
| word_ladder.py | ||
| word_sequence_reversal.py | ||
| word_sorting.py | ||