.

THE CAR1QON GUlDE TO~ I,'

~

=L~~~~ .~

;,;;."

.-.~

Also available by Larry Gonick, with Mark Wheelis THE CARTOON GUIDE TO GENETICS

THE CARTOON GUIDE TO

COMPUTER SCIENCE

Larry Gonick

mn

BARNES & NOBLE BOOKS

A DIVISION OF HARPER & ROW, PUBLISHERS

New York, Cambridge, Philadelphia San Francisco, London, Mexico City sao Paulo, Sydney

THE CARlOON GUIDE 10 COMPUTER SCIENCE. Copyright © 1983 by Larry Gonick. All rights reserved. Printed in the United States of America. No part of this book may be used or reproduced in any manner whatsoever without written permission except in the case of brief quotations embodied in critical articles and reviews. For information address Harper & Row, Publishers, Inc., 10 East 53rd Street, New York, N.Y.1oo22. Published simultaneously in Canada by Fitzhenry

. & Whiteside Limited, Toronto.

FIRST EDITION

Library of Congress Cataloging in Publication Data Gonick, Larry.

The cartoon guide to computer science.

(College outline series; CO/417) Includes index.

Summary: An introduction to computer science in cartoon format.

1. Computers--Caricatures and cartoons. 2. Electronic data processingCaricatures and cartoons. [1. Computers-Cartoons and comics. 2. Data processing-Cartoons and comics. 3. Cartoons and comics) I. Title. II. Series.

QA76.G593 1983 001.64 82-48251

ISBN 0-06-460417-9 (pbk.)

83 84 85 86 87 10 9 8 7 6 5 4 3 2 1

COMPUTER SCIENCE

LEARNING

HAS NEVER BEEN SO EASY OR SO MUCH FUN

Here are the elements of computer science illustrated, simplified, and humor-coated so that you understand them at once. Use this book to lighten up that serious course you are taking or to penetrate the fog of that equally serious textbook you are trying to follow. Read it to gain both an overview and an inner view of that computer you are learning to use. Or if you feel the computer revolution is passing you by, let it give you a point of entry. It won't make a programmer out of you, but it will put you well on the way to computer literacy.

In these pages you'll meet Charles Babbage and his analytical engine, which was never built, and Ada Augusta, Lady Lovelace, who programmed it nevertheless. You'll also meet George Boole, whose algebra underlies the design of circuitry. You'll learn about binary numbers, computer components and architecture, software, programming languages from machine language to BASIC, and special computer applications-cryptography, artificial intelliqence, and others you may not have heard of.

BARNES & NOBLE BOOKS;

A DIVISION OF HARPER & ROW, PUBLISHERS

Cover design by Larry Gonick

»$5.25 ISBN 0-06- 460 417-9 09050583

\'f\\2T I. T~e ~&~S of ItJFo[<M~TiOP , 1

\}.m~T IS 1~~M~TIOtJ ~ 7

1t\e eVOL.v1iotJ OF- -r~ CoM'VvTef' •••..••.••••. 14-

fA~T]I. LOblCAL- S~AGf\€TTI 87

1~~ l~foPM~1iON f~~gSo~ ~o

T(-\E ft<oC~SSI~b utJrr 97

MEMO~ V .................................•.•• J? I

G6r-rI~(? 8\1E:fYT~~0 U~DeR CoJJi~L IY1

ft\~T ]I.. SOfT I,O~ Fe , 1 S,

r~tJ0 M~Cf\I~e5 ......•...••..••..••.•.•. 190 AL.bOF-l1l'MS .....•...•••.••••..••.•.•••••. 19'5

Sf\SIC B.~·S.1. C 207

&?FnO~ ~"ey . . . . . . . . . . . 221

ItJ Q)~CL.VS/OtJ •.••••.••••••••••••••••••• ".2'37

BrB~lo&l'N'~ 2.~2.

