Tugas Struktur Data and Algoritma I Pert

TUGAS PRAKTIKUM STRUKTUR DATA & ALGORITMA I
Praktikum 9 : Hashing
Tujuan :
Menentukan urutan nomor pada tiap tim TIMNAS Sepakbola.
Kasus :
Di Indonesia akan membentuk sebuah tim untuk ikut TIMNAS Sepakbola Indonesia. Tiap tim
terdiri dari 10 orang. Sang pelatih ingin menyusun nomor urutan pemain pada tiap tim. Namun,
karena pelatih lupa menyusun urutan tim hingga saat petandingan, tim TIMNAS Indonesia
menjadi kacau. Sang pelatih bingung mau menyusun tim pemain. Anda sebagai programmer
bisa membuat program untuk membantu sang pelatih dalam menyusun urutan pemain
TIMNAS Indoensia.
Ketentuan :
 Inputan : Nama peserta ( sebanyak 10 peserta ).
 Sebelum proses hashsing, inputan nama tersebut diubah ke ASCII.
 Penentuan urutan nomor tim menggunakan 2 metode yaitu :
a. Menggunakan rumus fungsi hashing :

b. Menggunakan konsep Linier Probing.
 Output : Urutan nama peserta tim.
Misalkan :
Inputan nama : kelvin, adam, luky, cahyo, dian, sigi, fikri, luluk, wisnu, jipang.

Nilai ASCII : 894 126 734 276 489 136 243 769 354 654
Hasil :
Nilai ASCII :
1. 769
2. 354
3. 654
4. 243
5. 894
6. 734
7. 126
8. 276
9. 136
10. 489

Nama :
Luluk
Wisnu
Jipang
Fikri
Kelvin

Luky
Adam
Cahyo
Sigi
Dian

Tugas :
1. Buat program sesuai kasus di atas ! ( Ingat : Gunakan kedua metode tersebut ).
2. Bandingkan hasil output dengan kedua metode tersebut !
Semoga Sukses
#SemangatHidup 

Dokumen yang terkait

ANALISIS DANA PIHAK KETIGA PADA PERBANKAN SYARIAH DI INDONESIA PERIODE TRIWULAN I 2002 – TRIWULAN IV 2007

40 502 17

Analisis Komparasi Internet Financial Local Government Reporting Pada Website Resmi Kabupaten dan Kota di Jawa Timur The Comparison Analysis of Internet Financial Local Government Reporting on Official Website of Regency and City in East Java

19 819 7

Analisis Komposisi Struktur Modal Pada PT Bank Syariah Mandiri (The Analysis of Capital Structure Composition at PT Bank Syariah Mandiri)

23 288 6

IMPROVING CLASS VIII C STUDENTS’ LISTENING COMPREHENSION ACHIEVEMENT BY USING STORYTELLING AT SMPN I MLANDINGAN SITUBONDO IN THE 2010/2011 ACADEMIC YEAR

8 135 12

Improving the Eighth Year Students' Tense Achievement and Active Participation by Giving Positive Reinforcement at SMPN 1 Silo in the 2013/2014 Academic Year

7 202 3

The Correlation between students vocabulary master and reading comprehension

16 145 49

Improping student's reading comprehension of descriptive text through textual teaching and learning (CTL)

8 140 133

The correlation between listening skill and pronunciation accuracy : a case study in the firt year of smk vocation higt school pupita bangsa ciputat school year 2005-2006

9 128 37

Aplikasi Data Mining Menggunakan Metode Decision Tree Untuk Pemantauan Distribusi Penjualan Sepeda Motor Di PD. Wijaya Abadi Bandung

27 142 115

Pengaruh Kebijakan Hutang Dan Struktur Kepemilikan Manajerial Terhadap Kebijakan Deviden Pada PT. Indosat

8 108 124