Click here to Skip to main content
16,012,223 members
Articles / Desktop Programming / MFC
Article

prim's algorithm

Rate me:
Please Sign up or sign in to vote.
2.16/5 (30 votes)
23 Dec 2002 100.3K   4.1K   22   7
a graphical implementation for prim's algorithm
it's a graphical implementation for prim's algorithm ,

Introduction

prim's algorithm is an algorithm to calculate the shotest route simply , if we hace alot of nodes called A,B,C,D,.... and every node has links to other each link has a cost. if we wanna calculate the best way to go to have less cost. we implement this algorithm: choose any node randomly,say A and get the minimum link for it,for example this link to C. then we have nodes A,C and try to find the least cost link for both and so on. this application has two classes node and link. how to use the program simply type any name in the name textbox then press a click on the screen and so on to insert nodes as u like then choose from the combo boxes any two nodes,and type the distance. then press insert link button. if u wanna modify the drag using drag and drop. just check the modify check box and drag the graph. has a nice time....... :)

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Egypt Egypt
i'm a student in FCIS Ain Shams University
my hobbies is programing with C#,C++.
GDI+,And Networking.
i like programing world..

Comments and Discussions

 
General[Message Deleted] Pin
Ahmed IG16-Dec-05 3:29
Ahmed IG16-Dec-05 3:29 
General[Message Deleted] Pin
Sameh Ahmed17-Dec-05 13:29
Sameh Ahmed17-Dec-05 13:29 
General[Message Deleted] Pin
Sameh Ahmed17-Dec-05 13:30
Sameh Ahmed17-Dec-05 13:30 
GeneralRe: Very Poor Pin
Sameh Ahmed17-Dec-05 13:39
Sameh Ahmed17-Dec-05 13:39 
Well Well , Great Article young developer
First of All , i didn't say i achived the best complexity in my implementation , i said i just implemented the algorithm(did i!!??)

Second , It's not for every user to specify(did you ask your self , what every user need to use it ??? ) and i didn't make this program to make it easy to use , i just made the visual implementation to show how the algorithm work(i made an updated version from more than one year solve this problem but i thought developer think about more important things)

third as the second

About the fourth point..you are right.you didn't understand anything from my explanation..but its simply because i didn't explain. i just wrote notes about the project(expected that you know the algorithm)
At the end , Thank you for your comment,waiting for more polite&proffissional questions next time.
Good luck in your exams and study well

May be there are millions better than me but they are not me
QuestionWhen will people check their links? Pin
leppie25-Dec-02 6:35
leppie25-Dec-02 6:35 
AnswerRe: When will people check their links? Pin
Sameh Ahmed25-Dec-02 7:41
Sameh Ahmed25-Dec-02 7:41 
GeneralInteresting Pin
Christian Graus24-Dec-02 13:26
protectorChristian Graus24-Dec-02 13:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.