Write down dijkstra''s algorithm, Basic Computer Science

Assignment Help:

QUESTION

(a) Write down the Update Step in the Dijkstra's algorithm explaining its complexity.

(b) Propose a Generic Algorithm for Depth-First Search Algorithm, assuming the Initialisation procedure has already been implemented.

(c) Below is the algorithm of a flow decomposition algorithm.

begin

Initialize

while y ≠Ø do

begin

Select(s, y)

Search(s, y)

if a cycle C is found then do

begin

let D = Capacity(C, y)

Add Flow(D, C) to cycle flows

Subtract Flow(D, C) from y.

end

if a path P is found then do

begin

let D = Capacity(P, y)

Add Flow(D, P) to path flows

Subtract Flow(D, P) from y.

end

end

Describe the complexity of the following:

i) Selecting the initial node,

ii) Finding a cycle or a path,

iii) Update step.

(c) Write down Dijkstra's Algorithm, clearly indicating the variables used.


Related Discussions:- Write down dijkstra''s algorithm

CAI, what is CAI? explain its pitfalls.

what is CAI? explain its pitfalls.

Software evolution, SOFTWARE EVOLUTION:  As you know that in a compute...

SOFTWARE EVOLUTION:  As you know that in a computer system both hardware and software complement each other  -  one is of hardly any use without the other. Hence, since the ve

Probability, Mike sells on the average 15 newspapers per week (Monday – Fri...

Mike sells on the average 15 newspapers per week (Monday – Friday). Find the probability that 2.1 In a given week he will sell all the newspapers

Hotel database, Create a database,show all ojectives and give a fruitful in...

Create a database,show all ojectives and give a fruitful introduction and also state how it will be implemented

Cp, I NEED FLOW CHART ANT DRAWINGS OF BASIC OPERATIONS OF COMPUTER

I NEED FLOW CHART ANT DRAWINGS OF BASIC OPERATIONS OF COMPUTER

Finite automata, find the regular expression of(a/?)(a/b)?

find the regular expression of(a/?)(a/b)?

Ipx for lan, explain ipx for lan and spx

explain ipx for lan and spx

Nursing care activity module, Nursing Care Activity Module Retrievi...

Nursing Care Activity Module Retrieving of identification data of patient  Assessment of the patient  - Physical - Mental - Personal - Socio-c

Html, a program to create htmlpage

a program to create htmlpage

Define grid computing, Question 1 Define Grid computing Question 2 ...

Question 1 Define Grid computing Question 2 Explain Attribute-Based Programming Model for Grid Services Question 3 What are the characteristics that users/applicat

Write Your Message!

Captcha
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