—10—Picking Locks with Breadth-First Search

Frank, Socks, and Officer Notation huddled by the back gate of the prison’s outer wall. Despite its truly impressive coating of rust, the locked gate had resisted both of Frank’s attempts to kick it open. He had only succeeded in clouding the air with red dust and introducing Notation to at least six new Boolean curse words.

“So . . . that didn’t work,” supplied Socks. Frank ignored him and studied the locking mechanism. It was a standard carved keypad with buttons labeled 1, 2, 3, A, B, and C in a single ordered row and an ENTER button beneath.

image

“We’ll have to do this the old-fashioned way,” said Frank. ...

Get The CS Detective now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.