Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As computer scientists and adjacent, we have a whole taxonomy for algorithms. It should be noted that "sort by salary" is an algorithm.


In popular media "algorithm" has taken on a new meaning, probably because the word itself sounds mysterious.

I can't fully define the new meaning, but it's like the YouTube video recommendation algorithm which is more like a whole system than a single algorithm in the original sense, the Facebook algorithm for ranking items on your feed. These big data, machine learning, opaque models.


If the set of rules are defined by humans and then those rules are coded into a SQL statement is it really an algorithm? If the humans define the rules and later they realize the rules are bad it's not the sorting algorithm that caused the problem.


I've got to be honest, I answered yes to both your rhetorical "are these algorithms?" questions, which I'm guessing was not your intention. It would help if you gave some examples of what is missing in each case (in your eyes) disqualifying them.

With the SQL example:

I don't think a set of rules is disqualified from being called an algorithm if it's implemented using some other tool or process, because we do this all the time: when programming, we split up implementations into functions, or we could have used the standard library's sort function too -- I would still consider it an algorithm no matter how the "sort the results" step ended up being implemented.

If the result is wrong, it is not necessarily because the implementation of SQL's ORDER BY is incorrect (it could be but it's unlikely for a popular SQL implementation), and if you know that the the rules are incorrect then I agree, I definitely wouldn't blame the sorting algorithm (at least initially, although it's possible it's also be wrong).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: