Jump to content

File:BDD Variable Ordering VisuBDD Bad.png

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

BDD_Variable_Ordering_VisuBDD_Bad.png (518 × 32 pixels, file size: 288 bytes, MIME type: image/png)

Summary

Description Visualization of the BDD for the Boolean formula x1 * x2 + x3 * x4 + ... + x19 * x20 using a bad variable ordering (x1,x3,x5,x7,x9,x11,x13,x15,x17,x19,x2,x4,x6,x8,x10,x12,x14,x16,x18,x20). One pixel in the picture corresponds to one BDD node, all nodes of one variable are represented by one line (level), and the number of nodes for that variable by the width of the line. The variables with the most nodes are x19 and x2 with 512 nodes each, i.e., the width of the picture is 512 pixels (x1:1, x3:2, x5:4, x7:8, x9:16, x11:32, x13:64, x15:128, x17:256, x19:512, x2:512, x4:256, x6:128, x8:64, x10:32, x12:16, x14:8, x16:4, x18:2, x20:1).
Date
Source self-made using CrocoPat, a tool for relational programming, and VisuBDD, a small Java program
Author Dirk Beyer
Permission
(Reusing this file)
GFDL and cc-by-sa-2.5

The PNG picture is 518 x 32 pixel.

Other BDD pictures for similar formulas:

The following is the RML (Relational Manipulation Language) code that I fed to CrocoPat to produce the dat files for VisuBDD:

// RML program to generate BDD visualizations for the formula
// x1 & x2 | x3 & x4 | ... | x19 & x20,
// using two different variable orderings.
// "crocopat -e BDD_Variable_Ordering_VisuBDD.rml" 
// generates two files in dat format.
// "java -classpath <your_CrocoPat_dir> 
//  VisuBDD.VisualizeSize  BDD_Variable_Ordering_VisuBDD_Bad.dat"
// displays a visualization of the BDD graph on screen.

// There are two ('Boolean') values for the variables x1, ..., x20.
DOM("0");
DOM("1");

// F is the name of the Boolean formula.
F(x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15,x16,x17,x18,x19,x20) := 
                               (x1="1" & x2="1") 
                             | (x3="1" & x4="1")
                             | (x5="1" & x6="1")
                             | (x7="1" & x8="1")
                             | (x9="1" & x10="1") 
                             | (x11="1" & x12="1")
                             | (x13="1" & x14="1")
                             | (x15="1" & x16="1")
                             | (x17="1" & x18="1")
                             | (x19="1" & x20="1");

// Prints the number of nodes per variable in dat format for VisuBDD,
// using a good variable ordering resulting in linear size of the graph.
PRINT NODESPERVAR( F(x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15,x16,x17,x18,x19,x20) ) 
      TO "BDD_Variable_Ordering_VisuBDD_Good.dat";

// Prints the number of nodes per variable in dat format for VisuBDD,
// using a bad variable ordering resulting in exponential size of the graph.
// The first term of the conjunction sets the variable ordering.
PRINT NODESPERVAR( TRUE(x1,x3,x5,x7,x9,x11,x13,x15,x17,x19,x2,x4,x6,x8,x10,x12,x14,x16,x18,x20) &
                   F(x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15,x16,x17,x18,x19,x20) ) 
      TO "BDD_Variable_Ordering_VisuBDD_Bad.dat";;

Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
This licensing tag was added to this file as part of the GFDL licensing update.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 2.5 Generic license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
You may select the license of your choice.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

1 September 2005

image/png

b2f6e8dcf178cd2eefb0419fced0d6f1d9cc350c

288 byte

32 pixel

518 pixel

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current09:50, 1 September 2005Thumbnail for version as of 09:50, 1 September 2005518 × 32 (288 bytes)Dirk Beyer{{Information| |Description = Visualization of the BDD for the Boolean formula x1 * x2 + x3 * x4 + ... + x19 * x20 using a bad variable ordering |Source = self-made |Date = 2005-09-01 |Author = Dirk Beyer |Permission = GFDL and cc-by-s

The following page uses this file:

Global file usage

The following other wikis use this file: