Aplikasi Rekursif.

Slides:



Advertisements
Presentasi serupa
soal Advanced class Fertures
Advertisements

Lecture Note: Trisnadi Wijaya, SE., S.Kom. Waktu: Arus Kas:-100 5%
Bagaimana Menghadapi Kematian All of us fear death. This is perfectly natural. However, death is part of life. Once we are born, we will have to die. No.
Teknik Counting Lanjut
Design and Analysis of Algorithm Recursive Algorithm Analysis
Pertemuan-4 : Recurrences
Alokasi memori dinamis
MANAJEMEN KEUANGAN WA FB: Wardoyo HP Wardoyo.
Langkah Awal Modularisasi
Proses Stokastik Semester Ganjil 2013/2014
Presented By : Group 2. A solution of an equation in two variables of the form. Ax + By = C and Ax + By + C = 0 A and B are not both zero, is an ordered.
Compound Amount Factors
Compound Amount Factors
Masalah Transportasi II (Transportation Problem II)
1 Pertemuan 10 Fungsi Kepekatan Khusus Matakuliah: I0134 – Metode Statistika Tahun: 2007.
Pertemuan 07 Peluang Beberapa Sebaran Khusus Peubah Acak Kontinu
STRUKTUR DATA (10) recursive function
Memahami Time Value of Money
1 HAMPIRAN NUMERIK SOLUSI PERSAMAAN LANJAR Pertemuan 5 Matakuliah: K0342 / Metode Numerik I Tahun: 2006 TIK:Mahasiswa dapat meghitung nilai hampiran numerik.
Suku Bunga Nominal dan Suku Bunga Efektif Pertemuan 5 s.d 6
1 Pertemuan 12 WIDROW HOFF LEARNING Matakuliah: H0434/Jaringan Syaraf Tiruan Tahun: 2005 Versi: 1.
9.3 Geometric Sequences and Series. Objective To find specified terms and the common ratio in a geometric sequence. To find the partial sum of a geometric.
Keuangan dan Akuntansi Proyek Modul 2: BASIC TOOLS CHRISTIONO UTOMO, Ph.D. Bidang Manajemen Proyek ITS 2011.
Penyelidikan Operasi Pemrograman Dinamik Stokastik.
Jaringan Nirkabel Bab #5 – Enkoding Sinyal.
EKIVALENSI NILAI SEKARANG
MATERI PERKULIAHAN ANALISIS ALGORITMA
MATERI PERKULIAHAN ANALISIS ALGORITMA
BARISAN DAN DERET.
Anuitas Akhir (immediate)
Induksi Matematika.
Portofolio Capm.
Recurrence relations.
Algoritma rekursif dan relasi rekurensi
NILAI WAKTU DARI UANG DASAR MANAJEMEN KEUANGAN, MANAJEMEN, 3 SKS.
Konsep pemrograman LOOP
Obligasi.
Present Value.
CSG523/ Desain dan Analisis Algoritma
TUGAS PENGENDALIAN KUALITAS
METODE2 KEPUTUSAN PENGANGGARAN MODAL
Dasar-Dasar Pemrograman
Peramalan Data Time Series
EKONOMI REKAYASA PERTEMUAN 4 INFLATION & DEFLATION Oleh :
BILANGAN REAL BILANGAN BERPANGKAT.
REAL NUMBERS EKSPONENT NUMBERS.
FACTORING ALGEBRAIC EXPRESSIONS
Rekursif- studi kasus.
Recursive function.
Materi Pendukung Pertemuan <<7>> Logika Operasi Relasi
13-1 Lecture slides to accompany Engineering Economy 7 th edition Leland Blank Anthony Tarquin Chapter 13 Breakeven and Payback Analysis © 2012 by McGraw-Hill.
ACCUMULATION PROBLEMS
Cost-Volume-Profit Analysis
Fungsi Kepekatan Peluang Khusus Pertemuan 10
BORNEO ENGLISH DEBATE ASSOCIATION (BEDA) SPECIAL CHARITY PROGRAM
ELASTIC PROPERTIS OF MATERIAL
Perhatikan gambar berikut ini baik-baik,
A SMALL TRUTH TO MAKE LIFE 100%. Hard Work H+A+R+D+W+O+R+K = 98% Knowledge K+N+O+W+L+E+D+G+E = 96%
Simultaneous Linear Equations
Operasi Matriks Dani Suandi, M.Si..
Algoritma & Pemrograman 1 Achmad Fitro The Power of PowerPoint – thepopp.com Chapter 3.
Algoritma & Pemrograman 1 Achmad Fitro The Power of PowerPoint – thepopp.com Chapter 4.
V ERIZON SETTINGS FOR I P HONE, A NDROID, O UTLOOK, AND W INDOWS P HONE.
Design And Production of it based Learning Media Lecturer: Prof.Dr.Sahyar.MS.MM.
If you are an user, then you know how spam affects your account. In this article, we tell you how you can control spam’s in your ZOHO.
How do I Add or Remove a delegate to my Gmail account? Google launched delegation service 9 years ago for Gmail that allows you to give permission to access.
Right, indonesia is a wonderful country who rich in power energy not only in term of number but also diversity. Energy needs in indonesia are increasingly.
Rank Your Ideas The next step is to rank and compare your three high- potential ideas. Rank each one on the three qualities of feasibility, persuasion,
2. Discussion TASK 1. WORK IN PAIRS Ask your partner. Then, in turn your friend asks you A. what kinds of product are there? B. why do people want to.
HOW TO IMPROVE YOUR PUBLIC SPEAKING SKILLS. 2 3 INIKAH YANG SERING ANDA ALAMI SAAT PRESENTASI?
Transcript presentasi:

