File:BDD Variable Ordering VisuBDD Bad.png
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
BDD_Variable_Ordering_VisuBDD_Bad.png (518 × 32 pixels, file size: 288 bytes, MIME type: image/png)
File information
Structured data
Captions
Summary
[edit]DescriptionBDD Variable Ordering VisuBDD Bad.png | 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:
-
BDD graph for the Boolean formula x1 * x2 + x3 * x4 + x5 * x6 + x7 * x8 using a good variable ordering
-
BDD graph for the Boolean formula x1 * x2 + x3 * x4 + x5 * x6 + x7 * x8 using a bad variable ordering
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
[edit]I, the copyright holder of this work, hereby publish it under the following licenses:
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.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license. | ||
| ||
This licensing tag was added to this file as part of the GFDL licensing update.http://creativecommons.org/licenses/by-sa/3.0/CC BY-SA 3.0Creative Commons Attribution-Share Alike 3.0truetrue |
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.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 09:50, 1 September 2005 | 518 × 32 (288 bytes) | Dirk Beyer (talk | contribs) | {{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 |
You cannot overwrite this file.
File usage on Commons
The following 9 pages use this file:
File usage on other wikis
The following other wikis use this file:
- Usage on de.wikipedia.org
- Usage on en.wikipedia.org