Program Programming Programmer

  • 홈
  • 방명록
  • 관리자
  • 글쓰기

memoization 11

BAEKJOON 1003 - 파보나치 함수

문제: https://www.acmicpc.net/problem/1003 파보나치를 구할 수 있는 재귀함수에서 0 과 1인 경우가 불리는 횟수는 나열을 해보면0의 경우 주어진 n - 1 의 파보나치 수1의 경우 주어진 n 의 파보나치 수와 같다는 것을 알 수 있습니다.그리고 파보나치 수의 경우 n이 커지면 시간복잡도가 매우 커지기 때문에 memoization 을 사용해 시간 복잡도를 줄여 풀었습니다. my solvingc++1234567891011121314151617181920212223242526272829303132333435363738394041#include #include #include #include using namespace std; map cache;int fibonacci_dp(in..

Algorithm, Data structure/Solved Algorithmic Problem 2016.07.10
이전
1 2
다음
더보기
프로필사진

Program Programming Programmer

프로그래머

  • 분류 전체보기 (142)
    • Deep learning (17)
    • Python (0)
    • Algorithm, Data stru.. (125)
      • Solved Algorithmic P.. (120)
      • Popular Algorithms (3)
      • Basic concepts (2)

Tag

Base Conversion, Divide And Conquer, string, GREEDY, convex hull, sort, Math, Erathosthenes, dfs, Shoelace Formula, bipartite matching, memoization, Deterministic finite automaton, dynamic programming, binomial coefficient, bit mask, Complete Search, binary search, Simulation, Josephus,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/07   »
일 월 화 수 목 금 토
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 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바