( 9801 )
↓
3d 3dmax action script as3 backup blender debian diy eclipse flash game development gamedev java java 6 linux lxd nginx php raid shred ssh ubuntu unix windows -
: |
|
: |
|
|
PHP:
// S1
1.) __(A0, S1)
// S1 , A1
// S2
2.) __(A0 + A1, S2)
// S2 , A2
// S1 a75 S75
3.) __(A0 + A1 + A2, S75)
// S75, S1
4.) __(a75)
// S1 ,
...
font>
PHP:
__(A: , St: )
{
Ac = ____(A, St)
Ss = __(Ac)
while (S != St && not(S in Ss))
{
a = A0[random(LEN(A))]
__(a)
}
if (S == St)
return;
if (S in Ss)
{
a = ____(Ac, S)
__(a)
if (S == St)
return;
else
exit(" , .");
}
}
font>
: artifical life |
: |
|
PHP:
j = 2
while (j<=n && LEN(D) < x)
{
c = C[j]
a = A[c]
if (D[a] == NULL)
{
d = {}
for (i=1; i<=m; i++)
{
ds = { S[i][j-1], S[i][j] }
d[i] = ds
}
D[a] = d
}
j++
}
font>
PHP:
T = {} //
j = 1
while (j<=n) //
{
c = C[j]
a = A[c]
d = {}
for (i=1; i<=m; i++) // d
{
ds = { S[i][j-1], S[i][j] }
d[i] = ds
}
if (D[a] != d) //
{
f = d //
t = []
i = j
while (i>=2 && i>=j-10) // 10
{
c = C[i]
a = A[c]
d = {}
for (k=1; k<=m; k++) // d
{
ds = { S[k][i-1], S[k][i] }
d[i] = ds
}
// t a d
t[LEN(t) + 1] = { a, d }
i--
}
// 10 f
T[f][LEN(T[f]) + 1] = t
}
j++
}
// E
for (f, Z) in T // f - , Z - T
{
if (LEN(Z) >= 3) // ?
{
e = [] // E
o = Z[1] // , f
// ,
for (j=2; j<=LEN(Z); j++)
{
t = Z[j]
i = LEN(t)
do
{
a = t[i].a //
d = t[i].d //
if (a == o[i].a && d == o[i].d)
{
if (e[LEN(e) + 1] == NULL)
e[LEN(e) + 1] = a
}
else
break
i++
}
while(i <= LEN(t))
}
E[f] = e // E f
}
}
font>
: |
|
|
PHP:
action _()
{
__("", "-", " ", "");
___();
}
font>
PHP:
_("");
___();
-> : { : +2, : +5, : 0, _: 0 }
_("-");
___();
-> : { : +1, : +4, : +2, _: +1 }
_(" ");
___();
-> : { : 0, : +6, : +1, _: +2 }
_("");
___();
-> : { : +3, : +4, : +2, _: 0 }
font>
: |
|
|
: AI |
|
|
: |
: | [1] |