30
1 “High Dimension CNF To DNF Conversion in Grid Computing” Presented By: Mayuresh S. Pardeshi FY M.Tech CSE – 23 Walchand College of Engineering, Sangli.

“High Dimension CNF To DNF Conversion in Grid Computing”

  • Upload
    truman

  • View
    28

  • Download
    1

Embed Size (px)

DESCRIPTION

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

Citation preview

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

1

“High Dimension CNF To DNF Conversion in Grid Computing”

Presented By: Mayuresh S. Pardeshi

FY M.Tech CSE – 23

Walchand College of Engineering, Sangli.

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

2

Introduction of Topic Literature Survey

I. GrADSATII. DPLL SAT

Applications Summary

Contents

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

I. GrADSAT : A Parallel SAT Solver for Grid

3

SAT Concept “Hard Problems” Parallelization (PaSAT) Techniques:

i. Scalable distributedii. Adaptive resource scheduling

GrADS : Grid application development software.

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

OnConverting

CNF To DNF

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

Concepts:

Literals, terms and clauses. CNF and DNF succinctly. CNF –

DNF –

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

Functions

CNF with m clauses with k literals converted to DNF with K m .

dnfsize(f) and cnfsize(f) are fundamental complexity measures.

Algorithm decides SAT of a CNF with n variables and m clauses in time mo(1)2cn .

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

Monotone case:

f : {0,1}n -> {0,1} No. of prime clauses of f is equal to

cnfsize(f) and prime implicants of f is equal to dnfsize(f).

Vertex cover Blow-up when going from CNF to DNF is

large:

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

2. Functions with large blow-up

Functions with small cnfsize but large dnfsize.

Functions with conjunction of small parity and majority functions.

Lemma - to estimate cnfsize and dnfsize of such functions.

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

Lemma 1

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

Corollary 1

1) Let 2n≤m≤2n-1. There is a function f with cnfsize(f) ≤ m and dnfsize(f)≥2[n-2n/log(m/n) ]

2) Let 4n ≤ m ≤ (n / [n/2]). Then, there is a monotone function h with cnfsize(h) ≤ m and dnfsize(h) ≥ 2[n-nloglog(m/n) ]/log(m/n) – log(m/n) .

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

3. Upper Bounds and Blow-up

Lemma-2: For all S c V and all boolean functions f with

variable V,dnfsize(f) ≤ ΣpєRS ^V dnfsize(fp).

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

3.2 Small DNFs from Small CNFs

Theorem 2: There is a constant c > 0, ST for all large n, and m є [104n,210^4n],

dnfsize(m,n) ≤ 2n-c[n/log(m/n)] .

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

Various algorithms:

14

1. CNF Algorithm:

1. Elimination of ! and $ by means of:• A $ B (A ! B) ^ (B ! A),• A ! B ¬A _ B2. push ¬ inwards by means of(a) ¬(A ^ B) ¬A _ ¬B (De Morgan)(b) ¬(A _ B) ¬A ^ ¬B (De Morgan)(c) ¬¬A A (double negation)3. use the distributive law A_(B^C) (A_B)^(A_C) to effect the conversationto CNF.

2. DNF Algorithm:1.Use inverters to generate all possible literals (the six vertical wires on the left in Fig. 1).2.Draw an AND gate for each minterm. The fan-in (number of inputs) of each AND gate is equal to the number of input variables.3. Connect the outputs of all the AND gates to a single OR gate.4. Connect the inputs of each AND gate to a pattern of literals in such a way that it will generate a 1 when the pattern of input values matches the particular minterm assigned to it.

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

3. Boole algorithm:1) Draw AND, OR, INVERTER implementation. First draw out an implementation of the boolean

function using AND gates, OR gates and INVERTERS. Any implementation that uses only those three gate types will work. One way to implement a boolean function using AND's, OR's and INVERTERS is to build the DNF of the boolean function from the truth table that describes the function DNF, is also called Sum of Products form. Propositional Logic: Normal Forms gives a succinct treatment of normal forms and of how to go from a truth table to DNF.

2) Apply DeMorgan's Law. Apply DeMorgan's Law to the circuit by using the equivalences in the first two rows of the Figure above. To create a NAND only circuit, use the transforms in the left box, and for a NOR only circuit use the transforms in the right-hand box.

3) Remove redundant inverters: Any time that two inverters are in series (an inverted output goes directly in to an inverted input), remove both of them, since they cancel each other out. Replace remaining inverters.

4) Replace any remaining inverters with the equivalent NAND or NOR implementation (the third row of the Figure).

15

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

4. Simplification Algorithm:1. Evaluation of all vertices (computing weights). 2. Arrangement of all vertices into a hash table. 3. Selection of the most proper vertex for removal. 4. Removal of the selected vertex from the hash table and triangular mesh. 5. Removal of the surrounding triangles of the removed vertex. 6. Triangulation of an empty space; empty space is a consequence of removed triangles. 7. Reevaluation of neighbouring vertices of the removed vertex. 8. Rearrangement of reevaluated vertices in the hash table. Returning to step 3 until the

final condition is reached.

5. K- Mean Algorithm:

1. Place K points into the space represented by the objects that are being clustered. These points represent initial group centroids.

2. Assign each object to the group that has the closest centroid.3. When all objects have been assigned, recalculate the positions of the K centroids.4. Repeat Steps 2 and 3 until the centroids no longer move. This produces a separation of the objects into groups

from which the metric to be minimized can be calculated.

16

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

17

I. zChaff and GrADSAT :

I. Partitioning a problem space. II. Sharing a learned clauses. III. GrADSAT Implementation.

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

II. Experimental Setup and Results:

18

Independent testbed of Grid

Degree of Sharing

Benchmarks:

- 22 industrial instances

- 15 random instances

Group of Clusters

Time-Out

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

19

III. Results:

Figure 2. Problems solved by zChaff and GrADSAT

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

20

Figure 3. Problems solved by GrADSAT and Remaining problems

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

II. Decision Heuristic for DPLL-SAT Solving Based on Cube Substraction.

21

Cube Concept zChaff solver with instances from DiMAC, IBM_CNF Effective algorithm

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

DPLL:

Well known NP-Complete Pruning Search Space VSIDS (Variable State Independent Decaying Sum) Berkmin Counter CBH (Clause Based Heuristic) D-Sharp Algorithm

22

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

II. Solving SAT using D-SHARP:

De-Morgan’s Law to DNF

23

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

III. D-SHARP vs. DPLL:

24

X1=0

X2=0

X3=-1

X1=1

X2=1

X3=0

X4=0SEARCH SUBSPACE WHERE X1=1

Search subspace where x1=0 and x2=1

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

IV. Results:

25Table 1. Results on IBM_CNF BMC

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

26

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

Summary:

As we have seen various concepts and research’s regarding CNF to DNF, we have concluded that the polynomials cannot process upto 5 to 10 variables.

So we will be targetting to solve more than 10 variable conversion in parallel environment.

27

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

28

REFERENCES:

1. Global Grid Forum (http://www.ggf.org)

2. The Globus Alliance ( http://www.globus.org)

3. “The Physiology of the Grid”. Ian Foster, Carl Kesselman, Jeffrey M. Nick, Steven Tuecke. http://www.globus.org/research/papers/ogsa.pdf

4. “The Anatomy of the Grid”. Ian Foster, Carl Kesselman, Steven Tuecke. http://www.globus.org/research/papers/anatomy.pdf

5. Web Services Resource Framework - http://www.globus.org/wsrf/

6. 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. 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 29: “High Dimension  CNF To DNF Conversion in Grid Computing”

Any Questions

29

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

Thank You

30