If you computed the RMNF correctly, the FDD you have had must look as follows:
Its set representation is {{a,b,c},{a,c},{b,c},{b},{c}} as you said, and therefore the RMNF of this formula Ф is a∧b∧c ⊕ a∧c ⊕ b∧c ⊕ b ⊕ c.
To get the ZDD, you can convert this formula into its a disjunction of minterms (not just one of the DNFs, it must be THE disjunction of all minterms that satisfy the formula). If you compute the truth table, you get the following five minterms
- a∧b∧c
- a∧¬b∧c
- ¬a∧b∧c
- ¬a∧b∧¬c
- ¬a∧¬b∧c
Their set representation is {{a,b,c},{a,c},{b,c},{b},{c}} (since we are supressing the negative literals) which corresponds with the following ZDD (it stores this set of sets of variables):
Note that formulas can have many DNSs, and even more than one minimal DNF. For example, DNFs of the above formula are the following ones:
- ¬a∧¬b∧c ∨ a∧b∧c ∨ a∧b∧¬c ∨ ¬a∧b∧c ∨ ¬a∧b∧¬c
- ¬a∧¬b∧c ∨ b∧c ∨ b∧¬c
- b ∨ ¬a∧c
Note again that for the ZDD, you need the disjunction of minterms (and minterms list all variables) which is canonical in contrast to most other DNFs (with exceptions like the Blake canonical form etc.).