SlideShare a Scribd company logo
1 of 17
Nadar Saraswathi college of
arts and science Theni
Department of CS and IT
Presented by:
S.Swetha
I M.sc(IT)
Dynamic programming
Title:
Reliability design.
The Traveling salesperson
. Flow shop schedulin
g.
Reliability design
• In reliability design, the problem is to
design a system that is composed of
several devices connected in series. I
f we imagine that r1 is the reliability o
f the device.
Reliability design
• Solve a problem with a multiplicative
optimization function
• Several devices are connected in series
• ri be the reliability of device Di
• Reliability of the entire system
• Duplicate : multiple copies of the same
device type are connected in parallel use
switching circuits
Reliability design
n devices Di, 1<=i<=n, connected in series
Multiple devices connected in parallel in each stage
Multiple copies
stage in contain mi copies of Di
P(all mi malfunction) = (1-ri)mi
Reliability of stage i =1-(1-ri)mi
Reliability design
• Maximum allowable cost of the system
Maximize
Subject to
Mi >=1 and integer, 1<=i<=n
• Assume ci>0
ui =







  i
n
j
i c
c
c
c /
)
(
1
Travelling salesperson
• In the traveling salesman Problem, a
salesman must visits n cities. We can
say that salesman wishes to make a t
our or Hamiltonian cycle, visiting eac
h city exactly once and finishing at th
e city he starts from. There is a non-
negative cost c (i, j) to travel from the
city i to city j.
The traveling salesperson problem
• mail pickup
– n+1 vertex graph
– Edge <i,j> distance from i to j
– Tour of minimum cost
• Permutation problem
– n! different permutation of n object while
there are 2n different subset of n object
n! > O(2n)
The traveling salesperson problem
• Tour : simple path that starts and ends at v
ertex 1
• Every tour : edge<1,k> for some k v-{1} e
ach <k,1>
• Optimal tour : path(k,1)
– Shortest k to 1 path all the vertices in V-{1,k}
• Let g(i,s) be the length of a shortest path starting
at vertex i, going through all vertices in S and term
inating at vertex 1
})}
,
1
{
,
(
{
min
})
1
{
,
1
( 1
2
k
V
k
g
c
V
g k
n
k






})}
{
,
(
{
min
)
,
( j
S
j
g
c
S
i
g ij
S
j





The traveling salesperson problem
• Directed graph and edge length matrix c
The traveling salesperson problem
• Thus g(2, ) = c21 = 5, g(3, ) = c31 = 6, and g(4, ) = c41 = 8. We
obtain
g(2,{3}) = c23 + g(3, ) = 15 g(2,{4}) = 18
g(3,{2}) = 18 g(3,{4}) = 20
g(4,{2}) = 13 g(4,{3}) = 15
g(2,{3,4}) = min{c23+g(3,{4}),c24+g(4,{3})} = 25
g(3,{2,4}) = min{c32+g(2,{4}),c34+g(4,{2})} = 25
g(4,{2,3}) = min{c42+g(2,{3}),c43+g(3,{2})} = 23
g(1,{2,3,4}) = min{c12+g(2,{3,4}),c13+g(3,{2,4}),c14+g(4,{2,3})}
= min(35,40,43}
= 35


 
The traveling salesperson problem
• Let N be the number of g(i,s), that have to be com
puted before g(1,V-{1}) i, computed for each valu
e of |s|
• n-1 choices of i
• The number of distinct sets of S of size k not inclu
ding 1 and i

i 






 
k
n 2
2
2
0
2
)
1
(
)
2
)(
1
( 







  n
n
k
n
k
n
n
N
)
2
(
lg 2 n
n
orithm
a 

)
2
(
)
( n
n
O
need
space 
Flow shop scheduling
• Flow-shop scheduling is a special ca
se of job-shop scheduling where ther
e is strict order of all operations to be
performed on all jobs. Flow-shop sch
eduling may apply as well to producti
on facilities as to computing designs.
Flow shop scheduling
• The process of a job requires the perf
ormance of several distinct tasks.
• In a general flow shop we may have n
jobs each requiring m tasks T1i,T2i,...
.......Tmi,1≤i≤n, to be performed.
• Tji is to be performed on processor pj
, 1≤j≤m.
Two jobs have to be scheduled on thre
e processors. The task time are given b
y the matrix j
j= [2 0]
[3 3]
[5 2]
Dynamic programming

More Related Content

What's hot

Practica productos notables
Practica productos notablesPractica productos notables
Practica productos notablesLina Ari
 
Quill - 一個 Scala 的資料庫存取利器
Quill - 一個 Scala 的資料庫存取利器Quill - 一個 Scala 的資料庫存取利器
Quill - 一個 Scala 的資料庫存取利器vito jeng
 
Translating Linear Functions "I AM" Answer Key!
Translating Linear Functions "I AM" Answer Key!Translating Linear Functions "I AM" Answer Key!
Translating Linear Functions "I AM" Answer Key!Deborah_Johnson
 
Annals of Statistics読み回 第一回
Annals of Statistics読み回 第一回Annals of Statistics読み回 第一回
Annals of Statistics読み回 第一回jkomiyama
 
Bellman Ford Routing Algorithm-Computer Networks
Bellman Ford Routing Algorithm-Computer NetworksBellman Ford Routing Algorithm-Computer Networks
Bellman Ford Routing Algorithm-Computer NetworksSimranJain63
 
Find Transitive closure of a Graph Using Warshall's Algorithm
Find Transitive closure of a Graph Using Warshall's AlgorithmFind Transitive closure of a Graph Using Warshall's Algorithm
Find Transitive closure of a Graph Using Warshall's AlgorithmSafayet Hossain
 
B tree, Hamiltonian & Eulerian path presentation
B tree, Hamiltonian & Eulerian path presentationB tree, Hamiltonian & Eulerian path presentation
B tree, Hamiltonian & Eulerian path presentationsanjay kumar
 
Number Conversions (MOTM 2010.12)
Number Conversions (MOTM 2010.12)Number Conversions (MOTM 2010.12)
Number Conversions (MOTM 2010.12)Kevin Munc
 
Method of characteristic for bell nozzle design
Method of characteristic for bell nozzle designMethod of characteristic for bell nozzle design
Method of characteristic for bell nozzle designMahdi H. Gholi Nejad
 
TuringSlashPython - Undergraduate Final Year Project
TuringSlashPython - Undergraduate Final Year ProjectTuringSlashPython - Undergraduate Final Year Project
TuringSlashPython - Undergraduate Final Year ProjectAlex Psarras
 
Avances en la integración de GGL2 con gvSIG y QGIS
Avances en la integración de GGL2 con gvSIG y QGISAvances en la integración de GGL2 con gvSIG y QGIS
Avances en la integración de GGL2 con gvSIG y QGISgeomatico
 
Alg 2 : multiply ing & factoring
Alg 2 : multiply ing & factoringAlg 2 : multiply ing & factoring
Alg 2 : multiply ing & factoringpaksukur
 
Shortest path problem
Shortest path problemShortest path problem
Shortest path problemIfra Ilyas
 

What's hot (19)

Practica productos notables
Practica productos notablesPractica productos notables
Practica productos notables
 
Seg code
Seg codeSeg code
Seg code
 
Chap10alg
Chap10algChap10alg
Chap10alg
 
Quill - 一個 Scala 的資料庫存取利器
Quill - 一個 Scala 的資料庫存取利器Quill - 一個 Scala 的資料庫存取利器
Quill - 一個 Scala 的資料庫存取利器
 
Translating Linear Functions "I AM" Answer Key!
Translating Linear Functions "I AM" Answer Key!Translating Linear Functions "I AM" Answer Key!
Translating Linear Functions "I AM" Answer Key!
 
Annals of Statistics読み回 第一回
Annals of Statistics読み回 第一回Annals of Statistics読み回 第一回
Annals of Statistics読み回 第一回
 
Bellman Ford Routing Algorithm-Computer Networks
Bellman Ford Routing Algorithm-Computer NetworksBellman Ford Routing Algorithm-Computer Networks
Bellman Ford Routing Algorithm-Computer Networks
 
Caropro
CaroproCaropro
Caropro
 
Find Transitive closure of a Graph Using Warshall's Algorithm
Find Transitive closure of a Graph Using Warshall's AlgorithmFind Transitive closure of a Graph Using Warshall's Algorithm
Find Transitive closure of a Graph Using Warshall's Algorithm
 
B tree, Hamiltonian & Eulerian path presentation
B tree, Hamiltonian & Eulerian path presentationB tree, Hamiltonian & Eulerian path presentation
B tree, Hamiltonian & Eulerian path presentation
 
Number Conversions (MOTM 2010.12)
Number Conversions (MOTM 2010.12)Number Conversions (MOTM 2010.12)
Number Conversions (MOTM 2010.12)
 
Method of characteristic for bell nozzle design
Method of characteristic for bell nozzle designMethod of characteristic for bell nozzle design
Method of characteristic for bell nozzle design
 
TuringSlashPython - Undergraduate Final Year Project
TuringSlashPython - Undergraduate Final Year ProjectTuringSlashPython - Undergraduate Final Year Project
TuringSlashPython - Undergraduate Final Year Project
 
Fatores2a 10
Fatores2a 10Fatores2a 10
Fatores2a 10
 
Avances en la integración de GGL2 con gvSIG y QGIS
Avances en la integración de GGL2 con gvSIG y QGISAvances en la integración de GGL2 con gvSIG y QGIS
Avances en la integración de GGL2 con gvSIG y QGIS
 
Budynas sm ch01
Budynas sm ch01Budynas sm ch01
Budynas sm ch01
 
Experement no 6
Experement no 6Experement no 6
Experement no 6
 
Alg 2 : multiply ing & factoring
Alg 2 : multiply ing & factoringAlg 2 : multiply ing & factoring
Alg 2 : multiply ing & factoring
 
Shortest path problem
Shortest path problemShortest path problem
Shortest path problem
 

Similar to Dynamic programming

unit-4-dynamic programming
unit-4-dynamic programmingunit-4-dynamic programming
unit-4-dynamic programminghodcsencet
 
Matrix chain multiplication in design analysis of algorithm
Matrix chain multiplication in design analysis of algorithmMatrix chain multiplication in design analysis of algorithm
Matrix chain multiplication in design analysis of algorithmRajKumar323561
 
parameterized complexity for graph Motif
parameterized complexity for graph Motifparameterized complexity for graph Motif
parameterized complexity for graph MotifAMR koura
 
VHDL and Cordic Algorithim
VHDL and Cordic AlgorithimVHDL and Cordic Algorithim
VHDL and Cordic AlgorithimSubeer Rangra
 
Order-Picking-Policies.ppt
Order-Picking-Policies.pptOrder-Picking-Policies.ppt
Order-Picking-Policies.pptTaspiyaAfroz
 
1_Asymptotic_Notation_pptx.pptx
1_Asymptotic_Notation_pptx.pptx1_Asymptotic_Notation_pptx.pptx
1_Asymptotic_Notation_pptx.pptxpallavidhade2
 
815.07 machine learning using python.pdf
815.07 machine learning using python.pdf815.07 machine learning using python.pdf
815.07 machine learning using python.pdfSairaAtta5
 
"Mesh of Periodic Minimal Surfaces in CGAL."
"Mesh of Periodic Minimal Surfaces in CGAL.""Mesh of Periodic Minimal Surfaces in CGAL."
"Mesh of Periodic Minimal Surfaces in CGAL."Vissarion Fisikopoulos
 
Computer Graphics Unit 1
Computer Graphics Unit 1Computer Graphics Unit 1
Computer Graphics Unit 1aravindangc
 
Branch and bounding : Data structures
Branch and bounding : Data structuresBranch and bounding : Data structures
Branch and bounding : Data structuresKàŕtheek Jåvvàjí
 
implementing the encryption in the JAVA.ppt
implementing the encryption in the JAVA.pptimplementing the encryption in the JAVA.ppt
implementing the encryption in the JAVA.pptMuhammadAbdullah311866
 

Similar to Dynamic programming (20)

unit-4-dynamic programming
unit-4-dynamic programmingunit-4-dynamic programming
unit-4-dynamic programming
 
MFCS-17.ppt
MFCS-17.pptMFCS-17.ppt
MFCS-17.ppt
 
algorithm Unit 3
algorithm Unit 3algorithm Unit 3
algorithm Unit 3
 
Unit 3 daa
Unit 3 daaUnit 3 daa
Unit 3 daa
 
Matrix chain multiplication in design analysis of algorithm
Matrix chain multiplication in design analysis of algorithmMatrix chain multiplication in design analysis of algorithm
Matrix chain multiplication in design analysis of algorithm
 
parameterized complexity for graph Motif
parameterized complexity for graph Motifparameterized complexity for graph Motif
parameterized complexity for graph Motif
 
VHDL and Cordic Algorithim
VHDL and Cordic AlgorithimVHDL and Cordic Algorithim
VHDL and Cordic Algorithim
 
Order-Picking-Policies.ppt
Order-Picking-Policies.pptOrder-Picking-Policies.ppt
Order-Picking-Policies.ppt
 
Lecture11
Lecture11Lecture11
Lecture11
 
1_Asymptotic_Notation_pptx.pptx
1_Asymptotic_Notation_pptx.pptx1_Asymptotic_Notation_pptx.pptx
1_Asymptotic_Notation_pptx.pptx
 
Lec39
Lec39Lec39
Lec39
 
815.07 machine learning using python.pdf
815.07 machine learning using python.pdf815.07 machine learning using python.pdf
815.07 machine learning using python.pdf
 
Asymptotic Notation
Asymptotic NotationAsymptotic Notation
Asymptotic Notation
 
"Mesh of Periodic Minimal Surfaces in CGAL."
"Mesh of Periodic Minimal Surfaces in CGAL.""Mesh of Periodic Minimal Surfaces in CGAL."
"Mesh of Periodic Minimal Surfaces in CGAL."
 
Computer Graphics Unit 1
Computer Graphics Unit 1Computer Graphics Unit 1
Computer Graphics Unit 1
 
Hu2514081412
Hu2514081412Hu2514081412
Hu2514081412
 
Branch and bounding : Data structures
Branch and bounding : Data structuresBranch and bounding : Data structures
Branch and bounding : Data structures
 
implementing the encryption in the JAVA.ppt
implementing the encryption in the JAVA.pptimplementing the encryption in the JAVA.ppt
implementing the encryption in the JAVA.ppt
 
AsymptoticAnalysis.ppt
AsymptoticAnalysis.pptAsymptoticAnalysis.ppt
AsymptoticAnalysis.ppt
 
8150.graphs
8150.graphs8150.graphs
8150.graphs
 

Recently uploaded

URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 

Recently uploaded (20)

URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 

Dynamic programming

  • 1. Nadar Saraswathi college of arts and science Theni Department of CS and IT Presented by: S.Swetha I M.sc(IT) Dynamic programming
  • 2. Title: Reliability design. The Traveling salesperson . Flow shop schedulin g.
  • 3. Reliability design • In reliability design, the problem is to design a system that is composed of several devices connected in series. I f we imagine that r1 is the reliability o f the device.
  • 4. Reliability design • Solve a problem with a multiplicative optimization function • Several devices are connected in series • ri be the reliability of device Di • Reliability of the entire system • Duplicate : multiple copies of the same device type are connected in parallel use switching circuits
  • 5. Reliability design n devices Di, 1<=i<=n, connected in series Multiple devices connected in parallel in each stage
  • 6. Multiple copies stage in contain mi copies of Di P(all mi malfunction) = (1-ri)mi Reliability of stage i =1-(1-ri)mi
  • 7. Reliability design • Maximum allowable cost of the system Maximize Subject to Mi >=1 and integer, 1<=i<=n • Assume ci>0 ui =          i n j i c c c c / ) ( 1
  • 8. Travelling salesperson • In the traveling salesman Problem, a salesman must visits n cities. We can say that salesman wishes to make a t our or Hamiltonian cycle, visiting eac h city exactly once and finishing at th e city he starts from. There is a non- negative cost c (i, j) to travel from the city i to city j.
  • 9. The traveling salesperson problem • mail pickup – n+1 vertex graph – Edge <i,j> distance from i to j – Tour of minimum cost • Permutation problem – n! different permutation of n object while there are 2n different subset of n object n! > O(2n)
  • 10. The traveling salesperson problem • Tour : simple path that starts and ends at v ertex 1 • Every tour : edge<1,k> for some k v-{1} e ach <k,1> • Optimal tour : path(k,1) – Shortest k to 1 path all the vertices in V-{1,k} • Let g(i,s) be the length of a shortest path starting at vertex i, going through all vertices in S and term inating at vertex 1 })} , 1 { , ( { min }) 1 { , 1 ( 1 2 k V k g c V g k n k       })} { , ( { min ) , ( j S j g c S i g ij S j     
  • 11. The traveling salesperson problem • Directed graph and edge length matrix c
  • 12. The traveling salesperson problem • Thus g(2, ) = c21 = 5, g(3, ) = c31 = 6, and g(4, ) = c41 = 8. We obtain g(2,{3}) = c23 + g(3, ) = 15 g(2,{4}) = 18 g(3,{2}) = 18 g(3,{4}) = 20 g(4,{2}) = 13 g(4,{3}) = 15 g(2,{3,4}) = min{c23+g(3,{4}),c24+g(4,{3})} = 25 g(3,{2,4}) = min{c32+g(2,{4}),c34+g(4,{2})} = 25 g(4,{2,3}) = min{c42+g(2,{3}),c43+g(3,{2})} = 23 g(1,{2,3,4}) = min{c12+g(2,{3,4}),c13+g(3,{2,4}),c14+g(4,{2,3})} = min(35,40,43} = 35    
  • 13. The traveling salesperson problem • Let N be the number of g(i,s), that have to be com puted before g(1,V-{1}) i, computed for each valu e of |s| • n-1 choices of i • The number of distinct sets of S of size k not inclu ding 1 and i  i          k n 2 2 2 0 2 ) 1 ( ) 2 )( 1 (           n n k n k n n N ) 2 ( lg 2 n n orithm a   ) 2 ( ) ( n n O need space 
  • 14. Flow shop scheduling • Flow-shop scheduling is a special ca se of job-shop scheduling where ther e is strict order of all operations to be performed on all jobs. Flow-shop sch eduling may apply as well to producti on facilities as to computing designs.
  • 15. Flow shop scheduling • The process of a job requires the perf ormance of several distinct tasks. • In a general flow shop we may have n jobs each requiring m tasks T1i,T2i,... .......Tmi,1≤i≤n, to be performed. • Tji is to be performed on processor pj , 1≤j≤m.
  • 16. Two jobs have to be scheduled on thre e processors. The task time are given b y the matrix j j= [2 0] [3 3] [5 2]