This preview shows page 1. Sign up to view the full content.
Unformatted text preview: ASCII that has printable characters. They load their seven numbers into two queues oF Integers, and then use one to encode and one to decode. When they use a key letter, they replace it at the tail oF the queue, so they just rotate among the key letters. OF course they could have avoided the queues by keeping a count oF letters, and every time looking at array element key [count % 7]. But using the queue is simple and clear....
View Full Document
This note was uploaded on 11/22/2011 for the course COMPSCI 187 taught by Professor Barrington during the Fall '11 term at UMass (Amherst).
- Fall '11
- Data Structures