There is an alternative way of reading your question. Do you mean how can matrices be used to encode a message?
If so here is a simple example using 2 by 2 matrices.
(To make it harder you would use 3 by 3 or 4 by 4.)
Change the message into numbers by any method you like,
a = 1 ,b = 2 etc is OK. 'I like maths' becomes
9, 12, 9, 11, 5, 13, 1, 20, 8, 19. Write as two rows and left multiply by any 2 by 2 matrix you like.
(2 1)(9 12 9 11 5) = (31 25 38 30 29)
(-1 3)(13 1 20 8 19) (30 -9 51 13 52)
The message then becomes
31, 25, 38, 30, 29, 30, -9, 51, 13, 52.
Notice that the two I's are now different numbers. That makes this code difficult to break by counting the numbers in a long message.
Edit. The arrangement didn't come out too well above.
Also I did it all in my head rather quickly so there could be a mistake but I hope that you got the idea.
2007-04-28 04:01:59
·
answer #1
·
answered by Anonymous
·
0⤊
0⤋
All fonts are essentially matrix codes, with a lot of information space going to waste.
The smallest matrix that can accommodate 52 characters using binary encoding is a 2x3 (or 3x2). A 3x3 matrix can accomodate 512 (2^9) characters. Creating a simple code:
_ 000000
A 000001
B 000010
C 000011
D 000100
E 000101
F 000110
G 000111
H 001000
I 001001
J 001010
K 001011
L 001100
M 001101
N 001110
O 001111
P 001000
Q 010001
R 010010
S 010011
T 010100
U 010101
V 010110
W 010111
X 010000
Y 011001
Z 011010
a 011011
b 011100
c 011101
d 011110
e 011111
f 011000
g 100001
h 100010
i 100011
j 100100
k 100101
l 100110
m 100111
n 100000
o 101001
p 101010
q 101011
r 101100
s 101101
t 101110
u 101111
v 101000
w 110001
x 110010
y 110011
z 110100
0 110101
1 110110
2 110111
3 110000
4 111001
5 111010
6 111011
7 111100
8 111101
9 111110
. 111111
Using 0's and 1's in a 2x3,
Math encodes as
00 01 10 10
11 10 11 00
01 11 10 10
Using _ and â,
__ _â â_ â_
ââ â_ ââ __
_â ââ â_ â_
Wikipedia lists over 20 matrix codes, most proprietary.
2007-04-28 04:49:09
·
answer #2
·
answered by Helmut 7
·
0⤊
0⤋