\~De}(. .......••.••.•....•.•..•.......•... ' .....•. 243

~x ;THE AGES OF ;NFORMAT'~

, - " -------, ~ -

. - .. . ..- ....

",. .

-3

t

••••• tII •••••••••••••••••••••••••••••••••••••• ~ ••• ,. •••••••••••••••••••••

1

AceORDltJb To ~AWOtJ, IWO~MATIO~ 15 fRe<JfJJT WIIe~Vfl< A (,1~At, IS I~A~SMI-rTt'D ~OM ~e fLAce To A~OT}l~:

81 ~~

SI"fJAL ll_____j

IT PDf%tJ'T MATTeR VlHAT "/tJD Of SlbtJl\l IT If>. ~ ~AMPL..E:

~LL. T"ose SI(9llA~~, \~CWDltJb " flJNCI' I~ T~~ MOUTH, C~~ ~ R~CORDW \tJ SO~e Wf\V ... StlbbeST/~b T~AT '~fO~M~1l0~ CPttJ &6 STO«ff) AS weLL .. P.S -r~ANSMITTeP ~~ ~ecelvw ...

~ JJlg."~~»)~)

10

it

13

. .

. . .. . ....

~ . ..

. .'

I~

~ II?

19mr7

17

~UI'I'BeR5 Af1~ AI..50 U~IQlIe- I~ 1~1>-1 '1011 "DO TI'IBM" OtJ ~OV~ f/~b~f,l W~ll..e 01HtR rA~T5 Of lNlhVA~ ~N'Pev

N\l\ltJl-'I' \~ you~ ~~AIJ ." ~~, CcUtJ1j~b ~AS ~

PIGITAL* fl20," T~e f>~bIP~ltJ&!

1\01» MA~V

"'\11\1/11111"" \I '" '1\\\

1--1

-

-

-

-

-

---

---

,_--

-

.:::--::

-

-

---

-

-

~

--

-

-

--

-

-

-

-

(,eT? CAW, :g ~FT~ t\ ~ ~
ret-' ~ "HAtJDf!Jt:' ~1l.-6, ~
~tJV Do ~Mf vov FE-ACft ~ ~
COU~lWb. ~ {\
HAlJPAlJ,
flpbT WMe ~ Of g g
~Me ~VM&~~ fliljJpff/l/j
t.11<f.
"TWO "~~t..? -:!ff' lTel Te;~, ~ ?J
~~t> T~Re~ ft~~). ~ g
-r~ COM~ A ~At.\I>fVt. of RA~DfVls ~~t> Df.l6 ...
" " " " " Tt.UO
.
. .
" " " 'I I' f\ "A~DfUt.. ... ~\-lD TKeTV - ~ ~~tJt>fU£' of \\~DfVL.S Of \\~DfIU .. S·

ZI~ ~~ ~3 ~~ ~3J ~~ ~~ ~€J ~~ ~~ ~ §J~ ~2I ~~ ~~ ~S ~~ ~~ ~~ ~~ ~g ~~ §J~ ~~ ~~

~~ ~~ ~3 ~3

~~ ~~ 3~ ~~

S~ ~~ ~~ ~~

~~ "SI~ ~3 ~~

~~ ~~ ?J~ ~~

r~~T~ 'O'(.IO~(o ... I oro.

otJe T~t ~bYfTIAtJ S'f.;ieJ\1, u$W f\ DlfftRetJT 8Ytt1~~ fa ~ 6ActI ~ew I\A~rft!l.·

\ ,. ojJ~ n ~ TtfJ ~::: ~ufJDAA>

f ,. TttlXJSNlD (,. t~f\Pl' ~.. r~~~c>

T~tJ You JUST \'11£ TtI~ up:

~ ~(fff n

rrr

r~Te.> T\tOU".AtJDS Tlt'lISAtJOS

Of'. 1-7ft:l, 01 ~

\ 1\ 1\ \ 1111 \\11\ T If lif lI\f

Z-~ 4 ~ ~789

.)

62.,0'<1- + 74, '''8 '36,'82..

~o

0001.

IT (o.oi~levTep f\ CotJrL6 Of MAT~EfMilC,Al, ~O~ To aJ&(.,1 s,.t ,

41

SlJT 8~a< To AI..&ol<fC;M ... £:) 43

l

--------------------------------~~

47

50

ACF-O~ ll\e e~bL.ISI-\ c~~~~eL, JACQUM~D'5 \l)e~ S6T OfF ,.. CHNtJ ~&~CTIO~ It-! Tf-\~ ~~PtltJ Of

(SOOdJ~[b§~

6J

I I

I I TAe nm~~<niH@lJ(1$ To Tf'E MU l-WlIL.P U ~~p It-! ~ futJCftCA~DS.

I

I

fRoM Tf\15, o~e WNlTro fo Wtr.

T~lOTN.. ~O~8~ Of c(TlZepS ...

\\olll M~V'( \\I\D O-'}. CHI'-O~eJJ· .. ,

KOUI ~p.~V W~ fi\IUl~~T l\lfJDU; ...

~,.(.!

T •

I

o- /11, I 'II I ' 1 :

L II' I I '1'1'1

p ,al I I I ' I

C : II I I II' I I

.J 'I I I I' I I I

'" 'I I ~. I , I ,

"'15 ~ StUJwS ReSf'o~~ Of l,a, l·C, ~'b, 4-4,'5-<1, ~c ... b4

It'e CA~DS lU~e "R~~ti' e~ 1\ DeV\C€ CO~gI5TltJ& Of ~ hFID Of L\TT£..E ~I~S N\OV~TB\) OtJ sYRl~(bS ~UD WIReD e~OCTR\C~l,LY .

. , erc!

"OL~n~ fDu~Dro A eoMfA~~ TO MM.lUfA',TORE IUS

C~~V· 0fe1<1X,-eD D~ij). fl\ocessoRs, ~~p ~E fi>U~{) ~ ~OM6Ef Of TA\(~~:

..

.. ..

,

I-~~_____"l ~

-=-

-

r-,.___ r

-

-

,.' ,

. . ,

.

.~.

,

,

...

,

-

/

I

'"

-

-

...

1000,000

, llM~ fet' S«/)~ t«

,.

70

Wbo bUilt

T\\€ ~~5T MC-~oMt(Jl~~{At COMWTeR \ 1\%~ v~

~~Sr w~s 0". D.

(1110- 1.

\\\5 Z'1 \WIt. T I ~ lti*', CALWl-~Tev \P\1~ ~7 ~~D ~m> l~fVT ~ ~v~~ flL-M.

71

72.

~

)_

74

7'

77

@ IliI't/J RUIi~IN. Ttt 1'RDbf1A~ rnCll Till'

~ \~11l\l"1iO~ S~AI&ttf ~ ~,t10~y, ~T~ litAp

~~t>I~ ~ ~ 1'11~C"V p;r ~ STeP .

•• ir-:4:;;:;:~ 1~IS IS T~~ CDAlcefT Of litE

STORED PROGRAM.

11'5 ~ ~IMfL£ JOe, To ()l;~CRI~: ~\V6~ TWO L-ISW

Of Nj\M~S (~

tX~\,L.e) :

--- ......

~L~eAM~, s. ThR1)I~Aret c.

~NTeATett, J. ~~~"ef2t M. ~

~~TmeBt e. CW~, \\.

~~~t'VPl1''', A· ~~Uh~T~, ft..

8+

• • • • • • • •

· •

· •

·

••.•. fI._" .••. " •.• ~ ••..• _ .•. " ••. , .....•••.••••..••••...........

Sir' fitt~ 1iMfk, 9\& Cc~OT~S ,: ~"'D ft~Pd-L.'( Tt\~ exonc..

~oA~N~RAMES ~~ ~ SUPf8COMrUT~RS,

,n J~ r, , : VJt\1C.t\ epuu~ ~r ~~,es

~etOMI1 I~MeNseti( ~DW~L.· : Of To ~ ,"e~~ftOPS'" - ~ MI~Uo~ TlMf'6 f~ TJbW E,lllf«. !

,

: \N 'TM~ '10's CAMe Ttt~

; MJCR 0 I wtt14l CNJ gE

: I\~ SMALl; 1-<;' ~dIJ lAKE.

• • • • •

·

: 1C !\IUlO}l fto/(fj~ fDf~ ~ , ytlt Sf&OLlP.

85'

·1

fART ][

OG}CAl

. SPAGHETr~

..... " .. - .. "", ~, - -.

HoW ~ o,.e 66i To Tttf »e'pcp.T Of TtUi f't1P.TTE;f< ~

~ ~DP 6 01. of~~ ~ SfAb\,£TTI.

9'

~'_~~~r~

CoNTKOL "NIT.

~11l' COMYOT~? I Il\~ D/AG~AM I~ SU btt"("VY Dl~"'t Tt\~€ ~€- TWO ~~A~ fO~ Ttt1;, OV~ I~ ,.~

tACT I~~T I~WT r.~D OVTfVT Ail€- l~fOFM~T'O~, NOT foOD - So TitE &FAY mow I~ 1"ttE ~AM~ fr5 T~6 WIt'ITl? O~fS.