Word Counter

[WORDS.BBX 2KB]

This neural network counts how many 'words' there are in the input string. A word is one or more active neurons in a row. The input string in the picture has three words.
[Image of network]
To test this network, select some neurons in the Input String. Then run the network until it stops changing. The number of active neurons in the Output Array equals the number of words that were in the input.

Naturally the input string and the output array may be increased (or decreased) to any length. If the output array were replaced by the network in Div2, the answer would be presented in binary code.

-------------------------------------
Last modified: 21 September 1998