As the newly-hired commissioner of the Gotham City Police
Department, James Gordon’s first act is to immediately fire all of
the dirty cops, stamping out Gotham’s widespread police corruption.
To do this, Commissioner Gordon must first figure out which
officers are honest and which are dirty. There are n officers in
the department. The majority (> n/2) of the officers are honest,
and every officer knows whether or not each other officer is dirty.
He will identify the dirty cops by asking the officers, in pairs,
to indicate whether the other is dirty. Honest officers will 3
always answer truthfully, dirty cops may answer arbitrarily. Thus
the following responses are possible:
As the newly-hired commissioner of the Gotham City Police Department, James Gordon’s first act is to...
Wanted by the Police: A Good Interface By KATIE HAFNER NOV. 11, 2004 From: The New York Times, Technology section, not-for profit classroom used. SAN JOSE, Calif. - SAN JOSE has a reputation as one of the safest large cities in the nation, with the fewest police officers per capita. Yet a number of the 1,000 officers in this city of 925,000 in the heart of Silicon Valley have been worrying about their own safety of late. Since June, the...