Analyze an algorithm to find a spanning tree

Assignment Help Data Structure & Algorithms
Reference no: EM132402924

Describe and analyze an algorithm" means you must provide pseudocode, a proof of correctness and complexity analysis.

Question 1: Let (S, T) and (S', T') be minimum (s, t)-cuts in some flow network G. Prove that (S ∩ S', T υ T') and (S υ S', T ∩ Ti) are also minimum (s, t)-cuts in G.

Question 2: Mulder and Scully have computed, for every road in the United States, the exact probability that someone driving on that road won't be abducted by aliens. Agent Mulder needs to drive from Langley, Virginia to Area 51, Nevada. What route should he take so that he has the least chance of being abducted?

More formally, you are given a directed graph G = (V, E), where every edge e has an independent safety probability p(e). The safety of a path is the product of the safety probabilities of its edges. Design and analyze an algorithm to determine the safest path from a given start vertex s to a given target vertex t. You may assume that all necessary arithmetic operations can be performed in 0(1) time.

1458_figure.jpg

For example, with the probabilities shown above, if Mulder tries to drive directly from Langley to Area 51, he has a 50% chance of getting there without being abducted. If he stops in Memphis, he has a 0.7 x 0.9 = 63% chance of arriving safely. If he stops first in Memphis and then in Las Vegas, he has a 1-0.7 x 0.1 x 0.5 = 96.5% chance of being abducted! (That's how they got Elvis, you know.)

Question 3: Suppose we are given an undirected graph G in which every vertex has a positive weight.

(a) Describe and analyze an algorithm to find a spanning tree of G with minimum total weight. (The total weight of a spanning tree is the sum of the weights of its vertices.)

(b) Describe and analyze an algorithm to find a path in G from one given vertex s to another given vertex t with minimum total weight. (The total weight of a path is the sum of the weights of its vertices.)

Question 4: A graph G = (V,E) is dense if E = Θ(V2). Describe a modification of Jarniles minimum-spanning tree algorithm that runs in O(V2) time (inde-pendent of E) when the input graph is dense, using only elementary data structures-in particular, without using Fibonacci heaps. This variant of Jarnik's algorithm was first described by Edsger Dijkstra in 1958.

Verified Expert

All the algorithms are modified according to the requirements given in the question. The answers are given according to the sample answer sheet given in the zip file. The proof of correctness and complexity of the algorithms is also given after every algorithm.

Reference no: EM132402924

Questions Cloud

Define mission and membership in determining the agenda : Assume the role of a volunteer in a specific health-related advocacy organization. From this perspective, summarize for other volunteers the advocacy structure.
What possible violations of osha construction standards : Research the Internet for information on a recent crane accident. What possible violations of OSHA construction standards can you identify
How much time you spent approximately in whole hours : Document what you did to complete the work required for the activity and how much time you spent approximately in whole hours.
What are the common core state standards : What are the Common Core State Standards and how are they meant to support the improvement of our U.S. educational system?
Analyze an algorithm to find a spanning tree : Describe and analyze an algorithm means you must provide pseudocode, a proof of correctness and complexity analysis - Describe and analyze an algorithm.
Price sensitive to changes in interest rates : 1. Which of the following two bonds is more price sensitive to changes in interest rates? (requires calculations)
Estimate the firm cost of internal equity : The expected return on the market is 11% and the risk-free interest rate is 6%. Estimate the firm's cost of internal equity.
Estimate the firm cost of internal equity : The expected return on the market is 11% and the risk-free interest rate is 6%. Estimate the firm's cost of internal equity.
Compute the cost of capital of the stock to your firm : The dividend rate is 12%, and the par value of the stock is $100. Compute the cost of capital of the stock to your firm. Show all work.

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