Skip to content

Commit

Permalink
Update nimcso.nim
Browse files Browse the repository at this point in the history
Fixed minor typos in the docstrings
  • Loading branch information
dovahkiin0022 authored Mar 1, 2024
1 parent 14b58df commit 0907e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nimcso.nim
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ proc bruteForce*(verbose: bool = true): seq[ElSolution] =

proc bruteForceInt*(verbose: bool = true): seq[ElSolution] =
## **(Key Routine)** A **really high performance** (400 times faster than native Python and 50 times faster than NumPy) brute force algorithm for finding the optimal solution for the problem of which
## N elements to remove from dataset to loose the least daya. Unlike the standard `bruteForce`_ algorithm does not use the `ElSolution`_ type and **cannot be easily extended** to other use cases and
## N elements to remove from dataset to lose the least data. Unlike the standard `bruteForce`_ algorithm does not use the `ElSolution`_ type and **cannot be easily extended** to other use cases and
## **cannot be used for more than 64 elements** without sacrificing the performance, at which point `bruteForce`_ should be much better choice.
assert elementN <= 64, "Brute Force with uint64 representation cannot run on more than 64 elements. You will need to take `bruteForce` instead and implement it for more than 64 elements."
if verbose: styledEcho "\nRunning brute force algorithm for ", styleBright, fgMagenta, $elementN, resetStyle, " elements and ", styleBright, fgMagenta, $dataN, " data points."
Expand Down

0 comments on commit 0907e36

Please sign in to comment.