problem with predicate

University course discussion for computer science and IT.

Announcements Posted on
Important: please read these guidelines before posting about exams on The Student Room 28-04-2013
Sign in to Reply
  1. zemzela's Avatar
    • New Member
    • Posts: 1
    problem with predicate
    I need to solve this predicate , but I don't know how to do that...


    ¬c xor (¬b∨c) . Please help me if you know?
  2. roblee's Avatar
    • Exalted and Worshipped Member
    • Posts: 1,063
    Re: problem with predicate
    There are two ways of doing this.
    One is by filling out this truth table, and then checking it against the operators that you've been taught (AND, OR, NAND, XOR, NOR, XNOR etc.) to see which one it's equivalent to:

     \begin{array}{|cc|r|r|} \hline   B & C & \neg b \vee c & \neg c \oplus (\neg b \vee c) \\   \hline   0 & 0 & ? & ? \\   0 & 1 & ? & ? \\   1 & 0 & ? & ? \\   1 & 1 & ? & ? \\   \hline \end{array}

    The other way is to simplify it algebraically as far as possible, using the following rules in order:

    1. (a xor b) = (a and ¬b) or (b and ¬a)
    2. ¬(a or b) = (¬a and ¬b)
    3. (a and (b or c)) = (a and b) or (a and c)
    4. (a or (a and b)) = (a)


    Sorry that I can't just give out the answer, I'm sure you understand why.
    Last edited by roblee; 20-03-2012 at 19:51. Reason: Missed step. Almost fell down stairs.
Sign in to Reply
Share this discussion:  
Article updates
Moderators

We have a brilliant team of more than 60 volunteers looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

Reputation gems:
The Reputation gems seen here indicate how well reputed the user is, red gem indicate negative reputation and green indicates a good rep.
Post rating score:
These scores show if a post has been positively or negatively rated by our members.