티스토리 뷰
재귀 함수(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
링크
TAG
- divmod
- ValidataionUtils
- 스택
- airbnb clone
- python
- 자료구조
- djnago
- tailwind
- 양방향 연결 리스트
- initBinder
- 선형 배열
- springboot
- for-else
- rjust
- 이진 탐색
- 스프링부트
- 의존 주입
- string module
- postfix notation
- valid annotation
- Django
- ljust
- most_common
- 파이썬
- Stack
- sequence type
- 출력 형식 지정
- python flag
- 직접 주입
- 선형 탐색
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함
