🤖 A.I Neural Network [Challenge] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

🤖 A.I Neural Network [Challenge]

For this challange you will be creating a fully funtional neural network each neuron has to be able to communicate with one another but "cannot" pass through another, You have to bridge a new connection. input is 4 neurons ____________ ______ v. v. v 1--------2-------3-------4 ^___________^ output is: 6 Connections 1 connects 2 2 connects 3 3 connects 4 1 bridges to 3 1 bridges to 4 2 bridges to 4 Mine https://code.sololearn.com/c4d2DRPwSgyJ/?ref=app

14th Feb 2018, 4:10 PM
D_Stark
D_Stark - avatar
13 Answers
15th Feb 2018, 3:15 AM
sayan chandra
sayan chandra - avatar
+ 6
@ Sayan sorry your code isnt right for 4 neurons you have to accept an input and show all connections.
15th Feb 2018, 10:18 AM
D_Stark
D_Stark - avatar
+ 6
for 4 neurons there would be 6 communication lines 1 connects 2 2 connects 3 3 connects 4 As my neurons cannot pass through another to communicate for example, 1 cannot communicate with 3 so a bridge needs to be made 1 then bridges to 3 1 bridges to 4 2 bridges to 4 there should be no duplications. for example if 1 connects 2 then 2 does not need to connect 1 as is already connected thanks
15th Feb 2018, 10:31 AM
D_Stark
D_Stark - avatar
+ 6
@ Merlin exactly 👍 you have 6 communication lines if you look at it
15th Feb 2018, 10:34 AM
D_Stark
D_Stark - avatar
+ 5
@ sayan yes that right 👍 can you space your numbers as its difficult to read connected12 for Connected 1>2, Thanks
15th Feb 2018, 10:43 AM
D_Stark
D_Stark - avatar
+ 5
Nice work Sayan 👍
15th Feb 2018, 10:49 AM
D_Stark
D_Stark - avatar
+ 2
Sorry don't get it. You mean this? <1> -<2> | x | <3>-<4>
15th Feb 2018, 10:26 AM
Merlin Mittelbach
+ 2
Ultimately it is just combinations of pairs possible for numbers from 1 to n. https://code.sololearn.com/ca74lL6vvA6O/?ref=app
15th Feb 2018, 12:55 PM
Zoetic_Zeel
Zoetic_Zeel - avatar
+ 1
@ d stark... see i changed the 8 neuron to 4 just see the o/p its perfectly fine no repeatation
15th Feb 2018, 10:33 AM
sayan chandra
sayan chandra - avatar
+ 1
done#))
15th Feb 2018, 10:44 AM
sayan chandra
sayan chandra - avatar
0
and why is that??
15th Feb 2018, 10:19 AM
sayan chandra
sayan chandra - avatar
0
it gives exact o/p.. for 4 neurons
15th Feb 2018, 10:20 AM
sayan chandra
sayan chandra - avatar
0
just change 1,9 to 1,5 in both the for loops
15th Feb 2018, 10:21 AM
sayan chandra
sayan chandra - avatar