Hi, all....
I'm posting here to see if anybody might be able to give me a push in the right direction. I have created an application that reads a txt-file and analyzes the statistics of character-combinations within it. I store these statistics in a hashMap; with the character-combo as a key, and the number of times each key occurs as value. So if a file contains the text: "dentist" the hashMap stores de, en, nt, ti, st as keys and sets the value of each to 1.
I'm not quite sure how I'm gonna tackle this task, and would really appreciate any ideas you might have.
And simpler is better, of course

Thanks

EDIT: I now have the application working....It correctly stores these character-combinations as keys in the hashMap and updates the number of occurences correctly. What I now need some tips on, is how can I use these statistics to generate a new text. I want the application to automatically generate text that resembles the language in the analyzed text(s). So if I analyze a text in say, german; the generated text should kind of look like german, because it is generated based on the statistical probability that a certain combination of characters will occur. Any ideas as to how I can accomplish this?
This post has been edited by KevinBT: 22 Apr, 2007 - 04:38 AM