Your question is on-topic here. We don't normally migrate questions unless they should be closed where they are.
Your question is at best marginal for Programmers since it's about an algorithm from a theoretical point of view.
We occasionally migrate questions to Theoretical Computer Science, if they are about theory, research-level, have not received a satisfactory answer after a few days, and the asker is willing. Your question doesn't look research-level to me, but I'm happy to be contradicted by experts in the topic.
If you want better answers, my first advice is to listen to the feedback given to you. Have you explored Juho's suggestions? How about editing your question to clarify it as he suggests? IPlant's answer might not give the full story, but it gives suggestions that you give no evidence of having taken into account either.