Coder Social home page Coder Social logo

random-boolean-networks's Introduction

Random Boolean Network

Inspired by

Network

Connection between nodes ar modeled by node numbers, each node has 3 other nodes connections

the network is calculated at system start and is fixed. Each node is allocated 3 other nodes that are not itself

i E (0:N)
state[i] => {j,k,l} where (j,k,l) E (0:N & !i)

N > 0

i in range(N)

j in range(N) && j # i

k in range(N) && k ## i

l in range(N) && l # i

example:

state[0] = 0 // false
connections[0] = [4,7,11]

Truth table

each node value is true or false, in binary that is 0 or 1

true = 1
false = 0

taking 3 nodes value together we get a 3 digits binary number:

0 [0,0,0]
1 [0,0,1]
2 [0,1,0]
3 [0,1,1]
4 [1,0,0]
5 [1,0,1]
6 [1,1,0]
7 [1,1,1]

the truth table has 8 values calculated at random when system starts and never changes over the life of the system

truth[i] => 0 OR 1

for each possible combination of node values wer generate a random new value:

node[i] => random(0,7)

Now we can calculate the next state of the system by matching the connection state to a number from the truth table.

state[i] => [j,k,l] => state[j], state[k], state[l] => truth[m]

where m is the value of converting the binary single digit of the connection state by placing each binary value in the different location.

for example:

state[j] = 0
state[k] = 1
state[l] = 0

then the binary value is

010

which is equal to 2 so the new state' (prime) value for node i is

state'[i] = truth[2]

random-boolean-networks's People

Contributors

gadieichhorn avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.