Computer Science vs. Programming
Are there any people who believe programming is not strongly related to algorithm design? Should the questions I've described be downvoted/moved? I believe some more advanced users create an artificial clear line between computer science and programming, that (in my opinion) is rather blurry.
Computer Science and algorithms are higher-level (abstract) than actual low-level implementation code (gory details). I think it is quite appropriate to separate the two, because as soon as you get into the nitty-gritty details of actual code, you lose the benefits of conceptual problem solving that the abstraction of Computer Science provides.
In the cases where the lines are blurry, the on-topic guidelines for each Stack Exchange might be able to help. Let's take a look...
Algorithm questions in general
The help centers for Stack Overflow, Programmers, and Computer Science all say that algorithms are on-topic:
-
if your question generally covers...a software algorithm
-
If you have a question about...algorithm and data structure concepts
-
This site covers theoretical and applied computer science at any level, including but not limited to...algorithms, models of computation
I would say that if the algorithm is expressed in actual code, then it doesn't belong on either Programmers or Computer Science.
Pseudo-code algorithms are probably more appropriate in Programmers or Computer Science, although I'm not familiar enough with either of those two Stack Exchanges to know which one is a better host for such a question.
When in doubt, try asking on one of the child-meta sites, or in one of these chat rooms:
The WhiteboardThe Whiteboard (Programmers).