Memory Allocation of Multi programming using Permutation Graph By Bhavani Duggineni.

Slides:



Advertisements
Similar presentations
Problems and Their Classes
Advertisements

Minimum Clique Partition Problem with Constrained Weight for Interval Graphs Jianping Li Department of Mathematics Yunnan University Jointed by M.X. Chen.
VLSI DESIGN & COMPARABILITY GRAPHS By Deepak Katta.
Interval, circle graphs and circle graph recognition using split decomposition Presented by Steven Correia Kent state university Nov
Orthogonal Drawing Kees Visser. Overview  Introduction  Orthogonal representation  Flow network  Bend optimal drawing.
1 NP-completeness Lecture 2: Jan P The class of problems that can be solved in polynomial time. e.g. gcd, shortest path, prime, etc. There are many.
The Theory of NP-Completeness
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
Approximation Algorithms Chapter 5: k-center. Overview n Main issue: Parametric pruning –Technique for approximation algorithms n 2-approx. algorithm.
CS774. Markov Random Field : Theory and Application Lecture 17 Kyomin Jung KAIST Nov
Train DEPOT PROBLEM USING PERMUTATION GRAPHS
Complexity 16-1 Complexity Andrei Bulatov Non-Approximability.
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
02/01/11CMPUT 671 Lecture 11 CMPUT 671 Hard Problems Winter 2002 Joseph Culberson Home Page.
Computability and Complexity 23-1 Computability and Complexity Andrei Bulatov Search and Optimization.
Complexity Theory CSE 331 Section 2 James Daly. Reminders Project 4 is out Due Friday Dynamic programming project Homework 6 is out Due next week (on.
Perfect Graphs Lecture 23: Apr 17. Hard Optimization Problems Independent set Clique Colouring Clique cover Hard to approximate within a factor of coding.
Vertex Cover, Dominating set, Clique, Independent set
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 23 Instructor: Paul Beame.
3rd AMORE meeting, Leiden AMORE meeting, 1-4 October, Leiden, Holland A graph theoretical approach to shunting problems L. Koci, G. Di Stefano Dipartimento.
Analysis of Algorithms CS 477/677
Comparability Graphs and Permutation Graphs Martin Charles Golumbic.
COE 561 Digital System Design & Synthesis Resource Sharing and Binding Dr. Aiman H. El-Maleh Computer Engineering Department King Fahd University of Petroleum.
ECE Synthesis & Verification - Lecture 4 1 ECE 697B (667) Spring 2006 ECE 697B (667) Spring 2006 Synthesis and Verification of Digital Circuits Allocation:
Graph Theory Ch.5. Coloring of Graphs 1 Chapter 5 Coloring of Graphs.
ARCHEOLOGICAL SERIATION AND INTERVAL GRAPHS
Chapter 5: Computational Complexity of Area Minimization in Multi-Layer Channel Routing and an Efficient Algorithm Presented by Md. Raqibul Hasan Std No.
The Maximum Independent Set Problem Sarah Bleiler DIMACS REU 2005 Advisor: Dr. Vadim Lozin, RUTCOR.
Circle Graph and Circular Arc Graph Recognition. 2/41 Outlines Circle Graph Recognition Circular-Arc Graph Recognition.
Physical Mapping of DNA Shanna Terry March 2, 2004.
MCS312: NP-completeness and Approximation Algorithms
MAPS OF DNA AND INTERVAL GRAPHS by Akshita Gurram.
Graph Coalition Structure Generation Maria Polukarov University of Southampton Joint work with Tom Voice and Nick Jennings HUJI, 25 th September 2011.
Computational Complexity Polynomial time O(n k ) input size n, k constant Tractable problems solvable in polynomial time(Opposite Intractable) Ex: sorting,
1 The Theory of NP-Completeness 2012/11/6 P: the class of problems which can be solved by a deterministic polynomial algorithm. NP : the class of decision.
Nattee Niparnan. Easy & Hard Problem What is “difficulty” of problem? Difficult for computer scientist to derive algorithm for the problem? Difficult.
Graphs represented by words Sergey Kitaev Reykjavik University Sobolev Institute of Mathematics Joint work with Artem Pyatkin Magnus M. Halldorsson Reykjavik.
Approximation Algorithms
CSE 024: Design & Analysis of Algorithms Chapter 9: NP Completeness Sedgewick Chp:40 David Luebke’s Course Notes / University of Virginia, Computer Science.
Restricted Track Assignment with Applications 報告人:林添進.
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
CSCI 3160 Design and Analysis of Algorithms Tutorial 10 Chengyu Lin.
Data Structures & Algorithms Graphs
Graph Colouring L09: Oct 10. This Lecture Graph coloring is another important problem in graph theory. It also has many applications, including the famous.
Lecture 6 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
Lecture 12 P and NP Introduction to intractability Class P and NP Class NPC (NP-complete)
CS 3343: Analysis of Algorithms Lecture 25: P and NP Some slides courtesy of Carola Wenk.
CSE 589 Part V One of the symptoms of an approaching nervous breakdown is the belief that one’s work is terribly important. Bertrand Russell.
Lecture 25 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
NP-completeness NP-complete problems. Homework Vertex Cover Instance. A graph G and an integer k. Question. Is there a vertex cover of cardinality k?
Chapter 11 Introduction to Computational Complexity Copyright © 2011 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1.
Given this 3-SAT problem: (x1 or x2 or x3) AND (¬x1 or ¬x2 or ¬x2) AND (¬x3 or ¬x1 or x2) 1. Draw the graph that you would use if you want to solve this.
Introduction to NP Instructor: Neelima Gupta 1.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
The NP class. NP-completeness Lecture2. The NP-class The NP class is a class that contains all the problems that can be decided by a Non-Deterministic.
Timetable Problem solving using Graph Coloring
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
The NP class. NP-completeness
NP-completeness Ch.34.
Chapter 10 NP-Complete Problems.
Vertex Cover, Dominating set, Clique, Independent set
NP-Completeness Yin Tat Lee
ICS 353: Design and Analysis of Algorithms
By Santhosh Reddy Katkoori
NP-Completeness Yin Tat Lee
Copyright © Cengage Learning. All rights reserved.
Complexity Theory in Practice
Distance-preserving Subgraphs of Interval Graphs
Complexity Theory in Practice
Presentation transcript:

Memory Allocation of Multi programming using Permutation Graph By Bhavani Duggineni

Agenda  Problem statement  Graph Construction  Relation to graph problem  NP-Hard problem  Special Properties  Depicting graph solution  Comments

Problem Statement  Multiprogramming – Several programs are resident in main memory at the same time – When one program executes and needs I/O, it relinquishes CPU to another program  Some important questions from the memory management viewpoint: – How does one program ask for (more) memory Allocation

Problem Statement  Example Problem:  In this problem we need to find the cheapest shifting of the memory requirements of 5 programs at a certain time in a multiprogramming computer. So that the order is preserved and no overlap remains. Program Number Starting Address(x i ) Length Required(L i )

Graph Construction:

Contd..

Graph Construction: Program Number Starting Address(x i ) Length Required(L i )

Relation to the graph Problem:

Permutation Graph:  a permutation graph is a graph whose vertices represent the elements of a permutation, and whose edges represent pairs of elements that are reversed by the permutation. Permutation graphs may also be defined geometrically, as the intersection graphs of line segments whose endpoints lie on two parallel lines.  Ex: The permutation (4,3,5,1,2) and the corresponding permutation graph

Permutation Graph Algorithms:  Max Independent Set corresponds to the longest increasing sequence in a permutation | O(n log n)  Max Clique : longest decreasing sequence  Coloring : chromatic number = max clique (perfect graphs)  Tree width can be solved in polynomial time.

Relation to the graph Problem:

Max clique Procedure:

Solution to the Problem: Using Max Clique Procedure: First we have c(1) = 1 Since 2 is connected to 1,C(2)=C1+1 So C(2)=2 And Since 3 is not connected among 1 and 2, C(3)=0 And Vertex 4 is connected to 1,3.The maximum value of the corresponding c's is 1 so C(4)=C(1)+1=2 Similarly Vertex 5 is connected to 1,2,3,4.The maximum value of the corresponding c's is 2(among 2 and 4) so C(5)=C(4)+1=3 We now know that a maximum clique is of size 3 and its highest member is the vertex 5. We search for a lower vertex connected to it whose c value is 2; this is vertex 4, etc. In this way we trace a maximum clique {1,4,5}

An NP- Hard problem  It takes many years to determine all possible permutations and obtain correct order.  The problem is solvable in polynomial time on Permutation graph that is NP-complete while it is NP-Hard in general case.

Special Properties: Permutation graphs have several other equivalent characterizations:  A graph G is a permutation graph if and only if G is a circle graph that admits an equator, i.e., an additional chord that intersects every other chord.  A graph G is a permutation graph if and only if both G and its complement are comparability graphs.  A graph G is a permutation graph if and only if it is the comparability graph of a partially ordered set that has order dimension at most two.  If a graph G is a permutation graph, so is its complement. A permutation that represents the complement of G may be obtained by reversing the permutation representing G.

Depicting Graph Solution: Program Number Starting Address(x i ) Length Required(L i ) Size of a maximum clique whose highest vertex is i

Comments  Many optimization problems become polynomial on permutation graphs  Representations (intersection models) based on modular decompositions.  Additional information is required to exactly determine one order from the few permutations.

References  S. EVEN AND A. PNUELI and A. LEMPEL :Permutation Graphs and Transitive Graphs  Wikipedia:

THANK YOU