File:BDD diagram with complemented edges.png

From Vigyanwiki

BDD_diagram_with_complemented_edges.png(293 × 443 pixels, file size: 27 KB, MIME type: image/png)

This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

Summary

Description
English: Diagram of a binary decision diagram represented using complemented edges.
Date
Source Own work
Author Helptry
This diagram image could be re-created using vector graphics as an SVG file. This has several advantages; see Commons:Media for cleanup for more information. If an SVG form of this image is available, please upload it and afterwards replace this template with {{vector version available|new image name}}.


It is recommended to name the SVG file “BDD diagram with complemented edges.svg”—then the template Vector version available (or Vva) does not need the new image name parameter.

The Python source code for creating this image is the following:

"""Example of BDD represented using complemented edges.

This script uses the Python package:
https://pypi.org/project/dd
"""
# Copyright 2021
# Licensed under the Creative Commons CC0 License
from dd import autoref as _bdd


def main():
    bdd = _bdd.BDD()
    bdd.declare('x1', 'x2', 'x3')
    u = bdd.add_expr(
        '(~ x1 /\ ~ x2 /\ ~ x3) '
        '\/ (x1 /\ x2) \/ (x2 /\ x3)')
    bdd.collect_garbage()
    bdd.dump('example.png', [u])


if __name__ == '__main__':
    main()

Licensing

I, the copyright holder of this work, hereby publish it under the following licence:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International licence.
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 licence, 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 licence as the original.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

27 March 2021

image/png

36e5c5879e08d24afddab694b1860b6b140131ad

28,159 byte

443 pixel

293 pixel

File history

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

Date/TimeThumbnailDimensionsUserComment
current08:13, 27 March 2021Thumbnail for version as of 08:13, 27 March 2021293 × 443 (27 KB)wikimediacommons>HelptryCross-wiki upload from en.wikipedia.org

The following page uses this file: