Wrox Programmer Forums
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 7th, 2006, 03:08 AM
Registered User
 
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Graph Problems

Hi all, this is my first post here. My problem is as follows:


Assignment 2 - Campus Safety System

Objectives:The purpose of this assignment is to test your ability to design efficient algorithms using Graphs, analyse them, and implement them in C++. Your program MUST work correctly on POMPEII using the g++ compiler. This assignment also tests your ability to understand standard specifications and follow instructions carefully. Failing to submit the assignment as required will cause you to fail the assignment.

Overview
To increase Campus Safety, the University is committed to install new specialised help and security units to provide a highly sophisticated safety network. These help and security units include dial-up to security office, alarm, Closed Circuit TV (CCTV) & Digital Video Recording (DVR) Systems,... Security and help units must be deployed in strategic locations around Macquarie University. However, due to related high costs of these units, their number must be limited. However, it is paramount that any one on Campus should find at least one in their building or an (immediately) neighbouring building (e.g., E6A and E5A).

You have been hired by the University Security services to write a program that will allocate the positions of all "help units" on the campus while minimising their number necessary to cover the whole campus adequately.

# The map of the campus are given to you as an undirected graph where:

    * the vertices represents the possible locations where you can install a help unit.
    * there is an edge between two locations (i.e., vertices) if they are immediate neighbours. If a vertex is not allocated with an help unit, there must be an help unit allocated to one of its neighbouring vertices.

# The locations (i.e., vertices) are numbered 1, 2, 3,...,n.

Your task is to find a solution that minimises the number of required units necessary to equip the whole campus.

PLZ help!!!!!! If anyone has an algorithm in mind please tell!
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
TO draw a graph shravanmv Visual Basic 2008 Essentials 0 May 12th, 2008 11:53 PM
I need help with making a graph. kanryue VB How-To 3 August 21st, 2006 04:51 PM
graph pab006 Classic ASP Basics 5 July 26th, 2004 10:06 AM
graph pab006 Classic ASP Basics 1 April 30th, 2004 10:08 PM
Graph Customization hosefo81 PHP How-To 3 November 10th, 2003 03:07 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.