Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Boolean math: Fill in the blanks.

by repellent (Priest)
on Oct 12, 2008 at 01:55 UTC ( #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
Node Status?
node history
Node Type: note [id://716647]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2014-08-28 05:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (257 votes), past polls