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

  Write an algorithm to delete all the leaves from binary tree

Write an algorithm to delete all the leaves from a binary tree, leaving the root and intermediate nodes in place. (Hint: Use a preorder traversal.)

  Does algorithm meet the first criterion of a hash algorithm

Does this algorithm meet the first criterion of a hash algorithm? Does it meet the second criterion? Does it meet the third criterion?

  Deleting a random element from an arraylist

In the archive, you will find the RandomQueue class, which implements the Queue interface in a way that, when we call remove()/poll(), a random element is removed from the queue. Currently, this is done by storing all the elements in an ArrayList ..

  Prepare a currency conversion design

currency conversion design pseudocodeprogram pseudocodestart main moduledeclare option 0declare value 0declare

  How do you declare char data type

How do you declare char text[80]

  Explain computer algorithms and its significance

Explain computer algorithms and its significance. Explain some of the technologies that have contributed to the exponential growth of the Internet and the World Wide Web (WWW).

  Write a function that deletes kth element of the linked list

Write a function that returns the info of the kth element of the linked list. If no such element exists, terminate the program. Write a function that deletes the kth element of the linked list.

  Implement a nice graph datastructure

Implement a nice graph datastructure. Implement two different greedy graph coloring algorithms. Shortest path algorithm and MST algorithms.

  Which actions would be inappropriate for program to take

If the user types an invalid value into a TextBox and moves focus to another TextBox, which of the following actions would be inappropriate for the program to take?

  Design and implement class menu which use doubly linked list

Design and implement a class Menu which uses doubly linked lists as main data structures. A Menu object consists of a set of main menu items, organized as a doubly linked list.

  Create a second empty queue q2

Once you have the first Queue filled we are going to use a technique called Sieve of Eratosthenes which uses first queue to fill the second queue.

  Prepare a new test table with at least three distinct test

Prepare a new test table with at least 3 distinct test cases listing input and expected output for the code you created after step 1.

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