“High Dimension CNF To DNF Conversion in Grid Computing”

23
“High Dimension CNF To DNF Conversion in Grid Computing” Presented By: Mayuresh S. Pardeshi SY M.Tech, CSE – 23 Department of Computer Science and Engineering. Walchand College of Engineering, Sangli.

description

“High Dimension CNF To DNF Conversion in Grid Computing”. Presented By: Mayuresh S. Pardeshi SY M.Tech , CSE – 23. - PowerPoint PPT Presentation

Transcript of “High Dimension CNF To DNF Conversion in Grid Computing”

Page 1: “High Dimension CNF To DNF Conversion in Grid Computing”

“High Dimension CNF To DNF Conversion in Grid Computing”

Presented By: Mayuresh S. Pardeshi

SY M.Tech, CSE – 23

Department of Computer Science and Engineering. Walchand College of Engineering, Sangli.

Page 2: “High Dimension CNF To DNF Conversion in Grid Computing”

I. IntroductionII. ScheduleIII. ObjectivesIV. Literature surveyV. MethodologyVI. Study of logic parallel algorithms VII. Results

Contents

Page 3: “High Dimension CNF To DNF Conversion in Grid Computing”

Problem Statement

Design and implementation of High dimension optimal conjunctive normal form to optimal(prime implicants) disjunctive normal form conversion which is an “NP hard problem conversion to an NP complete”.

Page 4: “High Dimension CNF To DNF Conversion in Grid Computing”

I. Broad AreaConversion of NP hard problem to NP complete

II. Need for research To achieve maximum possible performance for simplification

III. SignificanceVast fieldImpact

IV. Concepts conjunctive normal form disjunctive normal form

Introduction

Page 5: “High Dimension CNF To DNF Conversion in Grid Computing”

Schedule:

Page 6: “High Dimension CNF To DNF Conversion in Grid Computing”

Objectives:

1. Achieve maximum simplification of Boolean functions.2. Operations on high dimension data as much as

possible.3. Improve performance by utilizing grid resources in

parallel.

Page 7: “High Dimension CNF To DNF Conversion in Grid Computing”

Literature Survey: On converting CNF to DNF

[1] References Wegener, I. , “The Complexity of Boolean Functions” , John Wiley & Sons Ltd, and B. G. Teubner, Stuttgart..References Peter Bro Miltersen, Jaikumar Radhakrishnan and Ingo Wegener “ On Converting CNF To DNF” Electronic Colloquium on Computational Complexity, Report No. 17 (2003)

[2] References Hisayuki TATSUMI , Masahiro MIYAKAWA Masao MUKAIDONO , ”Upper and Lower Bounds on the Number of Disjunctive Forms” , Proceedings of the 36th International Symposium on Multiple-Valued Logic (ISMVL’06), IEEE computer society.

Page 8: “High Dimension CNF To DNF Conversion in Grid Computing”

Methodology:

Page 9: “High Dimension CNF To DNF Conversion in Grid Computing”

Multi-Line Boole’s algorithm:

Page 10: “High Dimension CNF To DNF Conversion in Grid Computing”

Example:

We save the first step and define f B∈ 4 by Q4 , the set of implicants of length 4.

Q4: Q4,4 = ø , Q4,3 = {a b c d ; a b c d }, Q4,2 = {a b c d ; a b c d ; a b c d },Q4,1 = {a b c d ; a b c d ; a b c d}, Q4,0 = {a b c d} .

Q3: Q3,3 = ø , Q3,2 = {a b c ; a b c ; b c d } Q3,1 = {a b d ; a c d ; a b c ; a c d ; b c d }, Q3,0 = {a b c ; a c d ; b c d },

P4 = ø. Q2: Q2,2 = ø , Q2;1 = {b c} , Q2;0 = {c d ; a c}

P3 = {a b c; a b d} .Q1 = ø .P2 = Q2 .

 PI(f) = { a b ; ac ; a d }:

Page 11: “High Dimension CNF To DNF Conversion in Grid Computing”

Results for multi-line boolean algorithm:

Page 12: “High Dimension CNF To DNF Conversion in Grid Computing”

CNF algorithm:

Page 13: “High Dimension CNF To DNF Conversion in Grid Computing”

