Tongfamily.com

Tong Family Tips and Tricks

Tongfamily.com header image 4

Rewriting the Anagram program

April 12th, 2008 · No Comments · Geek

As Calvin pointed out, its a pain to do the string length and other calculations, so I went back and rewrote the anagram calculation using the prime number trick. That is, assign a prime to each letter from ‘a’ to ‘z’, then you can easily tell if two words are anagrams by multiplying all the [...]

[Read more →]

Tags: ···················

Anagram Solver

April 10th, 2008 · 2 Comments · Calvin

Calvin wants to solve anagrams. There are lots of great programs out there, but not much source. Gtoal.com has a good list of source code that is out there, but its hard to find a simple program.
Gtanag.mai is perhaps the simplest program that is a C program. I’m sure you could use it in [...]

[Read more →]

Tags: ·····················