Package flashcards
Class Practice
- java.lang.Object
-
- flashcards.Practice
-
public class Practice extends Object
Select cards to practice on a particular day.
-
-
Method Detail
-
practice
public static List<Flashcard> practice(int day, List<Set<Flashcard>> buckets, int retiredBucket)
Generate a sequence of flashcards for practice on a particular day.- Parameters:
day
- day of the learning process. Must be >= 1.buckets
- a list of disjoint sets representing learning buckets, where buckets.get(i) is the set of cards in the ith bucket for 0 <= i <= retiredBucketretiredBucket
- number of retired bucket. Must be >= 0.- Returns:
- 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
-
-