Problem 7 4 graduate student party gsc organizes a

This preview shows page 2. Sign up to view the full content.

rectangles. Problem 7-4. Graduate student party GSC organizes a party. Since this is a graduate student party, GSC must ensure that none of the students in the party has too much fun. In particular, it must ensure that no participating student is too sociable . We say that a student s is sociable, if there are 5 or more other people within a two-meter radius from s . To solve this issue, GSC decides to attach a GPS transmitter to every entering student. The ( x, y )-coordinates of all students are measured every few seconds. Assuming there are n students, their coordinates are represented by a sequence ( x 1 , y 1 ) . . . ( x n , y n ). GSC now just needs a fast algorithm that, given the student coordinates, determines if there is any sociable student in the party (if so, the party is declared a failure and closed immediately). Give an efficient algorithm for checking if any of the students is sociable (the algorithm does not have to find such student if one exists). Your algorithm can be randomized and should run in expected O ( n ) time.
Image of page 2
You've reached the end of this preview.
  • Spring '03
  • PiotrIndyk
  • Algorithms, Big O notation, Analysis of algorithms

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern