What algorithm gives suggestions in a spell checker?

There is good essay by Peter Norvig how to implement a spelling corrector. It’s basicly a brute force approach trying candidate strings with a given edit distance. (Here are some tips how you can improve the spelling corrector performance using a Bloom Filter and faster candidate hashing.) The requirements for a spell checker are weaker. … Read more

circle-circle collision

Collision between circles is easy. Imagine there are two circles: C1 with center (x1,y1) and radius r1; C2 with center (x2,y2) and radius r2. Imagine there is a line running between those two center points. The distance from the center points to the edge of either circle is, by definition, equal to their respective radii. … Read more