DAABook
DAABook
net/publication/305440962
CITATIONS READS
2 365
1 author:
Digambar Padulkar
Vidya Pratishthan’s, College of Engineering, Baramati
5 PUBLICATIONS 2 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Electricity Transformer Life Time Estimation with Association Rule Mining View project
All content following this page was uploaded by Digambar Padulkar on 20 July 2016.
Traveling Big O
Salesman
Design and
Knapsack Dynamic Asymptotic
Problem Programming
Analysis of Notations
Thet
Algorithms
Multistage
Omega Ω
Graph
Divide and
Greedy Sorting
Conquer Techniques
Algorithms
Algorithms
Job
Sequencing
Problems
Image Data
Processing Mining
Knapsack Algorithms Algorithms
Problems
2
Contents
1 Dynamic Programming 5
1.1 Principle of optimality:- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.3 Optimal Binary Search Tree(OBST) . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.4 Multistage Graph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.5 0/1 Knapsack . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
1.6 Travelling Sales Person Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
1.7 Flow Shop Scheduling Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
2 Backtracking Algorithms 35
2.1 4-Queens Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
2.2 Graph Coloring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
2.3 Graph Coloring-4 nodes- 3 -colors . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
2.4 Hamiltonian Cycle/Circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
2.5 0/1 Knapsack with Backtracking . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
2.5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
2.5.2 Solved example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
4 NP-Completeness 79
4.1 NP-Completeness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
4.1.1 Satisfiability Principles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
4.1.2 Node Cover Decision Problem . . . . . . . . . . . . . . . . . . . . . . . . . 87
4.1.3 Chromatic Number Decision Problem . . . . . . . . . . . . . . . . . . . . 91
4.2 NP-Hard Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
4.3 Cooks Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
3
4 CONTENTS
1
Dynamic Programming
Dynamic programming is an algorithm that can be used when the solution to the problem
can be viewed as result of sequence of decisions. In dynamic programming there is possibility
of getting many more sub sequences, they are not leading to the optimal result. some of them
many satisfy the required criteria(principle of optimality) but not resulting as whole sequence
as optimal one.
1.2 Introduction
5
1.3. OPTIMAL BINARY SEARCH TREE(OBST) 7
Backtracking Algorithms
35
2.2. GRAPH COLORING 39
s⊆S (2.3)
3.1 Introduction
65
70 CHAPTER 3. BRANCH AND BOUND ALGORITHMS
NP-Completeness
4.1 NP-Completeness
4.1.1 Satisfiability Principles
79
4.1. NP-COMPLETENESS 87
Parallel Algorithms
111
View publication stats