1. A method for designing a keyboard for inputting characters from a set of characters, the keyboard having a plurality of keys, the method comprising: assigning a first weight to a first character from the set of characters; assigning a second weight to a second character from the set of characters; and generating, using a prefix-free encoding, a first keystroke sequence for said first character and a second keystroke sequence for said second character based on said first weight and said second weight.
1. A method for designing a keyboard for inputting characters from a set of characters, the keyboard having a plurality of keys, the method comprising: assigning a first weight to a first character from the set of characters; assigning a second weight to a second character from the set of characters; and generating, using a prefix-free encoding, a first keystroke sequence for said first character and a second keystroke sequence for said second character based on said first weight and said second weight. 8. The method of claim 1 , wherein: said generating further comprises: grouping each character in the set of characters into a plurality of groups and performing said generating for each of said plurality of groups.