Memory Question

Hey

I'm programming my Arduino to run an AI program that learns how to do Logic Gates, but at the moment it has to relearn everything whenever it powers on.

Is it possible to write an array like this:

LOGIC GATE TYPE
X1 * X2 * OUTPUT
0 0 0
0 1 1
1 0 1
1 1 1

In a sort of table like that in permanent memory, so that whenever the Arduino is turned on or restarted, it will have any Logic Gates it has learnt in its memory so it can check whether it has learnt it or not

Anyone know how?
Thanks

EEPROM (or Flash memory) can be used to store information when power is lost.

Depending on which Arduino you have, the ATmega has a small amount of program accessible EEPROM. If it isn't enough for your use, then you can add an external chip.

You can get started here: http://www.arduino.cc/en/Reference/EEPROM