Result of CNF conversion:Problem statement taken is:∀x [ y Animal(y) Loves(x, y)] [ y Loves(y, x)]∀ ⇒ ⇒ ∃

Solution achieved using coding:1. Eliminate implications: x [¬ y ¬Animal(y) Loves(x, y)] [ y Loves(y, x)]∀ ∀ ∨ ∨ ∃

2. Move ¬ inwards• ∀x [ y ¬(¬Animal(y) Loves(x, y))] [ y Loves(y, x)]∃ ∨ ∨ ∃• ∀x [ y ¬¬Animal(y) ¬Loves(x, y)] [ y Loves(y, x)] (De Morgan)∃ ∧ ∨ ∃• ∀x [ y Animal(y) ¬Loves(x, y)] [ y Loves(y, x)] (double negation)∃ ∧ ∨ ∃

3. Standardize variables: x [ y Animal(y) ¬Loves(x, y)] [ z Loves(z, x)]∀ ∃ ∧ ∨ ∃

4. Skolemization: x [Animal(F(x)) ¬Loves(x, F(x))] [Loves(G(x), x)]∀ ∧ ∨

5. Drop universal quantifiers: [Animal(F(x)) ¬Loves(x, F(x))] [Loves(G(x), x)]∧ ∨

6. Distribute over : [Animal(F(x)) Loves(G(x), x)] [¬Loves(x, F(x)) Loves(G(x), x)]∨ ∧ ∨ ∧ ∨

Page 14: “High Dimension CNF To DNF Conversion in Grid Computing”

DNF algorithm:

Page 15: “High Dimension CNF To DNF Conversion in Grid Computing”

Various parallel algorithms for logic implementation :

GridSAT ManySAT SArTagnan: A Parallel portfolio solver Plingeling

Page 16: “High Dimension CNF To DNF Conversion in Grid Computing”

GridSAT

Sequential algorithm

Page 17: “High Dimension CNF To DNF Conversion in Grid Computing”

GridSAT Parallel Version:

Page 18: “High Dimension CNF To DNF Conversion in Grid Computing”

SArTagnan: A Parallel portfolio solver

Page 19: “High Dimension CNF To DNF Conversion in Grid Computing”

Plingeling :

Multi Threaded version For each worker a separate duplicated

instance thread is generated Send/Receive generated clause. Function: Produce, Consume and Terminate Strategies used are differentiated around

the amount of pre-processing, random seeds and variables branching.

Page 20: “High Dimension CNF To DNF Conversion in Grid Computing”

Shared Clause architecture:

Page 21: “High Dimension CNF To DNF Conversion in Grid Computing”
Page 22: “High Dimension CNF To DNF Conversion in Grid Computing”

REFERENCES:

[1] References Wegener, I. , “The Complexity of Boolean Functions” , John Wiley & Sons Ltd, and B. G. Teubner, Stuttgart..References Peter Bro Miltersen, Jaikumar Radhakrishnan and Ingo Wegener “ On Converting CNF To DNF” Electronic Colloquium on Computational Complexity, Report No. 17 (2003)

[2] References Hisayuki TATSUMI , Masahiro MIYAKAWA Masao MUKAIDONO , ”Upper and Lower Bounds on the Number of Disjunctive Forms” , Proceedings of the 36th International Symposium on Multiple-Valued Logic (ISMVL’06), IEEE computer society.

[3] References Paul Beame, “A Switching Lemma Primer”, University of Toronto.

[4] References Rajat Auora and Michael S. Hsiao, “CNF Formula Simplification Using Implication Reasoning" 0-7803-8714-7104 2004 IEEE Transactions.

[5] References Kenneth H. Rosen, “Discrete Mathematics and It's Applications” , 6th Edition, CRC Press.

[6] References Wahid Chrabakh , Rich Wolski , “GrADSAT: A Parallel SAT Solver for the Grid”, UCSB Computer Science Technical Report Number 2003-05, Department of Computer Science, University of California Santa Barbara

[7] References R. Zuim, J.T. de Sousa and C.N. Coelho, “Decision heuristic for Davis Putnam, Loveland and Logemann algorithm satisfiability solving based on cube subtraction”, IET Comput. Digit. Tech., 2008, 2, (1), pp. 30–39

Page 23: “High Dimension CNF To DNF Conversion in Grid Computing”

Thank You!