Skip to main content

New answers tagged

1 vote

Unit (regression) testing scientific algorithms given floating point behavior

You shouldn’t expect bit-for-bit identical results. Even ab + cd is allowed by C, C++ and others to yield at least two different results. You use different methods in different cases. For example, if ...
gnasher729's user avatar
  • 47.5k
4 votes

algorithm needed for historical backups

Something simple is probably your best bet, for example: Daily backups are kept for 1 month, Weekly backups are kept for a year and Yearly backups are kept forever. For this use case, it is not ...
DavidT's user avatar
  • 4,273
0 votes

Algorithm to utilize subsets of cache

My advise depends heavily on you being able/willing to change your main algorithm. As I understand it, your current algorithm takes three sets of values (countries, years and arguments) to perform ...
Bart van Ingen Schenau's user avatar
1 vote

Algorithm to utilize subsets of cache

So your "cache" creates one individual file for each unique request? And practically everything you ever pass to "arg" will be a unique request? So after a million requests your ...
gnasher729's user avatar
  • 47.5k

Top 50 recent answers are included