What is Code: Definition and 958 Discussions

In communications and information processing, code is a system of rules to convert information—such as a letter, word, sound, image, or gesture—into another form, sometimes shortened or secret, for communication through a communication channel or storage in a storage medium. An early example is an invention of language, which enabled a person, through speech, to communicate what they thought, saw, heard, or felt to others. But speech limits the range of communication to the distance a voice can carry and limits the audience to those present when the speech is uttered. The invention of writing, which converted spoken language into visual symbols, extended the range of communication across space and time.
The process of encoding converts information from a source into symbols for communication or storage. Decoding is the reverse process, converting code symbols back into a form that the recipient understands, such as English or/and Spanish.
One reason for coding is to enable communication in places where ordinary plain language, spoken or written, is difficult or impossible. For example, semaphore, where the configuration of flags held by a signaler or the arms of a semaphore tower encodes parts of the message, typically individual letters, and numbers. Another person standing a great distance away can interpret the flags and reproduce the words sent.

View More On Wikipedia.org
  1. I

    Finding the decoding transformation for a hamming code

    I have the following linear transformation http://img162.imageshack.us/img162/3306/hammingcodeex4.gif with G being a generating matrix for a hamming code and I have to find a matrix B so that the following: \delta \cdot\gamma(\upsilon) = \upsilon for all \upsilon \in Z^4_2 is true for the...
  2. MathematicalPhysicist

    Code for checking for pythogrean triples.

    i was asked to write a code that search for pythogrean triples, my fault in my code is that i don't know where to write the codnition that a<b<c, cause as of now runs duplicates of pyhtogrean's triples. here's the code: main() { int n,max,a,b,c; printf("insert the degree you wish to...
  3. MathematicalPhysicist

    Is my code for gcd function valid?

    i have to write the function gcd for c programme. here's my code: int gcd(int m, int n) { int s,r,x,y; if (m>=n) { r=m-(m/n)*n; for(x=m,y=n;r!=0;x=y,y=r) r=x-(x/y)*y; } if(n>m) { r=n-(n/m)*n; for(x=n,y=m;r!=0;x=y,y=r) r=x-(x/y)*y; }...
  4. U

    Help needed to draw a State Diagram for scale of 10 Gray code counter

    Hey, How do u arrive at the state diagram for a scale of 10 gray code counter? I know how to draw all the used states, but the problem comes when the unused states are considered. The unused states namely are:1100 0100...
  5. S

    What musical patterns can be found in this mysterious code?

    hey guys Try to find the hidden code enjoy!
  6. J

    Creating a Binary Matrix with C++ Code

    I want to build a binary matrix (with 1 and 0 entries) with all possible combinations, say for example if n is the number of entries of one row of the matrix, then 2^n is the total number of different entries in the matrix. For instance, for n=3, 2^n = 8, so we would have the following matrix...
  7. MathematicalPhysicist

    Spot the error in my code. (in C).

    i was asked to write down a code that calculates via the trapezoid method, the integral f(x)=10x^2-x^3 from x=-2.5 up to x=2, and compares it to the analytic solution. well here's my code, my problem is that it's stuck on numbers such as 20 (number of segments). can anyone spot my error in my...
  8. J

    Can You Help Me Create Morse Code in Pascal?

    hi i hav no idea how to creat MORSE CODE IN PASCAL CAN anyone help me out PLZ
  9. S

    MATLAB Matlab code for transient 2 D thermal problem

    hi i want MATLAB coding for transient 2D Thermal problem pls help
  10. P

    C code, restricted three body

    Homework Statement http://www2.warwick.ac.uk/fac/sci/physics/teach/module_home/px270/projects/c4s_projects07.pdf it's the first example Homework Equations see aboveThe Attempt at a Solution right i shouldn't have any probs with the programming but i need to understand the calcs that are put...
  11. ranger

    MATLAB Whats wrong with this matlab code?

    I have a very simply MATLAB code. When I try go run it, I get no graph and switching over to the MATLAB command line, I see: ans = char Here is the code: t = linspace(0,60); v = 3.22; for q_0 = [0:1:2007]; q = q_0*exp(v*t); plot(t,q) hold on end It looks just...
  12. D

    Is This a Running Key Cipher Challenge?

    |1|4|6|9| |D|-|-|-| |S|K|J|A| |Y|U|J|-| |S|G|B|-| |Q|F|J|A| |L|H|U|-| i would love to see anyone break this one i found it on a nothere site that said you could give it away but it took me 5 computer programs that crack encrypted text like that and a few books took me for ever.
  13. siddharth

    Uncovering the Mystery: Color Code #black

    The color code for hidden text is #black. Some of these questions are insanely tough. I'll post the answers after sufficient participation. 1) The first is a picture of a person who starred in a famous American sitcom of the seventies. The second is of a famous director. The third is that of...
  14. dontdisturbmycircles

    URSSEVOLIHTWROHEIDHTOTSDNEMERDCan you crack the code?

    I feel justified in making a reusable thread because it is unique to this section. Here's my idea. I take a few sentences or words that make sense and apply simple coding techniques and if anyone cracks it, I move onto the next one. I will not be posting any hints and will not move onto the next...
  15. P

    Free C++ Game Source Code - Download Now!

    Source code of Games! Gaming! I would like to have some Games..coded in C++... If someone have those..please post it here for me...please...:shy:
  16. H

    C/C++ Would you mind if you give me code for gauss elimination by C++

    H e l p m e I want code for gauss elimination by C++ for solving my homework
  17. H

    Comp Sci I want code (program) to solve Gaussian Elemination by C++

    Hi, can anyone help me ? I want code (program) to solve Gaussian Elemination by C++ . Please Help me and I will really appreciate your time and effort in helping me in my assignment. Thanks.
  18. M

    Open an MS access table by Visual Basic code

    Hi, I am writing a visual basic databse program, and need a code to open a MS access table which is protected by a password. It can open the table without password. I need to protect it by password to prevent someone to open and edit it, but I have got a problem to let the visual basic...
  19. C

    C/C++ Free UML-Based C++ IDE for Code Generation

    Hi, Does anyone know of any free IDE that can generate C++ code from "drawing" in UML?
  20. K

    A deep code found in Benjamin Franklin's 13 virtues

    A deep code found in Benjamin Franklin's 13 virtues Graphic representation below: Discovered after total binge eating, and after hitting a new high of 173 pounds (is me). Sorry my stomach =P http://uplink.space.com/attachments//627869-benjaminfranklinssecretcodequestion.gif Two...
  21. S

    Need Help on how to write this recursive code

    write recursive code for the following integer function: power(x,n) is the exponential or power function x^n, where n is the exponent For example: power(3,4) evaluates 3^4 which is 3 x 3 x 3 x 3 = 81 Expect the integer result to be large(ie in the millions) explain how recursive...
  22. D

    Java Java Homework- Random Insult Generator (outline of code inside)

    Hey I'm new to this java stuff, I am taking my first class in it at the university of pittsburgh, and for my homework I need to write code to make a thing that will generate 10 random insults from a list of words. I have this outline to it and I was wondering if someone could help me fill in the...
  23. M

    Hm again i don't think im solving this right, 500 lines of code, in 17 days

    Hello everyone. Again I think I'm not doing this right. The questions asks: A programmer writes 500 lines of computer code in 17 days. Must there have at least one day when the programmer wrote 30 or more lines of code? why? Well the first thing that came to mind was to see if he wrote 500...
  24. M

    Confused, how many symbols can be represented by braille code? Combinations wee

    Hello everyone im' stuck on this problem. It says: Each symbol in braille code is represened by a rectangular arrangement of six dots. Given that a least 1 dot of the 6 must be raised, how many symbols can be represented in brail? I'm thinking I have to use combinations becuase the...
  25. F

    Debugging Code in Dev-C++: Solving an Unexpected Disappearance

    Ok, I'm trying this code in Dev-C++ int main(int argc, char **argv) { double **a; double *b; // double *m; int n, iter; double tol; b = new double[n]; a = new double*[n]; for (int i = 0; i < n + 1; i++) a[i] = new double[n]; // m =...
  26. T

    Consequences of Honor Code Violation for Georgia Tech Student

    Recently, I was looking for extra help on thermodynamics and had "Googled" for "thermodynamics problems and solutions" or something similar. After looking through the results, I realized one of them was the website for the publisher of my textbook and I clicked on it. I managed to get some extra...
  27. J

    MATLAB Get MATLAB Help - Free Assistance from Experts

    MATLAB code help please... Hi, My name is Jennifer.Iam new to Matlab programming.Iam working on reducing the noise content in audio communication.Iam using Hamning codes for the same.I have a sample code with me,which iam uploading in a zip file.Iam unable to understand how it works.Can...
  28. M

    MIPS 32 ASM to C code, did i do this right?

    have the following MIPS 32 asm code: Assuming B is an array of 10 words whose base address is in register $s0, andvariable c and i are in $s1 and $s2, respectively. What is the C statement implemented by the below MIPS assembly code? add $t0, $s2, $s2 add $t0, $t0, $t0 lw $t1, 0($s0) lw...
  29. J

    Free Small OS Code: Learn Operating System Fundamentals

    I am presently learning operating system fundamentals. Can anyone tell me m from where I can get free very small operating system code, in order to understand how it basically works? It will be big help...(Please exclude Linux :)) Thanks in anticipation/
  30. S

    Cracking the Code: Can You Beat the NINJA SENSEI?

    So my teacher gave me this problem to solve over the weekend for extra credit. I still have yet to solve it. Any clues like equations please? Thanks in advance. :D
  31. V

    Is Visual Studio Compatible with ANSI C Standards?

    I am starting a programing class for scientists and engineers at the end of the month. I wanted to brush up on my C. I used to compile C programs with Visual Studio, but now that no longer seems to work. Even simple example programs in the book generate a litiney of compile errors in Visual...
  32. Astronuc

    Computer Code For 3-D Rocket Thermal Evaluation

    Stumbled across this and thougth folks around here might find it of interest and perhaps even useful. USER MANUAL FOR RTE2002 Version 1 A COMPUTER CODE FOR THREE-DIMENSIONAL ROCKET THERMAL EVALUATION http://home.manhattan.edu/~mohammad.naraghi//rte/rte.pdf Page with several other...
  33. C

    Explaining Code Reading Problem: for (int i=0; i<=9; i++)

    Hi! for (int i=0; i<=9; i++) { for (int j=0; j<i; j++) cout << " "; for (int j=i; j<=9; j++) cout << "*" cout << endl; } Can anyone explain me what these lines are doing? Thank you!
  34. G

    How Do You Debug a Parent Method in a Red-Black Tree?

    Hello, I am having some trouble with my red and black tree. I made up a parent method which finds the node before the node and then sets an iterator to that node. The code is below: private RBNode parent(Comparable x, RBNode i) { RBNode tmp = new RBNode(null,null,null); if(i==null ||...
  35. 0

    Crack the Code: Find the Optimal Strategy

    There's a funny flash game where one of the puzzles is to guess a four-digit password with digits from 1 to 8. After each guess, the puzzle gives you some number of x's and some number of o's, with the x's indicating how many numbers you guessed correctly and in the right place, and the o's...
  36. L

    How Accurate is the Science in Angels and Demons?

    the Da Vinci Code and Angels and Demons...what else? I'm just curious about the opinions of everyone here on the Da Vinci Code, and Angels and Demons, especially concerning the 'scientific' side of the latter. Since many people here are pretty knowledgeable about a lot of the stuff in the...
  37. P

    ASTM D394-47(B): Info and History

    Has anybody heard of this code, ASTM D394-47(B)? I can only find ASTM D394-59(1965) and it as already withdrawn at 1969. Thank you!
  38. O

    C/C++ How Do I Resolve Compilation Errors in Turbo C++?

    I've compiled this code in linux by using g++. I also need to compile it bye Turbo C++ (I have version 4.5 of that). I tried to compile it but there were lots of errors. I tried the documentation and followed the instructions but some errors still exist. Is there somebody to revise the code...
  39. Hootenanny

    Did The Da Vinci Code Film Stay True to the Book?

    I went to see the Da Vinci code movie on friday. I would quite wary as the critical reviews were not all that good. However, in my opinion it turned out to be a very good film; I was impressed how much the film actually stuck to the book (although there were a few deviations). I was...
  40. DaveC426913

    DaVinci Code question - Fibonacci Series

    Warning: minor spoilers I'm sure there are a hundred fora devoted to discussion about The DaVinci code, but, well I'm here. So, to anyone who's read the book, my question concerns the sequence they use when accessing the Swiss Bank Account - the Fibonacci series ( Chapter 44 - p.204-205 in...
  41. JamesU

    Google Da Vinci Code Quest: Are You Up for the Challenge?

    http://www.google.com/davincicode?source=brpp Who's playing this? None of the challenges are really THAT hard (except for today's, Day 19) I think you win something if you're one of the first 10,000 to beat it (WHo actually read ALL of the rules...?)
  42. A

    BCD to Excess-3 Code Conversion w/ 3-8 Decoder & NAND

    How to realize a BCD to Excces3 Code converter using only 3-8 Decoder(s) and four NAND gates?
  43. D

    Software to code for guitar sound

    Hi, I have downloaded a software to code for guitar sound, it's great, sounds cool but I don't know anything about guitar notes. Do you have any tutorials for aguitar newbie?
  44. H

    Exploring Assembly Code for Pentium Ones

    Can anyone explain how this simple assembly code is working: This is specifically for pentium ones I am actually lacking codes for assembly,,didn;t get any...if you have any please give.. ---------------------------------------------------------------- #include<asm/unistd.h>...
  45. C

    Computational Physics: The Future of Network Code Development?

    Would you ever be writing network code as a computational physicist?
  46. murshid_islam

    How to Use Huffman Code for Encryption?

    hi can anyone help me with this? i need some materials on encryption using huffman code. is there something useful in the internet? can anyone suggest some link. thanks in advance to anyone who can help.
  47. B

    Decimal Values & ANSI C Code for Image File

    Hi, I have a problem to code this: Image that you have the following file presenting the following decimal values: 2 A 40.0 115.00 1.02842 5.944 10.0528 -1.656 115.00 1.01911 4.678 10.0528 177.078 11 6 100.0 115.00 1.01530 2.392 2.9097 11.933 115.00 1.00338...
  48. F

    I dont know the code for exponential

    \int \ell^{x^2} x^2 dx = 1/2 \int \ell^{x^2} x^2 d(x^2) = 1/2 \int \ell^{t} . t dt (Let x^2 = t ) = 1/2 [t.\ell^{t} - \int \ell^{t} dt] = 1/2 [t.\ell^{t} - \ell^{t} + c ] = 1/2 [x^2 \ell^{x^2} - \ell^{x^2} + c] \ell is actually exponential. I don't know the code for...
  49. murshid_islam

    I was reading simon singh's the code book

    i was reading simon singh's the code book. it describes different systems of cryptography. but what i wanted to know was how to 'crack' different ciphers. can any suggest anything i can read. thanks to anyone who can help.
Back
Top