SlideShare a Scribd company logo
KELOMPOK 1
REKURSIF
Anggota Kelompok :
- Ramdhan Rizki J.
- Fikri Fatoni
- Ilham Rizki
- Yudi Supriyadi
- Tioreza Febrian
Apa itu rekursif ?
Rekursif merupakan suatu metode pada fungsi atau
prosedur yang didalamnya terdapat perintah untuk
memanggil fungsi atau prosedur itu sendiri
BAGIAN – BAGIAN REKURSIF
BASIS
Bagian yang berisi kasus yang terdefinisi secara eksplisit. Bagian ini
juga sekaligus menghentikan rekursif.
REKURENS
Bagian yang akan memanggil dirinya sendiri
CONTOH KASUS
int faktorial (int a)
{
if (a == 0 ) {
return 1;
} else {
return a * faktorial (a - 1);
}
}
Basis
Rekurens
PENJABARAN
faktorial(5) = 5 * factorial( 5 - 1)
= 5 * 4 * factorial( 4 - 1)
= 5 * 4 * 3 * factorial( 3 - 1)
= 5 * 4 * 3 * 2 * factorial( 2 - 1)
= 5 * 4 * 3 * 2 * 1
= 120
faktorial( )5

More Related Content

Viewers also liked

Authentic
AuthenticAuthentic
федорякина анастасия+садик+частные детские сади и центры
федорякина анастасия+садик+частные детские сади и центрыфедорякина анастасия+садик+частные детские сади и центры
федорякина анастасия+садик+частные детские сади и центры
Анастасия Федорякина
 
Practice this that these those
Practice this that these thosePractice this that these those
Practice this that these those
musha2321
 
Digital Badging at the Open University
Digital Badging at the Open UniversityDigital Badging at the Open University
Digital Badging at the Open University
Dr Patrina Law
 
Building an efficient infrastructure, standards and data flow for metabolomics
Building an efficient infrastructure, standards and data flow for metabolomicsBuilding an efficient infrastructure, standards and data flow for metabolomics
Building an efficient infrastructure, standards and data flow for metabolomics
Christoph Steinbeck
 
How much do you know about correct posture
How much do you know about correct postureHow much do you know about correct posture
How much do you know about correct posture
Eason Chan
 
Mobius slideshare - how to measure value using outcome metrics
Mobius slideshare - how to measure value using outcome metricsMobius slideshare - how to measure value using outcome metrics
Mobius slideshare - how to measure value using outcome metrics
Evolve Beyond
 
Nagios Conference 2012 - John Sellens - Nagios Indirection
Nagios Conference 2012 - John Sellens - Nagios IndirectionNagios Conference 2012 - John Sellens - Nagios Indirection
Nagios Conference 2012 - John Sellens - Nagios Indirection
Nagios
 
Day 3 Analogous, estimates and semantics for process
Day 3   Analogous, estimates and semantics for process Day 3   Analogous, estimates and semantics for process
Day 3 Analogous, estimates and semantics for process
Arun
 
Developing an Efficient Infrastruture, Standards and Data-Flow for Metabolomics
Developing an Efficient Infrastruture, Standards and Data-Flow for MetabolomicsDeveloping an Efficient Infrastruture, Standards and Data-Flow for Metabolomics
Developing an Efficient Infrastruture, Standards and Data-Flow for Metabolomics
Christoph Steinbeck
 
Qualitative analysis 2
Qualitative analysis 2Qualitative analysis 2
Qualitative analysis 2
Mark Selby
 

Viewers also liked (11)

Authentic
AuthenticAuthentic
Authentic
 
федорякина анастасия+садик+частные детские сади и центры
федорякина анастасия+садик+частные детские сади и центрыфедорякина анастасия+садик+частные детские сади и центры
федорякина анастасия+садик+частные детские сади и центры
 
Practice this that these those
Practice this that these thosePractice this that these those
Practice this that these those
 
Digital Badging at the Open University
Digital Badging at the Open UniversityDigital Badging at the Open University
Digital Badging at the Open University
 
Building an efficient infrastructure, standards and data flow for metabolomics
Building an efficient infrastructure, standards and data flow for metabolomicsBuilding an efficient infrastructure, standards and data flow for metabolomics
Building an efficient infrastructure, standards and data flow for metabolomics
 
How much do you know about correct posture
How much do you know about correct postureHow much do you know about correct posture
How much do you know about correct posture
 
Mobius slideshare - how to measure value using outcome metrics
Mobius slideshare - how to measure value using outcome metricsMobius slideshare - how to measure value using outcome metrics
Mobius slideshare - how to measure value using outcome metrics
 
Nagios Conference 2012 - John Sellens - Nagios Indirection
Nagios Conference 2012 - John Sellens - Nagios IndirectionNagios Conference 2012 - John Sellens - Nagios Indirection
Nagios Conference 2012 - John Sellens - Nagios Indirection
 
Day 3 Analogous, estimates and semantics for process
Day 3   Analogous, estimates and semantics for process Day 3   Analogous, estimates and semantics for process
Day 3 Analogous, estimates and semantics for process
 
Developing an Efficient Infrastruture, Standards and Data-Flow for Metabolomics
Developing an Efficient Infrastruture, Standards and Data-Flow for MetabolomicsDeveloping an Efficient Infrastruture, Standards and Data-Flow for Metabolomics
Developing an Efficient Infrastruture, Standards and Data-Flow for Metabolomics
 
Qualitative analysis 2
Qualitative analysis 2Qualitative analysis 2
Qualitative analysis 2
 

Tugas prodas 1 rekursif

  • 1. KELOMPOK 1 REKURSIF Anggota Kelompok : - Ramdhan Rizki J. - Fikri Fatoni - Ilham Rizki - Yudi Supriyadi - Tioreza Febrian
  • 2. Apa itu rekursif ? Rekursif merupakan suatu metode pada fungsi atau prosedur yang didalamnya terdapat perintah untuk memanggil fungsi atau prosedur itu sendiri
  • 3. BAGIAN – BAGIAN REKURSIF BASIS Bagian yang berisi kasus yang terdefinisi secara eksplisit. Bagian ini juga sekaligus menghentikan rekursif. REKURENS Bagian yang akan memanggil dirinya sendiri
  • 4. CONTOH KASUS int faktorial (int a) { if (a == 0 ) { return 1; } else { return a * faktorial (a - 1); } } Basis Rekurens
  • 5. PENJABARAN faktorial(5) = 5 * factorial( 5 - 1) = 5 * 4 * factorial( 4 - 1) = 5 * 4 * 3 * factorial( 3 - 1) = 5 * 4 * 3 * 2 * factorial( 2 - 1) = 5 * 4 * 3 * 2 * 1 = 120 faktorial( )5