summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Carl Worth [Tue, 17 Apr 2007 20:08:23 +0000 (13:08 -0700)]
Fix typo in error message
Carl Worth [Tue, 17 Apr 2007 19:45:51 +0000 (12:45 -0700)]
Prevent any item count from being 0 after being asked.
Carl Worth [Tue, 17 Apr 2007 19:44:24 +0000 (12:44 -0700)]
Print before-and-after bin numbers
Carl Worth [Tue, 17 Apr 2007 18:22:57 +0000 (11:22 -0700)]
Eliminate the correct response bonus
As questions get missed repeatedly, they get asked more frequently, to
the point where it is likely to get asked consecutively. At this point,
there really isn't any learning going on, so it's better to give it a
single increment in the count, (leaving it negative), instead of
moving it all the way to +1.
Carl Worth [Tue, 17 Apr 2007 18:13:32 +0000 (11:13 -0700)]
Print newline on EOF
Carl Worth [Tue, 17 Apr 2007 18:12:27 +0000 (11:12 -0700)]
Remove a bin when it becomes empty.
Otherwise, mnemon gets stuck repeatedly asking about stale items
that aren't really in empty bins.
Carl Worth [Tue, 17 Apr 2007 17:37:40 +0000 (10:37 -0700)]
Add interactive querying of items
We select a bin with an expoentially-distributed pseudo-random number,
(so the items that have been misses the most get the most repetition),
then select an item within that bin with a uniformly distributed
random number. After querying the user, the item's count is adjusted
to the next higher/lower positive/negative number if the user's
response is correct/incorrect. And the item is moved into the new
bin based on its count.
Carl Worth [Tue, 17 Apr 2007 17:57:51 +0000 (10:57 -0700)]
Wait until category is complete before adding items to bins
Otherwise the category will keep reallocing the items array which
means the pointers to each item won't be stable so we must not
save them into bins.
Carl Worth [Tue, 17 Apr 2007 15:21:07 +0000 (08:21 -0700)]
.gitignore: ignore mnemon binary
Carl Worth [Tue, 17 Apr 2007 15:20:45 +0000 (08:20 -0700)]
Free memory leaks in mnemon_save (thanks valgrind!)
Carl Worth [Tue, 17 Apr 2007 15:19:16 +0000 (08:19 -0700)]
Maintain bins in sorted order
Carl Worth [Tue, 17 Apr 2007 06:56:58 +0000 (23:56 -0700)]
Add categories and bins to store data
Test the whole works by reading all data and then writing it out,
(with atomic replacement of original files).
Carl Worth [Tue, 17 Apr 2007 05:33:06 +0000 (22:33 -0700)]
Initial commit of mnemon
It doesn't really do anything yet---just reads in a file of
challenge/response pairs and prints them out.