Explain how to modify prims algorithm

Assignment Help Data Structure & Algorithms
Reference no: EM132598322

Question 1. Explain how to modify Prim's algorithm so that it finds connected compo- nents of an undirected graph without edge weights.

Question 2. Use the symbols ⊂ and = (and no ⊆ ) to order the sets below. No justification is needed.

?((2lg n)2) ?(2((lg n)2)) ?(2lg(n2)) ?(2ln n) ?(n2).

Response:

?( ) ?( ) ?( ) ?( ) ?( ).

Question 3. Let ti : i = 0, 1, . . . , 9 be a set of tasks to execute, each needing a unit of time. The task ti must be completed by the time di in order to bring a profit of gi, both given in the table below.

 

t0

t1

t2

t3

t4

t5

t6

t7

t8

t9

g

20

15

43

2

5

15

16

10

30

7

d

3

4

2

2

4

3

7

4

3

9

What is the order of execution of these tasks that maximizes the total profit and what is the profit if you use what we called the "fast algorithm" (i.e. "student algorithm")?

Ordre:

Gain:

Question 4. Let T = {c1, . . . , cn} be a set of keys; you may assume that they are given in an array, also called T , in the obvious way: T [i] = ci. Give an algorithme that finds the two smallest keys in fewer than n + lg n comparisons. Prove, or at least justify, your claims.

Reference no: EM132598322

Questions Cloud

Identify a common perceptual, neurological issue : Identify a common perceptual, neurological, or cognitive issue and discuss contributing factors. Outline steps for prevention or health promotion for the.
What will happen to red blood cells : Red blood cells are placed in a 290 milliOsmolar solution. However of the 290 mOsmolar, 190 m Osm is due to electrolytes and 100 mOsm is due Urea.
Describe the rules that govern the simulation : What happens when we run the simulation and why is it important?
Discuss nurse role in supporting patient emotional needs : Discuss characteristic findings for a stroke and how it affects the lives of patients and their families. Discuss the nurse's role in supporting the patient's.
Explain how to modify prims algorithm : Explain how to modify Prim's algorithm so that it finds connected compo- nents of an undirected graph without edge weights
Look at the definition of osmosis : If you look at the definition of Osmosis, will hydrophobic molecules in a solution contribute to Osmosis ? If yes, explain. If no, explain.
Describe some web site design features : Describe some Web site design features that impact online purchasing. Why have advertising networks become controversial?
Write description and etiology of the condition : Description and etiology of the condition. Therapeutic Management: Be sure to address medication as well as surgical and non-surgical management if applicable.
Examples of domestic water conservation : What are some examples of water use and describe some examples of domestic water conservation?

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Dbms and data mining to imporve customer service

Discuss how a database management system and data mining can help motor vehicle maintenance center improve its services, and what tables would be required in such a database.

  Describe and analyze algorithms for each of the functions

Describe an efficient algorithm for computing A⊕B, which is the set of elements that are in A or B, but not in both.

  What policies are needed and appropriate in a networked

How does cryptography help or hinder protection of privacy and public safety? What policies are needed and appropriate in a networked world regarding the use

  Use big-o notation to categorize algorithms

Use big-O notation to categorize traditional grade school algorithms for addition and multiplication. That is, if asked to add two numbers each having N digits, determine individual additions should be performed?

  How many passes through the data will be made

How many passes through the data will be made by the selection sort for N data items and How many numbers are placed in order on each pass through the data (each iteration of the inner loop) for the selection sort?

  Analyze the running time of lca

Prove that LCA correctly prints the least common ancestor of u and ν for each pair {u, ν} ∈P. Analyze the running time of LCA, assuming that we use the implementation of the disjoint-set data structure in Section 21.3.

  Write an algorithm that print minimum spanning tree of graph

Write an algorithm that prints the minimum spanning tree of a graph. At the end, print the weight of the spanning tree. A suggested report format is shown in the following example.

  What is the confidence of the rule

What is the confidence of the rule - For classification and regression trees (CART), which of the following ways can be used to avoid overfitting

  Describe an algorithm to play the game of nim using all of

describe an algorithm to play the game of nim using all of the three tools discussed in class pseudocode flowchart

  Write a linear search function for such a self-organizing

Write a linear search function for such a self-organizing list using a move-to-the front strategy, in which the item being retrieved is moved.

  The decision tree inductive learning algorithm

The Decision Tree inductive learning algorithm may be used to generate "IF ... THEN" rules that are consistent with a set of given examples. Consider an example where 10 binary input variables X1, X2, , X10 are used to classify a binary output variab..

  Make a program that shows a expression evaluator

You need a program that shows a expression evaluator. You can use numbers o caracters.

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