Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Upgrade your Gray matter, cause one day it may matter

by spectre9 (Beadle)
on Apr 23, 2009 at 17:59 UTC ( [id://759605]=poem: print w/replies, xml ) Need Help??

I recently needed to generate some Gray Code, and could find no mention of Frank Gray here... Sychronistically, I was listening to Deltron 3030 this morning, and would like to a mantra and a poem from "Upgrade (A Brymar College Course)" which appears on the DELTRON3030 album, and sample Gray code.

I'll school you on the art and how its texture mapped Get your act together, my style is mega Educate the heads of eight lonely beggars Only shred of evidence is the virtual file Stored within the cerebellum hit you Berkowitze Style

MANTRA (repeat): "Upgrade your gray matter, cause one day it may matter."

Code below from http://www.onpedia.com/encyclopedia/gray-code, provided under the GNU Free Documentation License.

my $depth = 16; # generate 16 Gray codes, 4 bits wide each my @gray_codes = ( '0', '1' ); while(scalar(@gray_codes)<$depth) { my @forward_half=map{'0'.$_} @gray_codes; my @reverse_half=map{'1'.$_} reverse @gray_codes); @gray_codes=(@forward_half,@reverse_half); }

spectre#9 -- By the time you read this, I might Be Adle

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: poem [id://759605]
Approved by planetscape
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2024-03-28 19:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found