Aplikasi Rekursif

Tower of Hanoi Tower of Hanoi merupakan salah satu kasus Recurrence Relation. Yang harus dilakukan adlaah memindahkan 64 piringan satu demi satu dari tower 1 ke tower 3 dengan bantuan tower 2, dengan syarat piringan yang besar tidak boleh berada di atas piringan yang kecil

Tower of Hanoi… 1 2 3

Tower of Hanoi… Untuk n piringan maka ada 2-1 iterasi yang harus dilakukan. Maka untuk 64 piringan diperlukan 18.446.744.073.709.551.615 iterasi. Persamaan recurrence relationnya adalah :

Modeling with Recurrence Relations Example: Someone deposits $10,000 in a savings account at a bank yielding 5% per year with interest compounded annually. How much money will be in the account after 30 years? Solution: Let Pn denote the amount in the account after n years. How can we determine Pn on the basis of Pn-1?

We can derive the following recurrence relation: Pn = Pn-1 + 0.05Pn-1 = 1.05Pn-1. The initial condition is P0 = 10,000. Then we have: P1 = 1.05P0 P2 = 1.05P1 = (1.05)2P0 P3 = 1.05P2 = (1.05)3P0 … Pn = 1.05Pn-1 = (1.05)nP0 We now have a formula to calculate Pn for any natural number n and can avoid the iteration.

Modeling with Recurrence Relations Let us use this formula to find P30 under the initial condition P0 = 10,000: P30 = (1.05)3010,000 = 43,219.42 After 30 years, the account contains $43,219.42.

Pertumbuhan populasi kelinci Sepasang kelinci ditaruh di suatu pulau. Pasangan kelinci ini tidak akan beranak sampai berumur 2 bulan. Setelah berumur 2 bulan, setiap sepasang menghasilkan sepasang yg lain setiap bulannya. Tentukan relasi recurrence dari jumlah pasangan setelah n bulan, bila tidak ada kelinci yg mati.

Populasi kelinci: bulan 0 : 1 pasang bulan 1 : 1 pasang ... bulan n : bulan(n-1) + bulan(n-2) pasang

Solusi: Misalkan fn: jumlah pasangan kelinci setelah n bulan, maka, f1 = 1, f2 = 1. Untuk mencari fn, tambahkan jumlah pasangan pada bulan sebelumnya, fn-1, dengan jumlah pasangan yang baru lahir, fn-2. Jadi, fn = fn-1 + fn-2. Solusi recurrence relation??

Terima Kasih Selamat Mencoba