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

  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