Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

COMP 482, Fall 2008 Exam 2: Home Security, Bike Scheduling, Point Coverage, Graph Coloring, Exams of Algorithms and Programming

The instructions and problems for a take-home exam in computer science, focusing on home security, bicycle scheduling, point coverage, and graph coloring. The exam covers various optimization problems and requires the use of logical reasoning and mathematical concepts. Students are allowed to use course materials but not external resources. The first problem asks to determine the minimum number of locks needed to secure a room from intruders in a given building layout. The second problem involves scheduling friends to reach a free concert using walking and biking speeds. The third problem is about proving the np-completeness of the minimum disk coverage problem. The fourth problem asks to color a 3-colorable graph using o(√n) colors in polynomial time.

Typology: Exams

Pre 2010

Uploaded on 08/16/2009

koofers-user-byj
koofers-user-byj 🇺🇸

10 documents

1 / 3

Toggle sidebar

Related documents


Partial preview of the text

Download COMP 482, Fall 2008 Exam 2: Home Security, Bike Scheduling, Point Coverage, Graph Coloring and more Exams Algorithms and Programming in PDF only on Docsity! COMP 482, Fall 2008, Exam 2 You have 5 contiguous hours of your choice to look at and work on the exam. Hand it in during class or at my office, DH 3118. Remember that evening and weekend access to my office is limited. You may use any material provided as part of this course, your textbook, notes, and graded assignments, but no other materials. You may not use a computer, except to access the course’s online material or to type your answers. Please write legibly, clearly label each problem, and show your work. Since this is a take-home exam, it is not practical to ask for clarifications during the exam. If you feel that a problem is not sufficiently specified, clearly state the assumptions that you are making, and continue with the exam. Of course, your assumptions should be reasonable ones. The 4 problems follow on separate pages. 1 1. (20 points) You are creating the Securisys 9043, the latest home security software from Spishak Inc. (Their motto is “So secure, even you can’t unlock it.”) The software is designed to “secure” a room; it does this by determining the minimum number of locks it has to perform to prevent access to a given room from one or more other rooms. Each door connects a pair of rooms and has a single control panel that can unlock it from one side of the door. For example, in the following diagram, each room is numbered, and each control panel (“CP”) is marked next to the door it can unlock and in the room that it is accessible from. To secure room 2 from an intruder in room 1, the minimum number of locks needed is two: one has to lock the door between room 2 and room 1 and the door between room 3 and room 1. Note that it is impossible to secure room 2 from an intruder in room 3, since the intruder would be able to use the control panel in room 3 that unlocks the door between room 3 and room 2. Describe how to determine the minimum number of locks needed, given a building layout, the room you are trying to secure, and the locations of one or more intruders. 2. (20 points) A total of n friends want to go to a free concert, which is d miles away. They are poor college students without cars and only one single-seat bicycle among them. They are in a hurry and want to get to there as soon as possible for the best seats. Since they want to sit together, they are willing to wait until the last friend gets there. Each person has their own walking speed wi and biking speed bi, each in miles per hour. While the friends start at the same time, in order to get there as quickly as possible, they are willing to split up en route. The following is an example schedule when n = 3, d = 10, w1 = w2 = 2, w3 = 4, b1 = b2 = 12, and b3 = 16. • Person 1 bikes from mile 0 to mile 5.4 in 9 20 hours, then walks the rest of the way to mile 10. 2
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved