New answers tagged algorithms
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 ...
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 ...
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 ...
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 ...
Top 50 recent answers are included
Related Tags
algorithms × 2208data-structures × 176
java × 108
sorting × 108
design × 105
graph × 90
algorithm-analysis × 83
c# × 78
math × 78
performance × 72
c++ × 71
complexity × 70
big-o × 69
python × 64
optimization × 64
design-patterns × 56
trees × 52
database × 47
dynamic-programming × 47
search × 46
strings × 45
random × 41
javascript × 40
scheduling × 39
geometry × 38