Closed neoneye closed 2 years ago
It is a combination of multiple problems:
https://github.com/loda-lang/loda-cpp/blob/main/src/matcher.cpp#L65-L69
The heuristic is important for performance. Otherwise the miner would spend too much time for sequences wth trivial intial terms. Also using more than 10 initial terms is not really an option because there are LOTS of sequences with >=10 but <20 terms. There is no easy fix for this. Not sure how to solve it. We can add the program directly to the program repo, but it doesn't solve the matcher problem.
Submitting this program works now, but the server accepts it only if it runs with backoff: false
. Currently we don't do this because it is much slower. I added A053833 manually to the programs repo:
https://github.com/loda-lang/loda-programs/blob/main/oeis/053/A053833.asm
My program:
I think the submit failed because A053833 has existed in the past.
If I delete the
~/loda/stats
dir and regenerate it usingloda mine
. Thenprograms.csv
contains this row:53833,0,1,0
. It seems to continue to have knowledge that A053833 has existed in the past. I tried deleting the row inprograms.csv
, but submit still fails the same way.