> ## Documentation Index
> Fetch the complete documentation index at: https://shubham-0fd31468.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Spaced Repetition

> Learn how FlashMind's spaced repetition algorithm maximizes your learning efficiency

## What is Spaced Repetition?

Spaced repetition is a learning technique that involves reviewing information at increasing intervals. This method leverages the psychological spacing effect to combat the forgetting curve and improve long-term retention.

<img src="https://mintlify.s3.us-west-1.amazonaws.com/shubham-0fd31468/images/forgetting-curve.svg" alt="Forgetting Curve" />

## How FlashMind Implements Spaced Repetition

FlashMind uses a sophisticated algorithm based on the SM-2 algorithm, enhanced with modern improvements:

### The Algorithm

<Steps>
  <Step title="Initial Learning">
    When you first encounter a card, it starts with a short interval (1 day)
  </Step>

  <Step title="Quality Assessment">
    After each review, you rate your recall quality from 0-5:

    * 0: Complete blackout
    * 1: Incorrect response, correct one remembered
    * 2: Incorrect response, correct one seemed familiar
    * 3: Correct response recalled with serious difficulty
    * 4: Correct response after hesitation
    * 5: Perfect response
  </Step>

  <Step title="Interval Calculation">
    Based on your rating, the algorithm calculates the next review interval:

    ```
    if quality < 3:
        interval = 1 day (reset)
    else:
        interval = interval × ease_factor
    ```
  </Step>

  <Step title="Ease Factor Adjustment">
    The ease factor is adjusted based on performance:

    ```
    ease_factor = ease_factor + (0.1 - (5 - quality) × (0.08 + (5 - quality) × 0.02))
    ```
  </Step>
</Steps>

### Key Features

<CardGroup cols={2}>
  <Card title="Adaptive Intervals" icon="clock">
    Intervals automatically adjust based on your performance
  </Card>

  <Card title="Difficulty Tracking" icon="chart-line">
    Cards that are harder get reviewed more frequently
  </Card>

  <Card title="Forgetting Curve" icon="brain">
    Algorithm accounts for natural memory decay
  </Card>

  <Card title="Optimal Timing" icon="target">
    Reviews scheduled just before you're likely to forget
  </Card>
</CardGroup>

## Benefits of Spaced Repetition

### Scientific Backing

Research has consistently shown that spaced repetition:

* **Increases retention by 200-400%** compared to massed practice
* **Reduces study time** by focusing on difficult material
* **Improves long-term memory** through strategic timing
* **Prevents overlearning** of easy material

### Real-World Applications

<AccordionGroup>
  <Accordion title="Language Learning">
    Perfect for vocabulary acquisition and grammar patterns. Studies show 90%+ retention rates for vocabulary learned with spaced repetition.
  </Accordion>

  <Accordion title="Medical Education">
    Medical students using spaced repetition show 25% better performance on board exams.
  </Accordion>

  <Accordion title="Technical Skills">
    Programming concepts, formulas, and procedures benefit greatly from spaced review.
  </Accordion>

  <Accordion title="Academic Subjects">
    History dates, scientific facts, and theoretical concepts are ideal for spaced repetition.
  </Accordion>
</AccordionGroup>

## Optimizing Your Study Sessions

### Best Practices

<Tip>
  **Consistency is key**: Regular daily reviews, even for 10-15 minutes, are more effective than long cramming sessions.
</Tip>

1. **Be honest with ratings**: Accurate self-assessment ensures optimal scheduling
2. **Study daily**: The algorithm works best with consistent daily reviews
3. **Focus on understanding**: Don't just memorize; understand the concepts
4. **Use mnemonics**: Memory aids work well with spaced repetition

### Study Timing

The algorithm schedules reviews based on optimal timing:

```mermaid theme={null}
gantt
    title Spaced Repetition Schedule
    dateFormat YYYY-MM-DD
    axisFormat %m-%d
    
    New Card     :done, new, 2024-01-01, 2024-01-02
    First Review :done, first, 2024-01-02, 2024-01-03
    Second Review:done, second, 2024-01-05, 2024-01-06
    Third Review :done, third, 2024-01-11, 2024-01-12
    Fourth Review:fourth, 2024-01-26, 2024-01-27
```

### Performance Analytics

FlashMind tracks your progress with detailed analytics:

* **Retention rate**: Percentage of cards answered correctly
* **Study streak**: Consecutive days of study
* **Cards mastered**: Number of cards with long intervals
* **Time saved**: Efficiency gains from the algorithm

<Note>
  The spaced repetition algorithm adapts to your individual learning patterns, becoming more accurate over time as it learns from your performance data.
</Note>

## Customizing the Algorithm

Advanced users can adjust algorithm parameters:

### Interval Modifiers

* **Learning steps**: Customize initial learning intervals
* **Graduating interval**: Set the interval after successful learning
* **Maximum interval**: Cap the longest possible interval

### Ease Factor Settings

* **Starting ease**: Initial ease factor for new cards
* **Minimum ease**: Lowest possible ease factor
* **Ease bonus**: Reward for easy cards

<CodeGroup>
  ```typescript Default Settings theme={null}
  const defaultSettings = {
    learningSteps: [1, 10], // minutes
    graduatingInterval: 1, // days
    maximumInterval: 36500, // days (~100 years)
    startingEase: 2.5,
    minimumEase: 1.3,
    easeBonus: 0.15,
  };
  ```

  ```typescript Custom Settings theme={null}
  const customSettings = {
    learningSteps: [5, 25, 60], // More learning steps
    graduatingInterval: 3, // Longer initial interval
    maximumInterval: 365, // Cap at 1 year
    startingEase: 2.0, // More conservative
    minimumEase: 1.5,
    easeBonus: 0.1,
  };
  ```
</CodeGroup>

Ready to start using spaced repetition? [Create your first deck](/quickstart) and experience the power of optimized learning!
