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

  • SEARCH
  • Home
  • 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 6858899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:13:02+00:00 2026-05-27T02:13:02+00:00

I’m working with some tools, and the only way it can determine if a

  • 0

I’m working with some tools, and the only way it can determine if a particular transaction is successful is if it passes various checks. However, it is limited in the way that it can only do one check at a time, and it must be sequential. Everything must be computed from left to right.

For example,

A || C && D

It will be computed with A || C first, and then the result will be AND‘ed with D.

It gets tougher with parenthesis. I am unable to compute an expression like this, since B || C would need to be compututed first. I cannot work with any order of operations;

A && ( B || C)

I think I’ve worked this down to this sequential boolean expression,

C || B && A

Where C || B is computed first, then that result is AND‘d with A

Can all boolean expressions be successfully worked into a sequential boolean expression? (Like the example I have)

  • 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-27T02:13:03+00:00Added an answer on May 27, 2026 at 2:13 am

    The answer is no:

    Consider A || B && C || D which has the truth table:

    A | B | C | D |
    0 | 0 | 0 | 0 | 0
    0 | 0 | 0 | 1 | 0
    0 | 0 | 1 | 0 | 0
    0 | 0 | 1 | 1 | 0
    0 | 1 | 0 | 0 | 0
    0 | 1 | 0 | 1 | 1
    0 | 1 | 1 | 0 | 1
    0 | 1 | 1 | 1 | 1
    1 | 0 | 0 | 0 | 0
    1 | 0 | 0 | 1 | 1
    1 | 0 | 1 | 0 | 1
    1 | 0 | 1 | 1 | 1
    1 | 1 | 0 | 0 | 0
    1 | 1 | 0 | 1 | 1
    1 | 1 | 1 | 0 | 1
    1 | 1 | 1 | 1 | 1
    

    If it were possible to evaluate sequentially there would have to be a last expression which would be one of two cases:

    Case 1:

    X || Y such that Y is one of A,B,C,D and X is any sequential boolean expression.

    Now, since there is no variable in A,B,C,D where the entire expression is true whenever that variable is true, none of:

    X || A
    X || B
    X || C
    X || D
    

    can possibly be the last operation in the expression (for any X).

    Case 2:

    X && Y: such that Y is one of A,B,C,D and X is any sequential boolean expression.

    Now, since there is no variable in A,B,C,D where the entire expression is false whenever that variable is false, none of:

    X && A
    X && B
    X && C
    X && D
    

    can possibly be the last operation in the expression (for any X).

    Therefore you cannot write (A || B) && (C || D) in this way.


    The reason you are able to do this for some expressions, like: A && ( B || C) becoming C || B && A is because that expression can be built recursively out of expressions which have one of the two properties above:

    IE.

    The truth table for A && ( B || C) is:

    A | B | C |
    0 | 0 | 0 | 0
    0 | 0 | 1 | 0
    0 | 1 | 0 | 0
    0 | 1 | 1 | 0
    1 | 0 | 0 | 0
    1 | 0 | 1 | 1
    1 | 1 | 0 | 1
    1 | 1 | 1 | 1
    

    Which we can quickly see has the property that it is false whenever A is 0. So Our expression Could be X && A.

    Then we take A out of the truth table and look at only the rows where A is 1 is the original:

    B | C
    0 | 0 | 0
    0 | 1 | 1
    1 | 0 | 1
    1 | 1 | 1
    

    Which has the property that it is True whenever B is 1 (or C, we can pick here). So we can write the expression as

    X || B and the entire expression becomes X || B && A

    Then we reduce the table again to the portion where B was 0 and we get:

    C
    0 | 0
    1 | 1
    

    X is just C. So the final expression is C || B && A

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
Does anyone know how can I replace this 2 symbol below from the string
I'm working with an upstream system that sometimes sends me text destined for HTML/XML

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.