为了在Android中制作一个词汇练习应用程序,我想实现SuperMemo(SM-2)algorithm在java。这是间隔重复软件的流行选择,据我所知,Anki甚至采用了它。给出的源代码示例here由于缺乏代码格式并且是用Delphi编写的,因此(对我而言)很难理解。SuperMemo的作者states:Splittheknowledgeintosmallestpossibleitems.WithallitemsassociateanE-Factorequalto2.5.Repeatitemsusingthefollowingintervals:I(1):=1I(2):=6forn>