Find a minimal range of bucket numbers covering a list of learning buckets.
a list of disjoint sets representing learning buckets, where buckets[i] is the set of cards in the ith bucket, for all i that are valid indexes of the list.
a pair of integers [low, high], 0 <= low <= high, such that every card in buckets has a bucket number in the range [low...high] inclusive, and high - low is as small as possible
Generate a sequence of flashcards for practice on a particular day.
day of the learning process. Must be >= 1.
a list of disjoint sets representing learning buckets, where buckets[i] is the set of cards in the ith bucket for all 0 <= i <= retiredBucket
number of retired bucket. Must be >= 0.
a sequence of flashcards such that a card appears in the sequence if
and only if its bucket number is some i < retiredBucket such that
day
is divisible by 2^i
Reorganize learning buckets from a map representation to a list-of-sets representation.
maps each flashcard to a bucket* number
a list of disjoint sets whose union is the set of cards in bucketNumbers, and where list[i] is the set of cards that bucketNumbers maps to i, for all i in [0, list.length).
Update step for the Modified-Leitner algorithm.
a flashcard the user just saw
the user's answer to the flashcard
represents learning buckets before the flashcard was seen.
Maps each flashcard to a bucket number in the range
[0...retiredBucket] inclusive. Mutated by this method to
put card
in the appropriate bucket as determined by the
Modified-Leitner algorithm.
number of retired bucket. Must be >= 0.
Generated using TypeDoc
Deduplicate a set of flashcards. This method finds groups of cards with similar fronts, and for each such group, recommends one canonical flashcard that includes the information from all cards in the group.
This allows the user to learn more efficiently using the set of canonical cards instead. This set may have fewer cards than the original set, but it contains the same information relevant to learning.
Identical fronts are always similar, but fronts can be similar for other reasons as well.