Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
5Activity
0 of .
Results for:
No results containing your search query
P. 1
recursive function

recursive function

Ratings: (0)|Views: 322 |Likes:
Published by Abdillah Aziz
STRUKTUR DATA (10)
recur sive function

Oleh

Antonius Rachmat C , S.Kom, M.Cs

Contoh fungsi yang didefinisikan secara rekursif
f(0) = 3 f(n + 1) = 2f(n) + 3 Maka f(0) = 3 f(1) = 2f(0) f(2) = 2f(1) f(3) = 2f(2) f(4) = 2f(3)

+ + + +

3 3 3 3

= = = =

2⋅ 2⋅ 2⋅ 2⋅

3+3=9 9 + 3 = 21 21 + 3 = 45 45 + 3 = 93

Fungsi Rekursif
• Fungsi yang berisi definisi dirinya sendiri • Fungsi yang memanggil dirinya sendiri • Prosesnya terjadi secara berulangulang • Yang perlu diperhatikan adalah “stopping role
STRUKTUR DATA (10)
recur sive function

Oleh

Antonius Rachmat C , S.Kom, M.Cs

Contoh fungsi yang didefinisikan secara rekursif
f(0) = 3 f(n + 1) = 2f(n) + 3 Maka f(0) = 3 f(1) = 2f(0) f(2) = 2f(1) f(3) = 2f(2) f(4) = 2f(3)

+ + + +

3 3 3 3

= = = =

2⋅ 2⋅ 2⋅ 2⋅

3+3=9 9 + 3 = 21 21 + 3 = 45 45 + 3 = 93

Fungsi Rekursif
• Fungsi yang berisi definisi dirinya sendiri • Fungsi yang memanggil dirinya sendiri • Prosesnya terjadi secara berulangulang • Yang perlu diperhatikan adalah “stopping role

More info:

Published by: Abdillah Aziz on Jan 24, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less

02/03/2013

pdf

text

original

 
 
STRUKTUR DATA (10)
recursive function
Oleh
 
Antonius Rachmat C,S.Kom, M.Cs
 
 
f(0) = 3f(n + 1) = 2f(n) + 3Makaf(0) = 3f(1) = 2f(0) + 3 = 2
3 + 3 = 9f(2) = 2f(1) + 3 = 2
9 + 3 = 21f(3) = 2f(2) + 3 = 2
21 + 3 = 45f(4) = 2f(3) + 3 = 2
45 + 3 = 93
Contoh fungsi yang didefinisikansecara rekursif 
 
 
Fungsi Rekursif
Fungsi yang berisi definisi dirinyasendiriFungsi yang memanggil dirinyasendiriProsesnya terjadi secara berulang-ulang Yang perlu diperhatikan adalah“stopping role”

Activity (5)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
prastyo87 liked this
Fuad Pradana liked this
elcaiz liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->