1 | initial version |
To be honest, we're not going to help like this. If you have a specific question, we can probably help. Take a look at the FAQ for things we can and can't help with.
Let's face it. Even if we wanted to help you do you homework, you haven't described the problem well enough to do that. Start by figuring out how to describe your problem properly, then start googling the phrases you come up with. I guarantee you'll find dozens or hundreds of algorithms.