In computer science, a stack is an abstract data type that serves as a collection of elements, with two principal operations: pop and push.
This sentence would become a number of flashcards that look like ([...] is a cloze deletion where you have to insert the missing word, each cloze is a flashcard):
In computer science, a [...] is an abstract data type that serves as a collection of elements, with two principal operations: pop and push.
In computer science, a stack is an abstract data type that serves as a [...] of elements, with two principal operations: pop and push.
In computer science, a stack is an abstract data type that serves as a collection of [...], with two principal operations: pop and push.
In computer science, a stack is an abstract data type that serves as a collection of elements, with [...] principal operations: pop and push.
In computer science, a stack is an abstract data type that serves as a collection of elements, with two principal operations: [...] and push.
In computer science, a stack is an abstract data type that serves as a collection of elements, with two principal operations: pop and [...].
You'd do that for most of the article. Find a few examples of a stack, do the same thing from cloze deletions, and then in a separate card, make a few questions to have you write from scratch, parts of a stack.
The separate deck would be so your regular reviews don't take forever, when you get a question asking you to write out a stack. The other deck would be done say 3-4 days a week, and have many fewer cards, because they're going to take awhile to answer. You could even use the index card method for this part as it's closer to actual practice than recall.
In another deck, I'd also have short answer questions. For example, what's the difference between a stack and a queue, or stack and array, etc. This would also be more for practice sessions, rather than daily repetitions, as the questions could take awhile to answer.
Note that you'll have a ton of flashcards this way for each algo, but they'll be extremely easy to answer (a good thing). Five flashcards you can answer in 2-10 seconds each, is much better than one flashcard that takes you a minute to answer.
Assuming five seconds to answer a flashcard, you could easily do 120 repetitions through the day. The nice thing about Anki is the mobile clients, so you can do a few cards while you have some downtime. When I was in school, I was usually doing flashcards while I was waiting for class to start or going to the bathroom etc.