Okay I think I have the flowchart of how all of this mess transpired.
- User A asked question.
- User A's question was closed.
- User B wanted to answer User A's question.
- User B created and populated a self-answered question, addressing User A's question.
User A's question is still off-topic, but I want to be careful here. Asking about algorithms is not off-topic.
The way that the question reads is that it describes the Traveling Salesman problem and then asks the community for a solution. Given a matrix, they want to be able to determine what attractions they should visit to maximize their sum of attractiveness.
Okay - that means this isn't exactly about an algorithm. They're looking for some kind of implementation to this question.
User B wants to answer this question anyway, so they spin up a separate question and answer. Their question is also off-topic, since the way it's framed, it reads as a "hey, give me this solution"-style question, so it gets downvoted and closed.
What was the real issue here? Well, I can't exactly fault someone for wanting to answer a question, but the point of closure is for a question to be made on-topic. I do think that the original question could be made on-topic, although I'm not sure exactly how yet.