Polymeron comments on Thoughts on the Singularity Institute (SI) - Less Wrong

256 Post author: HoldenKarnofsky 11 May 2012 04:31AM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (1270)

You are viewing a single comment's thread. Show more comments above.

Comment author: Kawoomba 17 April 2013 08:58:29AM 2 points [-]

First I found a clever way to minimize the amount of bits necessary to describe a board position. I think I hit 34 bytes per position or so, and I guess further optimization was possible.

Indeed, using a very straightforward Huffman encoding (1 bit for an for empty cell, 3 bits for pawns) you can get it down to 24 bytes for the board alone. Was an interesting puzzle.

Looking up "prior art" on the subject, you also need 2 bytes for things like "may castle", and other more obscure rules.

There's further optimizations you can do, but they are mostly for the average case, not the worst case.

Comment author: Polymeron 23 April 2013 06:50:01PM 2 points [-]

I didn't consider using 3 bits for pawns! Thanks for that :) I did account for such variables as may castle and whose turn it is.