Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # A tiny "Integrated" Logic Gate System
- # Imagine 3 bits: A, B, C.
- # Each bit's next state depends on the other two.
- def integrated_system(state):
- A, B, C = state
- # Each node is a function of the WHOLE system
- new_A = 1 if (B + C) >= 1 else 0
- new_B = 1 if (A + C) == 1 else 0
- new_C = 1 if (A + B) != 1 else 0
- return (new_A, new_B, new_C)
- # This has (very tiny) Phi because you cannot calculate 'new_A'
- # without knowing the state of the 'whole' (B and C).
- # If you "cut" the connection between B and A, the system's
- # behavior changes fundamentally.
Advertisement
Add Comment
Please, Sign In to add comment