Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Boolean math: Fill in the blanks.

by repellent (Priest)
on Oct 12, 2008 at 01:55 UTC ( [id://716647]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    n  = total # bits per sample
    L1 = # bits   set on average on  left-side of AND/OR
    L0 = # bits unset on average on  left-side of AND/OR
       = n - L1
    R1 = # bits   set on average on right-side of AND/OR
    
  2. or download this
    AND : L1 * R1 / n
    
    OR  : L1 + L0 * R1 / n = L1 + (n - L1) * R1 / n
                           = L1 + R1 - L1  * R1 / n
                           = L1 * ( 1 - R1 / n ) + R1
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://716647]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-03-29 14:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found