Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6685287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:02:26+00:00 2026-05-26T05:02:26+00:00

I have a set of integers, represented as a Reduced Ordered Binary Decision Diagram

  • 0

I have a set of integers, represented as a Reduced Ordered Binary Decision Diagram (ROBDD) (interpreted as a function which evaluates to true iff the input is in the set) which I shall call Domain, and an integer function (which I shall call F) represented as an array of ROBDD’s (one entry per bit of the result).

Now I want to calculate the image of the domain for F. It’s definitely possible, because it could trivially be done by enumerating all items from the domain, apply F, and insert the result in the image. But that’s a horrible algorithm with exponential complexity (linear in the size of the domain), and my gut tells me it can be faster. I’ve been looking into the direction of:

  1. apply Restrict(Domain) to all bits of F
  2. do magic

But the second step proved difficult. The result of the first step contains the information I need (at least, I’m 90% sure of it), but not in the right form. Is there an efficient algorithm to turn it into a “set encoded as ROBDD”? Do I need an other approach?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:02:27+00:00Added an answer on May 26, 2026 at 5:02 am

    Define two set-valued functions:

    N(d1...dn): The subset of the image where members start with a particular sequence of digits d0...dn. 
    D(d1...dn): The subset of the inputs that produce N(d1...dn).
    

    Then when the sequences are empty, we have our full problem:

    D(): The entire domain. 
    N(): The entire image.
    

    From the full domain we can define two subsets:

    D(0) = The subset of D() such that F(x)[1]==0 for any x in D().
    D(1) = The subset of D() such that F(x)[1]==1 for any x in D().
    

    This process can be applied recursively to generate D for every sequence.

    D(d1...d[m+1]) = D(d1...dm) & {x | F(x)[m+1]==d[m+1]}
    

    We can then determine N(x) for the full sequences:

    N(d1...dn) = 0 if D(d1...dn) = {}
    N(d1...dn) = 1 if D(d1...dn) != {}
    

    The parent nodes can be produced from the two children, until we’ve produced N().

    If at any point we determine that D(d1…dm) is empty, then we know
    that N(d1…dm) is also empty, and we can avoid processing that branch.
    This is the main optimization.

    The following code (in Python) outlines the process:

    def createImage(input_set_diagram,function_diagrams,index=0):
      if input_set_diagram=='0':
        # If the input set is empty, the output set is also empty
        return '0'
      if index==len(function_diagrams):
        # The set of inputs that produce this result is non-empty
        return '1'
      function_diagram=function_diagrams[index]
      # Determine the branch for zero
      set0=intersect(input_set_diagram,complement(function_diagram))
      result0=createImage(set0,function_diagrams,index+1)
      # Determine the branch for one
      set1=intersect(input_set_diagram,function_diagram)
      result1=createImage(set1,function_diagrams,index+1)
      # Merge if the same
      if result0==result1:
        return result0
      # Otherwise create a new node
      return {'index':index,'0':result0,'1':result1}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a set of N items, which are sets of integers, let's assume
I have a set of integers that I would like to change to a
I have a set of integers. I want to find the longest increasing subsequence
I have a set of flags which are part of a huge text data
I have a table which will potentially store hundreds of thousands of integers: desc
We have set up a system where notifications get sent to a user with
I have set a canvas' background to an image of a company logo. I
I have set up transactional replication between two SQL Servers on different ends of
I have set up a version control system using TortoiseSVN at my home to
I have set up a Django application that uses images. I think I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.