티스토리 뷰

재귀 함수(Recursive Function) : 하나의 함수에서 자신을 다시 호출하여 작업을 수행하는 것. 종결 조건(trivial case)을 필요로 함.
ex) sum(n) = n + sum(n-1)의 종결 조건은 sum(1) = 1임

📍 recursive vs iterative

일반적으로 시간적 효율은 재귀적인 방법보다 순차적인 방법이 더 좋음


재귀 알고리즘의 예
팩토리얼 : yj-computer.tistory.com/93?category=924977
피보나치 수열 : yj-computer.tistory.com/94?category=924977
fractal 구조 : yj-computer.tistory.com/95?category=924977
하노이의 탑 : yj-computer.tistory.com/96?category=924977


프로그래머스 - 어서와! 자료구조와 알고리즘은 처음이지? 강의를 듣고 정리한 내용
https://programmers.co.kr/learn/courses/57

'자료구조 & 알고리즘' 카테고리의 다른 글

큐(Queues)  (0) 2021.04.07
연결 리스트(Linked Lists)  (0) 2021.04.07
알고리즘의 복잡도(Complexity of Algorithms)  (0) 2021.04.07
정렬과 탐색(Sorting & Searching)  (0) 2021.04.07
선형 배열(Linear Array)  (0) 2021.04.07
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2026/04   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30
글 보관함