An Algorithm for a Better Bookshelf

cacm.acm.org

Drop in at a library, and you’ll likely notice that most shelves aren’t full—librarians leave some empty space on each shelf. That way, when they get new books, they can slot them into place without having to move too many … Read more

Rete Algorithm

en.wikipedia.org

The Rete algorithm (/ˈriːtiː/ REE-tee, /ˈreɪtiː/ RAY-tee, rarely /ˈriːt/ REET, /rɛˈteɪ/ reh-TAY) is a pattern matching algorithm for implementing rule-based systems. The algorithm was developed to efficiently apply many rules or patterns to many objects, or facts, in a knowledge … Read more

Anki SRS Algorithm : Spaced repetition explained with code

juliensobczak.com

class Scheduler: def _rescheduleRev(self, card, ease): self._updateRevIvl(card, ease) (1) card.factor = max(1300, card.factor+[-150, 0, 150][ease-2]) (2) card.due = self.today + card.ivl def _updateRevIvl(self, card, ease): card.ivl = self._nextRevIvl(card, ease) def _nextRevIvl(self, card, ease): (3) “Next review interval for CARD, given … Read more