Abbreviations.com Convert.net Definitions.net Lyrics.net Phrases.net Quotes.net References.net Rhymes.net Synonyms.net USZip.com  Bookmark and Share
 
Definitions.net
Search for Dictionary Definitions:  
Browse Alphabetically:
 A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z   # 
 random definition 

 Definitions of magic number  

Translate magic number to



Definition of 'magic number' Princeton's WordNet 

1. (noun) magic number
the atomic number of an extra stable strongly bound atomic nucleus: 2, 8, 20, 28, 50, 82 or 126


Definitions of 'magic number' The New Hacker's Dictionary 

1.  magic number
[Unix/C; common]

1. In source code, some non-obvious constant whose value is significant to the operation of a program and that is inserted inconspicuously in-line (hardcoded), rather than expanded in by a symbol set by a commented #define. Magic numbers in this sense are bad style.

2. A number that encodes critical information used in an algorithm in some opaque way. The classic examples of these are the numbers used in hash or CRC functions, or the coefficients in a linear congruential generator for pseudo-random numbers. This sense actually predates and was ancestral to the more common sense

3. Special data located at the beginning of a binary data file to indicate its type to a utility. Under Unix, the system and various applications programs (especially the linker) distinguish between types of executable file by looking for a magic number. Once upon a time, these magic numbers were PDP-11 branch instructions that skipped over header data to the start of executable code; 0407, for example, was octal for ‘branch 16 bytes relative’. Many other kinds of files now have magic numbers somewhere; some magic numbers are, in fact, strings, like the !<arch> at the beginning of a Unix archive file or the %! leading PostScript files. Nowadays only a wizard knows the spells to create magic numbers. How do you choose a fresh magic number of your own? Simple — you pick one at random. See? It's magic!

4. An input that leads to a computational boundary condition, where algorithm behavior becomes discontinuous. Numeric overflows (particularly with signed data types) and run-time errors (divide by zero, stack overflows) are indications of magic numbers. The Y2K scare was probably the most notorious magic number non-incident.

The magic number, on the other hand, is 7±2. See The magical number seven, plus or minus two: some limits on our capacity for processing information by George Miller, in the Psychological Review 63:81-97 (1956). This classic paper established the number of distinct items (such as numeric digits) that humans can hold in short-term memory. Among other things, this strongly influenced the interface design of the phone system.



'magic number' - Nearby Entries  

magic lantern  magic marker  magic mushroom  magic number  magic realism  magic spell  magic square  



Citation: Add this definition to your bibliography   MLA  Chicago  APA 
"magic number." Definitions.net. STANDS4 LLC, 2012. 14 February. 2012. http://www.definitions.net/definition/magic number


Alternative search options for 'magic number'   
Search for Synonyms for 'magic number'
Quotes containing the term 'magic number'
Search for Phrases containing the term 'magic number'
Search for Abbreviations containing the term 'magic number'
Search for 'magic number' on Search magic number on Amazon.com! & Search magic number on Google.com!
What rhymes with 'magic number'?
NEW:Search for Song lyrics containing the word 'magic number'


Definitions.net |  Login |  Add New Abbreviation |  Your List |  Tools |  Become an Editor |  Tell a Friend |  Awards |  Testimonials |  Press |  News |  Forum new! |  APIs |  About
Copyright ©2001-2011 STANDS4 LLC. All rights reserved.  Terms of Use  |  Privacy Policy  |  Advertise  |  Contact Us  Follow us on Facebook! Follow us on Twitter!