News for hackers. Stuff that matters.
Re:A taxing algorithm by phreeza on Friday April 17, 2015 @05:04AM (#9393050)
This is really more of a graphical representation of a formula. It contains conditionals of sorts (in the form of the min operator), but no recursion, iteration or other sort of control structure.
Re:A taxing algorithm by andrepd on Friday April 17, 2015 @05:41AM (#9393176)
"In mathematics and computer science, an algorithm [...] is a self-contained step-by-step set of operations to be performed." -Wikipedia

It's a detailed recipe to perform a task, so it's an algorithm.

Re:A taxing algorithm by murbard2 on Friday April 17, 2015 @12:17PM (#9395301)
Yes, it's an expression. The algorithm is evaluating that expression. However, algorithms also evaluate algorithms, and a better example would have been an actual algorithm that needs to be interpreted.
Re:A taxing algorithm by Houshalter on Friday April 17, 2015 @06:44AM (#9393388)
>What this meant was the wording of the instructions would be procedural rather than declarative. Instead of “Your tax is 15 percent of the amount on line 42,” we had “Multiply the amount on line 42 by 0.15 and write the result on line 43.”