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.
next to every line i commented on what i think it does
where is my mistake in understanding of changing the index of the pointer
??
#include <stdio.h>
int main() {
int *ptr;
int arrayInts[10] = {1,2,3,4,5,6,7,8,9,10};
ptr = arrayInts...
I am new in MATLAB and recently, I have tried coding in matlab. So far, I have been getting error msg
"Warning: Failure at t=2.859413e+002. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (1.015868e-012) at time t."
I have referred...
when i compile it i get perfectly well output
without any endless recursion
but when i trace this code:
#include <stdio.h>
int a(int n,int count){
int i;
for(i=0;i<n;i++)
count =a(i,count); <<<<<<<<<<the problematic line
return count+1;
}...
Alright I have to questions one is on how to measure the time it takes for my computer to solve a particular code I've tried the the "tic toc" and that seems to be dependent on the time frame that I typed in tic and toc. I need something that Is only dependent on the time taken to process and...
Hi everyone, Maybe it's useful for someone who are not familar with latex but want to enter complex formulas.
I suggest a new way to insert latex formated equations.
I use LYX (www.lyx.org) ,it is a open source Latex WYSIWYG word processor. It will display the the latex code in another...
Hello,
I would like to define (calculate/plot) the radius of collapsing interstellar cloud as a function of temperature, density and presure of the star. I would like to describe the collapse calculations of an originally homogenous cloud of one solar mas, with low initial presure and...
Hello,
Here's a conceptual question:
The wobble effect says that 1 tRNA can be used for more than 1 anticodon, as the nucleotide near the 5' position of the anticodon does not need to follow strict base pairing rules.
The degeneracy of the genetic code refers to the fact that more than...
Hello, my friend:
Recently, I encounter a MATLAB program problem on the propagation of the soliton in
dielectric . I find that many people use a beam propagation method ( split-step fft ) in order
to simulate this procedure. But I cann't get incorrect result.
I am eager to...
Does anyone remember the controversy when this article was published:
Doron Witztum, Eliyahu Rips, Yoav Rosenberg (1994). "Equidistant letter sequences in the Book of Genesis". Statistical Science 9: 429–438.
Basically it was about a bible code and modern people's names found in...
I have the following problem:
Suppose I have a tree of data as follows (Labels represent the branches of the tree, Nodes represent data "leaves" contained in the branches):
Label1
Node1
Node2
Label2
Node3
Label3...
Hi,
We assume
Max hBy(y) = α1 for y ε (a1, a2) and Min hBy(y) = α2 for y ε (a1, a2)
Where -∞ < α2 ≤ α1 < ∞, and the complex phase speed must lie in the region defined by
(CR + α1 )^2 + CI^2 ≤ µγ^2/k^2, if CR <- α1
CI^2 ≤ µγ^2/k^2, if -α1≤ CR ≤-α2,
(CR + α2 )^2 + CI^2 ≤ µγ^2/k^2...
I'm pretty sure I wrote the correct code for the quadratic formula and yet Dev-C++ continues to find a problem with my code. I will post the code I've written:
#include<iostream.hpp>
#include<math.h>
int main()
{
double root1,root2,a,b,c,root;
cout << "Enter the...
I frequently Update file on my memory stick and (foolishly) forget to backup(!) could i script an auto run for when i plug my memory stick in it would sync. specific files.
Please reply soon I need Help!
I'm having some trouble with LaTex.
Here is the LaTex code:
\frac{1}{q_{2}} = \frac{A q_{1} + B}{C q_{1} + D}
And it should produce this:
\frac{1}{q_{2}} = \frac{A q_{1} + B}{C q_{1} + D}
Here, it's produced just fine. But in TeXnicCenter, it produces this instead...
hey guys,
i want to wirte a function which takes as its arguments two lists of co-ordinates (the first
is a list of customers and the second for possible switch locations), and determines the index of the best switch location to minimise the amount of cable required.
I have done the...
I had to write a java program that will give you the change for whatever random number that program picks. I keep having a problem with the pennies. If have to have more than one penny then program will repeat the output until it gets the pennines right. PLEASE HELP! I am not really good at...
People are coming up with new products all over the world every day. So how is it that no two products ever have the same Universal Product Code (Bar Code) at the same time? Or do they?
A 16-bit word is coded in modified error correcting Hamming code and after that is stored into a cell of the main memory. After some time a program reads the cell and the following word is read into the memory data register:
0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 1 1 1
Perform all...
Homework Statement
I have discovered that in order to suceed in Chemistry, one must learn the polyatomic Ions. My instructor said the best way is to just memorize them, but here is the thing. Ok I can memorize that peroxide is O2, but memorizing the charges is kicking my behind. I was...
hi guys,
Im having trouble trying to understand calculations of binary numbers. In pic16f84 i assume that a variable can have a value of 0 to 256. If i wanted to have a value larger than 256 i need to add another variable and count the number of overflow. for example when counta overflow then...
Hi everybody. I'm relatively new to C++ and am having an issue. What I need to do is take in several files and then do some data processing in each of them separately. I've tried to do this several ways and nothing has worked so far. Below is my last attempt.
Basically, each file is...
Huffman code?!?
Hi there!:smile:
Im having abit of trouble getting my head around this question concerning the Huffman code,the average length of an encoded symbol etc...
:confused:
the full question is attached!...help would be v. much appreciated!
I'm using texmaker, and i need to explain how to use some of the functions.
Therefore i need to be able to write the codes in a way so that the reader can see the codes afterwards.
Does anyone know how to do that? Because i can't find a way to do it.
Hi,
I tried to assign inputs to a particular output and I've got some funny results. In this code
ive change the value of rpm to into the address of arrays that I've set. The adress correspond to the delay time for spark to occur.
Heres my c code :
#include <stdio.h>
void main()...
Apologies for posting a religous story - but it's really human nature or cryptography.
A town in the USA has managed to have it's phone code changed from 666
http://news.bbc.co.uk/2/hi/americas/7163767.stm
Ironically this comes after the discovery that 666 is a typo and it should be 616 -...
wonder if anyone have stumbled across ready code for http://mathworld.wolfram.com/GreatCircle.html" - i.e., the code to get from phi1 theta1 to phi2 theta2 on sphere.
Hi there,
I have a version of WIMS-D5 code which cannot be run on Windows XP. Also I don't have its source code to recompile it.
Anybody has a version of WIMS_D5 which can be run on WinXP?
Thanks a lot.
http://en.wikipedia.org/wiki/Vigen%C3%A8re_cipher
I have comprehended how to make a cod using this method. I understand frequency analysis for the most part. But does anyone know how the formula for decoding a vigenere code work. I have read that part of the wikipedia article many times...
I have very large equations that I need to solve using numerical techniques. The equations are in latex. From these now I need to form matrix in fortran and then continue the solution procedure in fortran. Can anyone advice how I can do this conversion from latex code to fortran code. The number...
Hi all, I have the following code:
where checkHR and checkMIN are 8 bit vectors (7 downto 0)... and SECL, SECH, MINL, MINH, HRL, and HRH are all 4 bit vectors (3 downto 0).
What I'm trying to do is check to see if the first four bits of checkHR is equal to HRH.
Can someone tell me...
I am taking a beginners programming course and we have to manipulate a Bitmap image with code in C. Currently I am trying to create a function which reads the Bitmap file, and stores the contents (Width,Height,Palette Info, and Pixel Data) into structs, so that it can be accessed by other...
While learning secondary physics in high school I often used the idea of the entire universe being a computer program to help me better understand how some things (Strong atomic forces, for example) would work by visualizing how I would program them should I need to recreate the same effect in a...
I can't see what is wrong with this code, but for some reason it doesn't work. It compiles, just doesn't do what it should.
for(i=0; i<n; i++)
{
delx[i] = i/n;
}
I have defined delx as an array, with n elements, and just want to fill the array with evenly spaced...
Hello,
Even though physics is a professional field practiced by licensed professionals there is no document establishing an ethical code of conduct. For instance, a medical doctor cannot just decide that he wants to use 18th century methods and starts treating his patients with bleeding! But...
Homework Statement
Graph of x(t) = 9e^-2t for t>=0 and y(t) = 4e^(-9*pi*t).
Is my MATLAB code correct? I did it by hand and I'm getting a different answer, so I don't know which one is the correct one... if my hand one is correctly done or if the MATLAB one is correct. I'm learning MATLAB on...
Homework Statement
A DT system has the unit response h[n] = (0.2(1.3)^n)u[n]. You then input x[n] = sin(n*pi/2)u[n]. Find the convolution.
Homework Equations
None.
The Attempt at a Solution
>> n = 0:30;
>> h = 0.2*(1.3).^n;
>> x = sin(n*pi/2);
>> s = conv(h,x);
I left out u[n] because we...
Balls A,B,C,D are traveling at V=1 to the right next to each other like a train they hit ball E whom is stationary. At the exact instant ball F is traveling down and hits A, F is traveling at V=1 but down
Here is a diagram this is birds eye view:
*=collision
both collisions have...
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?
now i saw this posted somewhere else, they got 63. don't...
Ok here is the code below, I need to know what I need to change in this code for it to be able to be a clickable link... I have many layouts and want to add more but with so many pages, its a bit hard to go through 49 pages just to add one page. I already submitted this problem to web design...
Hi everyone:smile:,
This is my question:
" Describe the concepts of PCM (Pulse Code Modulation) in a computer keyboard which its data are in digital format."
This is my justification:
How to describe the concepts of PCM ? Isn't PCM a technique used to transmit analog signals in digital...