STANAANDREY

iit simple

May 2nd, 2026
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.59 KB | None | 0 0
  1. # A tiny "Integrated" Logic Gate System
  2. # Imagine 3 bits: A, B, C.
  3. # Each bit's next state depends on the other two.
  4.  
  5. def integrated_system(state):
  6.     A, B, C = state
  7.    
  8.     # Each node is a function of the WHOLE system
  9.     new_A = 1 if (B + C) >= 1 else 0
  10.     new_B = 1 if (A + C) == 1 else 0
  11.     new_C = 1 if (A + B) != 1 else 0
  12.    
  13.     return (new_A, new_B, new_C)
  14.  
  15. # This has (very tiny) Phi because you cannot calculate 'new_A'
  16. # without knowing the state of the 'whole' (B and C).
  17. # If you "cut" the connection between B and A, the system's
  18. # behavior changes fundamentally.
Advertisement
Add Comment
Please, Sign In to add comment