Added README describing life-005.
authorSiraaj Khandkar <siraaj@khandkar.net>
Tue, 28 Aug 2012 04:13:30 +0000 (00:13 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Tue, 28 Aug 2012 04:13:30 +0000 (00:13 -0400)
005/README.md [new file with mode: 0644]

diff --git a/005/README.md b/005/README.md
new file mode 100644 (file)
index 0000000..8df2f33
--- /dev/null
@@ -0,0 +1,14 @@
+life-005
+========
+
+
+Approach
+--------
+AWK's array is not a first class value - it cannot be copied and passed around.
+One of approaches to work around this issue (the other I tried in life-004) is
+using a single array with a new element for each generation (so that we can
+refer to the previous while building new). Problem is that there are no
+multidimensional arrays either...  However, facilities are provided for
+simulating them by storing level dimension information in the key of the
+associative array, so I ended up with board[generation, x, y] and manually
+deleting a generation when it is no longer needed.
This page took 0.022016 seconds and 4 git commands to generate.