Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Algo Question
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
priya k  
View profile  
 More options Jul 1, 8:47 am
From: priya k <priya.annau...@gmail.com>
Date: Wed, 1 Jul 2009 18:17:05 +0530
Local: Wed, Jul 1 2009 8:47 am
Subject: Algo Question

 we have many machines connected to each other. However, administering these
machines is a great hassle. That is because a machine can be administered
only by a machine connected directly to it (a machine that is an
administrator can administrator itself). So, the system administrators have
decided to convert some of the machines in the network to "administrative
machines". However, the cost of converting a machine to an administrative
machine is $100, which is pretty high. So, the system administrators
approach you to help them out.

You will be given a list of machines which have a direct connection between
them. You need to compute the least cost that the company needs to incur so
that every machine in the final network is administrable by at least one of
the machines converted to administrative machines.

You are given as input the node pairs which are connected to each other. You
are supposed to find the least amount of money in dollars that you need to
spend so that every machine in the network is administered by at least one
administrator machine.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave  
View profile  
 More options Jul 1, 11:54 am
From: Dave <dave_and_da...@Juno.com>
Date: Wed, 1 Jul 2009 08:54:20 -0700 (PDT)
Local: Wed, Jul 1 2009 11:54 am
Subject: Re: Algo Question
This can be formulated as a 0-1 integer programming problem.

Define the matrix A such that a(i,j) = 1 if machine i is connected to
machine j, and = 0 otherwise (with the interpretation that every
machine is connected to itself).

Let x be a vector whose elements are in the set {0, 1}, where x(j) = 0
means that machine j is not an administrative machine and x(j) = 1
means that it is.

Then the 0-1 integer programming problem is:

detemine x to
minimize sum{ x(i) }
subject to [A*x](i) >= 1.

The inequality above means that the i'th component of the matrix-
vector product A*x is >= 1. It simply means that machine i is
connected to at least one administrative machine.

You should be able to find software or algorithms to solve 0-1 integer
programming problems.

Dave

On Jul 1, 7:47 am, priya k <priya.annau...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Siddharth S  
View profile  
 More options Jul 1, 12:54 pm
From: Siddharth S <mitsiddha...@gmail.com>
Date: Wed, 1 Jul 2009 22:24:32 +0530
Local: Wed, Jul 1 2009 12:54 pm
Subject: Re: [algogeeks] Re: Algo Question

The problem seems to be minimum dominating set problem (which is NP-complete
i think). But since the number of nodes will be <=26, it can be solved by
some intelligent brute force.

Something like this might work:

Take all subsets of the given nodes. Iteratively keep increasing the size of
the subsets. i.e., take all 1-size subsets of nodes .. then take all subsets
of size 2, then 3 and so on ... Now see if the current subset of the given
node set forms the dominating set. If yes then problem is solved and the
solution can be printed.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google