answersLogoWhite

0


Best Answer

First a vertex is selected arbitrarily. on each iteration we expand the tree by simply attaching to it the nearest vertex not in the tree. the algorithm stops after all yhe graph vertices have been included.. one main criteria is the tree should not be cyclic.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

All three algorithms basically do the same thing in slightly different ways. They were all discovered around the same time (1956/7), however Prim's algorithm was originally discovered in 1930 by Vojtěch Jarník, and "rediscovered" by Dijkstra in 1959. Dijkstra's algorithm was optimised in 1984 by Michael Lawrence Fredman and Robert E. Tarjan, and can be found in most network routing protocols today.

How they differ is merely one of implementation and time complexity. In much the same way that heap-sort and quicksort do the same thing in different ways but with differing time complexity.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

Prim's algorithm is a 'graph algorithm' which uses a 'greedy approach' to find the minimum spanning tree of a graph.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How does Prim's algorithm differ from Kruskal's and Dijkstra's algorithms?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is validation of an algorithm?

Once an algorithm has been devised it become necessary to show that it works it computer the correct to all possible, legal input. One simply way is to code into a program. However converting the algorithm into program is a time consuming process. Hence,it is essential to be reasonably sure about the effectiveness of the algorithm beforeit is coded. This process, at the algorithm level,is called"validation". Several mathematical and other empirical method of validation are available. Providing the validation of an algorithm is a fairly complex process and most often a complete theoritical validation though desirable, mey not be provided. Alternately, algorithm segment,which have been proved elsewhere may be used and the overall working algorithm may be empirically validated for several test cases.Such method,although suffice in most cases,may often lead to the presence of unidentified bugs or side effect later on. And The process of measuring the effectiveness of an algorithm before it is coded to know the algorithm is correct for every possible input.This process is called validation. Example :- This article describes the algorithms for validating bank routing numbers and credit card numbers using the checksum built into the number. While they differ in how they are generated, the technique used for both is similar. by Niraj Sharma


Characteristics of an algorithm?

An algorithm is written in simple English and is not a formal document. An algorithm must: - be lucid, precise and unambiguous - give the correct solution in all cases - eventually end Also note it is important to use indentation when writing solution algorithm because it helps to differentiate between the different control structures. 1) Finiteness: - an algorithm terminates after a finite numbers of steps. 2) Definiteness: - each step in algorithm is unambiguous. This means that the action specified by the step cannot be interpreted (explain the meaning of) in multiple ways & can be performed without any confusion. 3) Input:- an algorithm accepts zero or more inputs 4) Output:- it produces at least one output. 5) Effectiveness:- it consists of basic instructions that are realizable. This means that the instructions can be performed by using the given inputs in a finite amount of time.


Algorithm in creating insert method in linked list?

You sort a doubly linked list the same way you sort any other kind of list or array. You implement a procedure to sort the list or array, and that procedure calls the appropriate insert, delete, or move methods of the list or array.


Can you overload static functions in c plus plus?

Yes, but overloads cannot differ by return type alone. The signatures must differ by the number and/or the type of the arguments.


How does reverse tunnel differ from forward tunnel in mobile IP protocol?

its backwards

Related questions

How do pseudocodes differ from algorithms?

Algorithm is a set of well-defined code instructions to address a particular problem. It is explicit and could be interpreted by the compiler. Pseudocodes is a generalized set of logic that do not include implementation detail. It is meant for human to understand.


What is validation of an algorithm?

Once an algorithm has been devised it become necessary to show that it works it computer the correct to all possible, legal input. One simply way is to code into a program. However converting the algorithm into program is a time consuming process. Hence,it is essential to be reasonably sure about the effectiveness of the algorithm beforeit is coded. This process, at the algorithm level,is called"validation". Several mathematical and other empirical method of validation are available. Providing the validation of an algorithm is a fairly complex process and most often a complete theoritical validation though desirable, mey not be provided. Alternately, algorithm segment,which have been proved elsewhere may be used and the overall working algorithm may be empirically validated for several test cases.Such method,although suffice in most cases,may often lead to the presence of unidentified bugs or side effect later on. And The process of measuring the effectiveness of an algorithm before it is coded to know the algorithm is correct for every possible input.This process is called validation. Example :- This article describes the algorithms for validating bank routing numbers and credit card numbers using the checksum built into the number. While they differ in how they are generated, the technique used for both is similar. by Niraj Sharma


How does transmission torrent differ from bittorrent?

Transmission is a client for the bittorrent file transfer method of transferring files. There is no real difference, other than different algorithms that may improve performance over other bittorrent clients.


Do all search engines return all the same information?

No. The algorithms of the different search engines differ. For example, Google puts more emphasis on content and social shares, whereas Bing values page title tags and Facebook likes higher.


Characteristics of an algorithm?

An algorithm is written in simple English and is not a formal document. An algorithm must: - be lucid, precise and unambiguous - give the correct solution in all cases - eventually end Also note it is important to use indentation when writing solution algorithm because it helps to differentiate between the different control structures. 1) Finiteness: - an algorithm terminates after a finite numbers of steps. 2) Definiteness: - each step in algorithm is unambiguous. This means that the action specified by the step cannot be interpreted (explain the meaning of) in multiple ways & can be performed without any confusion. 3) Input:- an algorithm accepts zero or more inputs 4) Output:- it produces at least one output. 5) Effectiveness:- it consists of basic instructions that are realizable. This means that the instructions can be performed by using the given inputs in a finite amount of time.


Algorithm in creating insert method in linked list?

You sort a doubly linked list the same way you sort any other kind of list or array. You implement a procedure to sort the list or array, and that procedure calls the appropriate insert, delete, or move methods of the list or array.


What is a sentence for the word differ?

The pair of them differ so much.Their opinions often differ.


Which preposition to use after differ?

differ


How do blue star differ from the red star?

they are differ by their color they are also differ in temperature


How does mass differ from rate?

How does what differ from mass?


What is the root word for difference?

Differ.


How do you use the word differs?

Use it as a verb. Shelly differs from Mary