School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,398 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,611 people online right now. Registration is fast and FREE... Join Now!




Can anyone solve this algorithm problem?

 

Can anyone solve this algorithm problem?, Fundamentals of algorithms

simsim00

16 Jun, 2009 - 11:31 AM
Post #1

New D.I.C Head
*

Joined: 16 Jun, 2009
Posts: 9

Virtual University administration has planed to make virtual campuses in different cities of Pakistan and wants to communicate with them with each other via communication channel the project is first for eight cities Lahore , Faisalabad, Multan , Islamabad, Abbotabad, Karachi . These cities are named 1, 2, 3………6; respectively. And any pair of two campuses is linked through VU special communication channel Cost to develop this link has been given in following table.

Campus Cost in Million Rupees
1-2 1.05
1-3 1.25
1-4 1.5
1-5 2.0
1-6 2.5
2-3 2.0
2-4 2.02
2-5 2.002
2-6 2.4
3-4 3.5
3-5 1.0
3-6 1.02
4-5 0.5
4-6 0.6
5-6 5.25

Which communication channels will be developed to ensure that all campuses are connected so that the total cost of the project is minimized?

This post has been edited by simsim00: 16 Jun, 2009 - 11:34 AM

User is offlineProfile CardPM
+Quote Post


LaFayette

RE: Can Anyone Solve This Algorithm Problem?

16 Jun, 2009 - 11:40 AM
Post #2

D.I.C Regular
Group Icon

Joined: 24 Nov, 2008
Posts: 255



Thanked: 28 times
Dream Kudos: 25
My Contributions
Just do Dijkstra's algorithm on it. If you are in algorithm class there's no reason why you shouldnt be able to do this yourself.
User is offlineProfile CardPM
+Quote Post

mostyfriedman

RE: Can Anyone Solve This Algorithm Problem?

17 Jun, 2009 - 06:14 PM
Post #3

Striving Student
Group Icon

Joined: 24 Oct, 2008
Posts: 3,144



Thanked: 355 times
Dream Kudos: 600
Expert In: Learning

My Contributions
typical graph problem
User is offlineProfile CardPM
+Quote Post

LaFayette

RE: Can Anyone Solve This Algorithm Problem?

18 Jun, 2009 - 12:22 AM
Post #4

D.I.C Regular
Group Icon

Joined: 24 Nov, 2008
Posts: 255



Thanked: 28 times
Dream Kudos: 25
My Contributions
For correctness: I actually meant Kruskal's or Prim's Algorithm...

Seems like the thread maker is long gone anyhow.
User is offlineProfile CardPM
+Quote Post

simsim00

RE: Can Anyone Solve This Algorithm Problem?

19 Jun, 2009 - 07:02 AM
Post #5

New D.I.C Head
*

Joined: 16 Jun, 2009
Posts: 9

Thanks. But i have solved it and my solution has been declared as best among all my friends.

can't give it here cuz it's was my graded assignment.

This post has been edited by simsim00: 19 Jun, 2009 - 07:03 AM
User is offlineProfile CardPM
+Quote Post

no2pencil

RE: Can Anyone Solve This Algorithm Problem?

21 Jun, 2009 - 12:42 AM
Post #6

i R L33t Skiddie, k?
Group Icon

Joined: 10 May, 2007
Posts: 13,227



Thanked: 289 times
Dream Kudos: 2875
Expert In: Goofing Off

My Contributions
QUOTE(simsim00 @ 19 Jun, 2009 - 09:02 AM) *

can't give it here cuz it's was my graded assignment.


If you can't hold discussions on here, then don't post conversation starting posts. We will not do your homework for you. You are either a part of the community, or you are not, & in my opinion after reading over your posts, you are not here to make discussion, only to post your homework questions, & gather our opinions.
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 10:11PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month