—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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.