Algoritma dan Pemprograman 1

Garis Besar Data dapat dikategorikan menjadi 2 yaitu :

A. Type Data Sederhana yang terdiri dari :

1.Data Sederhana Tunggal misalnya Integer,Real,Boolean, dan Character.

2.Data Sederhana Majemuk misalnya String.

B.Struktur Data,yang terdiri dari :

1.Struktur Data sederhana misalnya Array dan Record.

2.Struktur Data Majemuk terdiri dari:

a.Linear : Misalnya Stack,Queue dan linear Linked list.

b.Non Linear: Misalnya Tree(pohon),Binary Tree(Binary   tree),Binary search tree(Pohon Cari Biner) dan Graph.


Type Data Sederhana

1.Integer

Merupakan bilangan bulat dan tidak mengandung pecahan.

<!– /* Font Definitions */ @font-face {font-family:”Cambria Math”; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:””; margin-top:0cm; margin-right:0cm; margin-bottom:10.0pt; margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:”Calibri”,”sans-serif”; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:”Times New Roman”; mso-bidi-theme-font:minor-bidi;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:”Times New Roman”; mso-bidi-theme-font:minor-bidi;} .MsoPapDefault {mso-style-type:export-only; margin-bottom:10.0pt; line-height:115%;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt; mso-header-margin:35.4pt; mso-footer-margin:35.4pt; mso-paper-source:0;} div.Section1 {page:Section1;} –>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:”Table Normal”;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:””;
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin-top:0cm;
mso-para-margin-right:0cm;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0cm;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:”Calibri”,”sans-serif”;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
table.MsoTableGrid
{mso-style-name:”Table Grid”;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-priority:59;
mso-style-unhide:no;
border:solid black 1.0pt;
mso-border-themecolor:text1;
mso-border-alt:solid black .5pt;
mso-border-themecolor:text1;
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-border-insideh:.5pt solid black;
mso-border-insideh-themecolor:text1;
mso-border-insidev:.5pt solid black;
mso-border-insidev-themecolor:text1;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:”Calibri”,”sans-serif”;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}

Type

Range

Ukuran

Format

Shortint

-128 s/d 127

1 Byte

Signed 8 Bit

Integer

-32678 s/d 32767

2 Byte

Signed 16 Bit

Long INT

-2147483648 s/d 2147483647

4 Byte

Signed 32 Bit

Byte

0 s/d 255

1 Byte

UnSigned 8 Bit

Word

0 s/d 65535

2 Byte

UnSigned 16 Bit

Operasi Pada Tyoe data Integer

Nama Operasi

Operator

Akar PAngkat Dua

SQRT

Pangkat Dua

SQR

Hasil Bagi

Mod

Pembagian

Div

Perkalian

*

Penjumlahan

+

Pengurangan

2. REAL / Floating Point

Adalah type data yang merupakan bilangan pecahan,jenis data real ditulis dengan menggunakan titik(koma) decimal misalnya 0.32 4,35

Type real bisa juga ditulis dengan rumus : M * Re = X

M= Pecahan,

R= Radix

E= Exponen(pangkat)

X=Hasil Bilangan

Contoh = 3.2 * 10-1= 0.32

4.35 * 102 = 435

Type Data Real

Type

Range

Ukuran(Byte)

Format

Real

+ 2.9X10 -38 s/d 1.7X10 38

6

11-12 Bit

Single

+ 1.5X10 -45 s/d 3.4X10 38

4

7-8 bit

Double

+5X10-324 s/d 1.7X10 308

8

15-16 bit

Extended

+3.4X10 -4932 s/d 1.1X10 4932

10

19-20 bit

Comp

+9.2X10 -18 s/d 9.2X10 18

8

19-20 bit

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: