In computer science , an alphabet is a set of symbols ( letters or digits are examples of symbols ) . In computer science and mathematical logic , an alphabet is a finite set of symbols or letters , e.g. characters or digits .