Top Banner
Static Array Adam M.B.
14

Data Structure (Static Array)

Apr 16, 2017

Download

Software

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Data Structure (Static Array)

Static Array

Adam M.B.

Page 2: Data Structure (Static Array)

DESCRIPTION

Page 3: Data Structure (Static Array)

Collection of data which have same data

type that can be accessed with their index

Description

Page 4: Data Structure (Static Array)

In Memory

Page 5: Data Structure (Static Array)

DECLARATION

Page 6: Data Structure (Static Array)

Declaration as Variable

Kamus:

NamaArray : array [1..MaxSize] of TipeData

Contoh:

Kamus:

bil : array [1..5] of integer

NamaDosen : array [1..20] of string

Pecahan : array [1..100] of real

Page 7: Data Structure (Static Array)

Declaration as User-Defined

Kamus:

type

NamaArray = array [1..MaxSize] of TipeData

NamaVariabel_1:NamaArray

NamaVariabel_2:NamaArray

Page 8: Data Structure (Static Array)

Declaration as Constant

Kamus:

const

MaxSize = VALUE

type

NamaArray = array [1..MaxSize] of TipeData

NamaVariabel_1:NamaArray

NamaVariabel_2:NamaArray

Page 9: Data Structure (Static Array)

Declaration as Record

Kamus:

Const

maks_array = 5

Type

DMahasiswa = record

< nim,nama:string,

nilai :integer,

indeks :char >

endrecord

mahasiswa=array[1..maks_array] of DMahasiswa

mhs:mahasiswa

Page 10: Data Structure (Static Array)

OPERATION

Page 11: Data Structure (Static Array)

• Creation

• Traversal

• Searching

• Sorting

• Destroy

Page 12: Data Structure (Static Array)

• Merge sort

• Insertion sort

• Radix sort

• Quick sort

• Shell sort

ADDITIONAL SORT

TUGAS

Page 13: Data Structure (Static Array)

MERGE SORT

Page 14: Data Structure (Static Array)

Contact Person:

Adam Mukharil Bachtiar

Informatics Engineering UNIKOM

Jalan Dipati Ukur Nomor. 112-114 Bandung 40132

Email: [email protected]

Blog: http://adfbipotter.wordpress.com

Copyright © Adam Mukharil Bachtiar 2012