3 ms·
Programs may or may not be implemenations of algorithms. Not every program is an algorithm. I suspect in this day and age of frameworks, libraries and all, a bi
by hcho 16y ago
Programs may or may not be implemenations of algorithms. Not every program is an algorithm. I suspect in this day and age of frameworks, libraries and all, a big majority of code is void of any algorithmic work.
- apgwoz 16y agoSo, this is not an algorithm: 1. Parse HTTP Headers into map of header -> value 2. Check to see if "Cookie" exists in map 3. If it does, and it's value is X load record X from database table N 4. Otherwise, insert a new record in table N and create a "Set-Cookie" header in the response Is this a sexy algorithm? Not at all, but is it still an algorithm? Yes. An algorithm is just a set of things that make up a process.
- hcho 16y agoIt is an algorithm, you could have patented it if it wasn't prior art. The more trivial your algorithm, the more the chances it's prior art.