ArticleslgStudy

computer science

Anki

Anki is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Anki rather than just read about it. In short: Anki is a free and open-source flashcard program. It uses techniques from cognitive science such as active recall testing and spaced repetition to aid the user in memorization.

Anki — main illustration
Anki — illustration

Key takeaways

  • Anki belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Anki to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Anki from memory before moving on to harder problems.

Reference excerpt

Anki is a free and open-source flashcard program. It uses techniques from cognitive science such as active recall testing and spaced repetition to aid the user in memorization. The name comes from the Japanese word for "memorization" (暗記, anki; Japanese: [aŋʲ.kʲi]). The SM-2 algorithm, created for SuperMemo in the late 1980s, has historically formed the basis of the spaced repetition methods employed in the program. Anki's implementation of the algorithm has been modified to allow priorities on cards and to show flashcards in order of their urgency. Anki 23.10 and later also have a native implementation of the Free Spaced Repetition Scheduler (FSRS) algorithm, which allows for more efficient spacing of card repetitions. Anki is content-agnostic, and the cards are presented using HTML and may include text, images, sounds, videos, and LaTeX equations. The decks of cards, along with the user's statistics, are stored in the open SQLite format.

Features

Notes In Anki, cards are generated from information stored in notes. A note functions as a database record and contains one or more fields, such as an expression, its meaning, audio, or additional context. Notes do not correspond directly to flashcards; instead, the note type determines how many cards are created from the fields and how the information is presented during review. For example, with respect to learning a language, a note may have the following fields and example entries:

Field 1: Expression in target language – "gâteau" Field 2: Pronunciation – [sound file with the word "gâteau" pronounced] Field 3: Expression in familiar language – "cake" From this single note, Anki can generate multiple cards using card templates. One template might test the meaning of the expression, while another tests recognition of the pronunciation. Because all related cards originate from the same note, any correction to a field (such as fixing a spelling error) automatically updates every associated card. Anki also spaces related cards apart to avoid showing closely linked prompts in close succession. Anki includes a dedicated Cloze note type, which allows the user to create cards through cloze deletion (for example, {{c1::...}}). Each cloze deletion automatically generates a separate card. This system replaces older mechanisms for cloze cards used in early versions of Anki.

Syncing Anki supports synchronization with a free and proprietary online service called AnkiWeb. This allows users to keep decks synchronized across multiple computers and to study online or on a cell phone. There also is a third-party open-source (AGPLv3) AnkiWeb alternative, called anki-sync-server, which users can run on their own local computers or servers. Anki 2.1.57+ includes a built-in sync server. Advanced users who cannot or do not wish to use AnkiWeb can use this sync server instead of AnkiWeb.

Japanese and Chinese reading generation Anki can automatically fill in the reading of Japanese and Chinese text. Since version 0.9.9.8.2, these features are in separate plug-ins.

Add-ons More than 1600 add-ons for Anki are available, often written by third-party developers. They provide support for speech synthesis, enhanced user statistics, image occlusion, incremental reading, more efficient editing and creation of cards through batch editing, modifying the GUI, simplifying import of flashcards from other digital sources, adding an element of gamification, etc.

Shared decks While Anki's user manual encourages the creation of one's own decks for most material, there is still a large and active database of shared decks that users can download and use.

Comparisons

Current algorithms Anki's current scheduling algorithm is derived from SM-2 (an older version of the SuperMemo algorithm), though the algorithm has been significantly changed from SM-2 and is also far more configurable. One of the most apparent differences is that while SuperMemo provides users a 6-point grading system (0 through 5, inclusive), Anki only provides at most 4 grades (again, hard, good, and easy). Anki also has significantly changed how review intervals grow and shrink (making many of these aspects of the scheduler configurable through deck options), though the core algorithm is still based on SM-2's concept of ease factors as the primary mechanism of evolving card review intervals. In 2023 (version 23.10) the Free Spaced Repetition Scheduler (FSRS), a new scheduling algorithm, was integrated into Anki as an optional feature. FSRS is based on a variant of the DSR (Difficulty, Stability, Retrievability) model, which is used to predict memory states. The default FSRS parameters are based on about 727 million reviews from 10 thousand users and are more accurate in comparison to the standard SM2 algorithm, according to benchmarks, leading to fewer necessary reviews for the same retention rate.

Other algorithms Anki was originally based on the SM-5 algorithm, but the implementation was found to have seemingly incorrect behaviour (harder cards would have their intervals grow more quickly than easier cards in certain circumstances) leading the authors to switch Anki's algorithm to SM-2 (which was further evolved into the modern Anki algorithm). At the time, this led Elmes to claim that SM-5 and later algorithms were flawed which was strongly rebutted by Piotr Woźniak, the author of SuperMemo. Since then, Elmes has clarified that it is possible that the flaw was due to a bug in their implementation of SM-5 (the SuperMemo website does not describe SM-5 in complete detail), but added that due to licensing requirements, Anki will not use any newer versions of the SuperMemo algorithm. The prospect of community-funded licensing of newer SuperMemo algorithms is often discussed among users. However, there exists a greater focus on the development of the software itself and its features. The latest version of the SuperMemo algorithm is SM-20, released in 2026. Some Anki users who have experimented with the Anki algorithm and its settings have published configuration recommendations, made add-ons to modify Anki's algorithm, or developed their own separate software.

Mobile versions The following smartphone/tablet and Web clients are available as companions to the desktop version:

… excerpt ends here. Continue reading the full article.

Illustrations

Anki illustration
Anki illustration

Worked examples

Example 1 — a first encounter with Anki

Start with the simplest possible case. Write down what Anki claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Anki before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Anki ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Anki

In research
Anki appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Anki in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Anki is common in secondary-school and first-year university syllabi. It links to neighbouring topics Educational software that uses Qt, Free and open-source Android software, Free educational software, so understanding it makes those chapters shorter.
In everyday life
Look for Anki outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Anki” →

How to study Anki in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Anki means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Anki out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Anki in simple terms?

Anki is a free and open-source flashcard program. It uses techniques from cognitive science such as active recall testing and spaced repetition to aid the user in memorization.

Why does Anki matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Anki?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Anki.

Tags

  • Educational software that uses Qt
  • Free and open-source Android software
  • Free educational software
  • Free software programmed in Python
  • Free software programmed in Rust
  • Software using the GNU Affero General Public License
  • Spaced repetition software

Keep exploring