SLIDE 1
Lahore University of Management Sciences CS 211a: Discrete Mathematics 1 Winter 07-08
Quiz 4 — February 14, 2008
Nabil Mustafa 20 mins
- Q1. There are 100 students in some school, and some of them honest and some dishonest. Imagine
yourself to be a new student at that school, and you want to find out who is an honest student, and who is a dishonest student. All you are allowed to do is ask a student Y the question: “Is student Z honest?”. Based on that answer, you can ask other questions. You can ask a question about any student to any other student. The honest students always tell the correct answer, but the dishonest
- nes may or may not tell the correct answer. Assume that the majority of the students are honest.
Question: Show that by asking at most 198 questions, you can find the honest/dishonest students. Anything more than 198 gets a zero. 5 points. The main goal is to find one honest student with at most 100 questions. Once we find him, with another 100 questions, we know about everyone. First, there are some properties of questions that I’ll state, but not prove since I hope everyone can do them: Claim 1: If I ask student a about student b, and a says that b is dishonest, then at least one of a
- r b is dishonest.
Claim 2: If I ask student a about student b, and a says that b is honest, and I know that exactly
- ne of a or b is honest, then it has to be b that is honest.
We’ll find one honest student inductively, and get a recurrence for the total questions asked. So, say that we are given s1, . . . , sn to be n students, and we know that the majority are them are
- honest. We are now going to reduce them to at most n/2 students, where the majority is still
- honest. And in this reduction, we will ask only n/2 questions. So, how to reduce to n/2 students