interleave bits (aka morton-ize aka z-order curve)

Category: Python - Miscellaneous

This recipe let you encode in a single number two or three numbers.

Note: this is only an adaptation of the recipes from Sean Eron Anderson and Fabian “ryg” Giesen; all credits goes to the respective authors.


http://graphics.stanford.edu/~seander/bithacks.html#InterleaveBMN
http://fgiesen.wordpress.com/2009/12/13/decoding-morton-codes/ Date: 23 February, 2012


Algorithm - Bits - Manipulation - Mathematical - Mathematics

Homepage: http://code.activestate.com/recipes/577558-interleave-bits-aka-morton-ize-aka-z-order-curve/?in=lang-python

Developer: Romain Dartigues

License: Freeware

Operating System: Windows

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

A set of open source scripts that ensure credit card information is keyed in correctly.

developer Developer: The Analysis and Solutions Company
license License: Freeware
operating systems Operating System: Unix, Linux, BSD, Windows


Be_Random is a full featured and flexible text/link/image display script.

developer Developer: betheweb.com
license License: Freeware
operating systems Operating System: All


Flexy calendar is a calendar that prints a number of days of a year that the user inserts.

developer Developer: planet-source-code.com
license License: Freeware
operating systems Operating System: All


This script is a Python implementation of Jamie Zawinski's threading algorithm, which takes a bunch of email messages and groups them into threads.

developer Developer: amk.ca
license License: Freeware
operating systems Operating System: All


This a script for encrypting/decrypting small files.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


The Luhn Mod-10 Method is an international standard for validating card account numbers.

developer Developer: azcode.com
license License: Freeware
operating systems Operating System: All


You can use this script with your forms to make sure all the fields are filled in.

developer Developer: javascriptsource.com
license License: Freeware
operating systems Operating System: All


Ever wanted to take a CSV file as input, cut it up
and only extract the fields that you want.

developer Developer: James Mills
license License: Freeware
operating systems Operating System: Windows


This is a pure Python implementation of the rsync algorithm.

developer Developer: Eric Pruitt
license License: Freeware
operating systems Operating System: Windows