25.04.2013 Views

2º dia - Linguagens, Códigos e suas Tecnologias ... - Cursinho da Poli

2º dia - Linguagens, Códigos e suas Tecnologias ... - Cursinho da Poli

2º dia - Linguagens, Códigos e suas Tecnologias ... - Cursinho da Poli

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CURSINHO DA POLI<br />

0009-2<br />

Outra forma de codifi car uma mensagem são as<br />

cifras de Hill, basea<strong>da</strong>s em transformações matriciais.<br />

Veja um exemplo de codifi cação <strong>da</strong> palavra AMOR:<br />

Para usar uma matriz n × n, separamos a palavra em<br />

conjuntos de n letras. Para uma matriz 2 × 2, a palavra<br />

fi cará assim: AM – OR.<br />

Invente uma matriz 2 × 2, por exemplo, A =<br />

0 2<br />

2 1 e<br />

multiplique-a por uma matriz coluna forma<strong>da</strong> pelos números<br />

correspondentes às letras que foram separa<strong>da</strong>s<br />

<strong>da</strong> palavra AMOR, conforme a tabela a seguir:<br />

A B C D E F G H I J K L M<br />

1 2 3 4 5 6 7 8 9 10 11 12 13<br />

N O P Q R S T U V W X Y Z<br />

14 15 16 17 18 19 20 21 22 23 24 25 0<br />

24<br />

Para AM, obtemos 1<br />

13<br />

e para OR, 15<br />

18 .<br />

Dessa forma, para codifi car AM, fazemos:<br />

0 2<br />

2 1<br />

× 1<br />

13<br />

Dados para as questões 67 e 68:<br />

= 26<br />

15<br />

Note que a letra A foi cifra<strong>da</strong> para 26, como esse<br />

valor não existe na tabela, devemos tomar o resto <strong>da</strong><br />

divisão desse valor por 26 (total de letras), ou seja, 0,<br />

que resulta na letra Z. A letra M foi cifra<strong>da</strong> para 15, que<br />

na tabela corresponde à letra O.<br />

Para codifi car OR, fazemos:<br />

0 2 15 36<br />

× =<br />

2 1 18 48 .<br />

A letra O foi codifi ca<strong>da</strong> para 36, cujo resto <strong>da</strong> divisão<br />

por 26 é 10, que, conforme a tabela, corresponde à letra<br />

J. Já a letra R foi codifi ca<strong>da</strong> para 48, que resulta em 22<br />

(resto <strong>da</strong> divisão de 48 por 26), ou seja, a letra V.<br />

Assim, a palavra AMOR foi codifi ca<strong>da</strong> para ZOJV.<br />

H. A. Anton e C. Rorres. Álgebra Linear com aplicações.<br />

Porto Alegre: Artmed, 2001.<br />

Com base no texto, a alternativa que apresenta uma<br />

codifi cação para a palavra CASA feita pelo método de<br />

cifras de Hill a partir <strong>da</strong> matriz B =<br />

1 0<br />

2 1 é:<br />

a) CGSN<br />

b) CSNG<br />

c) CCBN<br />

d) CVBG<br />

e) CGSM<br />

Os gráfi cos seguintes mostram a evolução <strong>da</strong> captação líqui<strong>da</strong> em investimentos em poupança e em fundos DI/<br />

ren<strong>da</strong> fi xa. Analise-os e respon<strong>da</strong> às questões que seguem:<br />

BALANÇO DOS<br />

RENDIMENTOS<br />

Rentabili<strong>da</strong>de<br />

acumula<strong>da</strong>, no 1o semestre, em %<br />

Ibovespa<br />

37,06<br />

Fundos de ren<strong>da</strong> fi xa 5,64<br />

Fundos DI<br />

5,47<br />

CDB<br />

5,19<br />

Poupança<br />

3,58<br />

Dólar –15, 85<br />

fonte: Folha de S.Paulo, 7 jul. 2009

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!