Googles appar
Huvudmeny

Post a Comment On: cbloom rants

"03-14-14 - Fold Up Negatives"

2 Comments -

1 – 2 of 2
Blogger Fabian 'ryg' Giesen said...

This is one of these things everyone keeps re-inventing since it's easy to derive and doesn't have an obvious way to Google for it. (One of the few named examples is in Google's protobufs as "zig-zag encoding", but it's either explicit or implicit in a lot of signed VLC constructions).

But my favorite use for this has nothing to do with compression at all: it's the nicest way I know to do a two-sided enumeration expanding outwards from a center point (for iterative deepening-style searches).

March 14, 2014 at 12:46 PM

Blogger cbloom said...

Good point about two-sided iteration.

March 14, 2014 at 1:46 PM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.