PDA

View Full Version : Get the combinations that are not covered in original---Boolean alzebra


prob123
May 21, 2012, 07:28 AM
Here is the problem:
Input:
A B
====== ======
Original YYYYY YYYYY
New YYNNN YNNNN

Output:
NNYYY YNNNN
YYYYY NYYYY

Note: Original and New list would vary from 1 to N. Please provide algorithm to solve this problem programmatically. I am writing computer program to work on this problem.

Thank you for your help

prob123
May 21, 2012, 07:33 AM
Original:
A=YYYYY
B=YYYYY

New:
A=YYNNN
B=YNNNN

Output:
output1: NNYYY YNNNN
output2: YYYYY NYYYY