Determine the kruskal algorithm in detail

Assignment Help Data Structure & Algorithms
Reference no: EM132257845

Question: 1. Kruskal's algorithm will run on a disconnected graph without any problem. Just that the minimum spanning tree will be for the connected portion of graph. The disconnected vertices will not be included in the output. This is because, Kruskal's algorithm is based on edges of the graph.The loop iterates over the sorted edges. This means that it is considering those portions of the graph that are connected through the edges and generates minimum spanning tree (MST) for the connected portion of the graph. The disconnected vertices are never considered and hence not included at all in output.

2. Let us consider the 1st implementation of Prim's algorithm. Prim's algorithm will go into infinite loop and can not generate MST for disconnected graphs. Look at the loop condition , it terminates when the number of vertices in the MST is the same as the number of vertices in the graph. This condition can not be achieved if the graph is disconnected . For example let's take some vertex u already in B and a disconnected vertex v in graph . Now we can not find an minimum length edge from u (any vertex in B) to v. So v can not be included in the set B. So B will never be equal to N and the loop goes into infinite loop. Therefore Prim's algorithm can not work on disconnected graphs as it works by considering each of the graph' s vertices unlike Kruskal's algorithm, which considers edges (the connected parts of graph)

Reference no: EM132257845

Questions Cloud

Produce a report on the role and acquisition : OIM5009-A: Management of Information Systems - Produce a report on the role and acquisition of IS for BLL for its senior management and line management
Would you expect the capacity increase to have an effect : BA 270 Business Process Management : Would you expect holding cost to go down with increases in maximum capacity? Explain your answer.
What is the sampling distribution of the sample mean : Suppose we have n = 6 observations x1, . . . , x6. What is the sampling distribution of the sample mean
Develop a list of changes for the operations function : ITS631 Read the case: Prime Bank of Massachusetts, available in the Operations Management textbook, Chapter 2. Develop a list of changes for the operations.
Determine the kruskal algorithm in detail : Kruskal's algorithm will run on a disconnected graph without any problem. Just that the minimum spanning tree will be for the connected portion of graph.
Discuss at least one of the ways to test a threat mitigation : ISOL 536 Security Architecture and Design Threat Modeling. Discuss at least one of the ways to test a threat mitigation (one page only with references and APA)
Are these duties in the best national interest of the usa : Who gains the most and from antidumping duties levied by the USA on imports of magnesium from China and Russia? How?
Make up a research question about two numerical variables : Make up a research question about two numerical variables in your data, establishing the response and explanatory variables
Analyze role of cultural intelligence in leading effectively : Analyze the role of cultural intelligence in leading effectively in a cross-cultural context. Assess the potential application of cultural frameworks

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd