Rekursi


Rekursi adalah cara menyelesaikan masalah dengan memecah masalah tersebut menjadi masalah-masalah lebih kecil yang serupa. Dalam bahasa pemrograman, rekursi dapat didefinisikan sebagai fungsi yang memanggil dirinya sendiri hingga mencapai suatu kasus dasar (base case). Kasus dasar adalah kasus di mana hasil dari fungsi telah diketahui penyelesaiannya tanpa harus memanggil dirinya kembali.

Fungsi rekursi terdiri dari dua bagian. Pertama adalah base case. Base case merupakan kasus dasar yang harus didefinisikan hasilnya agar tidak terjadi pemanggilan fungsi secara tak hingga. Kedua adalah recursive case. Recursive case merupalan kasus rekursi yang butuh memanggil fungsinya kembali dengan memberikan masalah yang lebih kecil








Referensi





Share this

Related Posts

Previous
Next Post »

31 komentar

komentar
June 1, 2021 at 9:35 PM delete

Nama: Julio Geraldi Soeiono
NRP: 5025201079
Link: https://juliogeraldigg.blogspot.com/2021/06/tower-of-hanoi-program-in-java.html

Reply
avatar
June 5, 2021 at 12:37 AM delete

Nama : Daniel Hermawan
NRP : 5025201087
Link : https://danielportofolio.blogspot.com/2021/06/tugas-ngoding-di-java-7-rekursi.html

Reply
avatar
June 5, 2021 at 10:07 AM delete

Nama : Haniif Ahmad Jauhari
NRP : 5025201224
Link : https://haniifahmadjauhari.blogspot.com/2021/06/tugas-struktur-data-2-juni-2021.html

Reply
avatar
June 7, 2021 at 7:53 PM delete

Nama : Zidan Al Azizi
NRP : 5025201014
Link : https://zidanalazizi27.blogspot.com/2021/06/tugas-implementasi-rekursi.html

Reply
avatar
June 8, 2021 at 4:19 AM delete

Nama : Afira Rolobessy
NRP :5025201006
LINK : https://afira03.blogspot.com/2021/06/tugas-implementasi-rekursi.html

Reply
avatar
June 8, 2021 at 5:21 AM delete

Nama : Bagus Febrian Dali Hidayat
NRP : 5025201208
Link : https://bagusfebrian25.blogspot.com/2021/06/program-tower-of-hanoi-di-java.html

Reply
avatar
June 8, 2021 at 5:40 AM delete

Nama : Nabila Zakiyah Khansa' Machrus
NRP : 5025201139
Link : https://nabilayasha.blogspot.com/2021/06/tower-of-hanoi-in-java.html

Reply
avatar
June 8, 2021 at 6:34 AM delete

Nama: Mohammad Fadhil Rasyidin Parinduri
NRP: 5025201131
Link: Tower of Hanoi in Java

Reply
avatar
June 8, 2021 at 6:59 AM delete

Nama : Cahyadi Surya Nugraha
NRP : 5025201184
Link : https://cahyadisuryanugraha.blogspot.com/2021/06/tower-of-hanoi.html

Reply
avatar
June 8, 2021 at 7:09 AM delete

Nama : Muhammad Andi Akbar Ramadhan
NRP : 5025201264
Link : https://andiakbar264.blogspot.com/2021/06/tower-of-hanoi-dengan-java.html

Reply
avatar
June 8, 2021 at 7:53 AM delete

Nama : Frederick Wijayadi Susilo
NRP : 5025201111
Link : https://frederickws.blogspot.com/2021/06/implementasi-tower-of-hanoi-menggunakan.html

Reply
avatar
June 8, 2021 at 8:12 AM delete

Nama: Adelia Hasna Surya Putri
NRP: 5025201200
Link: https://adeliahasnasp.blogspot.com/2021/06/penugasan-7-rekursi.html

Reply
avatar
June 8, 2021 at 8:18 AM delete

Nama : Mohammad Nouval Bachrezi
NRP : 5025201030
Link : https://mohammadnouvalbachrezi.blogspot.com/2021/06/tower-of-hanoi-in-java-tower-of-hanoi.html

Reply
avatar
June 8, 2021 at 8:29 AM delete

Nama : Afiq Akram
NRP : 5025201270
Link : https://afiqakraam.blogspot.com/2021/06/rekursif-tower-of-hanoi.html

Reply
avatar
June 8, 2021 at 8:33 AM delete This comment has been removed by the author.
avatar
June 8, 2021 at 8:35 AM delete

Nama : Sarah Alissa Putri
NRP : 5025201272
Link : https://sharrju.blogspot.com/2021/06/struktur-data-tower-of-hanoi.html

Reply
avatar
June 8, 2021 at 8:40 AM delete

Nama : Joy Posma Abednego Gultom
NRP : 5025201103
Link : https://joygoeltom.blogspot.com/2021/06/tower-of-hanoi.html

Reply
avatar
June 8, 2021 at 9:08 AM delete

Nama : Ilma Fahma Syadidah
NRP : 5025201063
Link : https://ilmafsy.blogspot.com/2021/06/tugas-rekursi.html

Reply
avatar
June 8, 2021 at 9:12 AM delete

Nama : Ahmad Ibnu Malik Rahman
NRP : 5025201232
Link : https://ibnumalik12.blogspot.com/2021/06/tower-of-hanoi-in-java.html

Reply
avatar
June 8, 2021 at 9:53 AM delete

Nama : Sidrotul Munawaroh
NRP : 5025201047
Link : https://sidrotulmunawaroh.blogspot.com/2021/06/tower-of-hanoi-java.html

Reply
avatar
June 8, 2021 at 10:45 AM delete

Nama : Angela Oryza Prabowo
NRP : 5025201022
Link : https://angelaoryza.blogspot.com/2021/06/animated-hanoi.html

Reply
avatar
June 8, 2021 at 12:17 PM delete

Nama : Samuel Berkat Hulu
NRP : 5025201055
Link : https://samuelberkathulu.blogspot.com/2021/06/tugas-sturktur-data-tower-of-hanoi.html

Reply
avatar
June 8, 2021 at 12:20 PM delete

Nama : Rafael Asi Kristanto Tambunan
NRP : 5025201168
Link : https://rafaelaktambunan.blogspot.com/2021/06/tower-of-hanoi.html

Reply
avatar
June 8, 2021 at 6:34 PM delete

Nama : Stenly Saut Martua
NRP : 5025201095
Link : https://stenlyambarita.blogspot.com/2021/06/tower-of-hanoi.html

Reply
avatar
June 8, 2021 at 7:09 PM delete

Nama : Helmi Taqiyudin
NRP : 5025201152
Link : https://helmitaqiyudin.blogspot.com/2021/06/tower-of-hanoi.html

Reply
avatar