Inputs
Outputs
Neuron type
Best algorithm has been found - locked
Patterns
| Pattern |
Input |
Output |
| 1. |
| 1: |
1 |
| 2: |
2 |
| 3: |
3 |
| 4: |
4 |
| 5: |
5 |
| 6: |
6 |
| 7: |
7 |
|
|
| 2. |
| 1: |
a |
| 2: |
b |
| 3: |
c |
| 4: |
d |
| 5: |
e |
| 6: |
f |
| 7: |
g |
|
|
| 3. |
| 1: |
z |
| 2: |
x |
| 3: |
c |
| 4: |
v |
| 5: |
b |
| 6: |
n |
| 7: |
m |
|
|
Applicable neurons
-
Connect - two inputs
-
Connect - six inputs
-
Rectangle - circuit
-
Force
-
AND
-
right angled triangle, find Hypotenuse c, given a, b
-
", "
-
>, < opposite
-
character |
-
word city
-
Contains string substring?
-
convert HH:MM:SS into seconds
Algorithm
Test
Code made by AI:
/**
* Connect - two inputs:
*
* @param x1 Variable A
* @param x2 Variable B
* @return {Array}
*/
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}
/**
* Connect - two inputs:
*
* @param x1 Variable A
* @param x2 Variable B
* @return {Array}
*/
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}
/**
* Connect - two inputs:
*
* @param x1 Variable A
* @param x2 Variable B
* @return {Array}
*/
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}
/**
* Connect - three inputs: Connect stringA + stringB + stringC
*
* @param x1 string A
* @param x2 string B
* @param x3 string C
* @return {Array}
*/
function neuron564(x1, x2, x3)
{
var outputs = [];
outputs[0] = x1;
outputs[1] = x2;
outputs[2] = x3;
arr = neuron520(outputs[1], outputs[2]);
outputs[3] = arr[0];
arr = neuron520(outputs[0], outputs[3]);
outputs[4] = arr[0];
return[outputs[4]];
}
/**
* Connect - six inputs:
*
* @param x1 1
* @param x2 2
* @param x3 3
* @param x4 4
* @param x5 5
* @param x6 6
* @return {Array}
*/
function neuron652(x1, x2, x3, x4, x5, x6)
{
var outputs = [];
outputs[0] = x1;
outputs[1] = x2;
outputs[2] = x3;
outputs[3] = x4;
outputs[4] = x5;
outputs[5] = x6;
arr = neuron520(outputs[4], outputs[5]);
outputs[6] = arr[0];
arr = neuron564(outputs[2], outputs[3], outputs[6]);
outputs[7] = arr[0];
arr = neuron564(outputs[0], outputs[1], outputs[7]);
outputs[8] = arr[0];
arr = neuron520(outputs[7], outputs[3]);
outputs[9] = arr[0];
return[outputs[8]];
}
/**
* Connect - seven inputs:
*
* @param x1 1
* @param x2 2
* @param x3 3
* @param x4 4
* @param x5 5
* @param x6 6
* @param x7 7
* @return {Array}
*/
function neuron808(x1, x2, x3, x4, x5, x6, x7)
{
var outputs = [];
outputs[0] = x1;
outputs[1] = x2;
outputs[2] = x3;
outputs[3] = x4;
outputs[4] = x5;
outputs[5] = x6;
outputs[6] = x7;
arr = neuron520(outputs[1], outputs[2]);
outputs[7] = arr[0];
arr = neuron652(outputs[0], outputs[7], outputs[3], outputs[4], outputs[5], outputs[6]);
outputs[8] = arr[0];
return[outputs[8]];
}
Code made by AI: