Does anyone have the code for this algorithm ? Any C-based programming language would be OK but I prefer C#.
I could try to implement it but I'm sure I'm not the first one...
edit: It's not homework, it's a "gimme teh codez" question :D I just don't want to reinvent the wheel
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…