Solving recurrences

2021. 10. 10. 15:28·2-2/알고리즘

: 러닝타임 식에 자기 자신이 또들어잇을 수 잇음  recursive~

-> 푸는 방법 (guess->증명 으로 푸는데, guess시에는 2쓰고 증명에는 1쓴다)

1. substitution method  

2. recursion-tree method 

3. master methond

-> 목표 : Θ / O bound를 찾는 것

 

substitution methond

1. solution을 guess한다 (- guess할 때 recursion-tree method 사용함)

2. mathematical method (수학적 귀납법)으로 추측이 맞는지 증명한다

- basic or boundary condition 이 true인지 보여준다

- inductive step~ (n=어떨 때 성립한다고 가정 -> n일때 성립함을 보여준다)

ex)

 

recursion-tree method

:good solution 을 guess할 때 사용

각 level에서의 합과 깊이를 구해 곱해서 total 합을 구함

 

'2-2 > 알고리즘' 카테고리의 다른 글

Sorting in linear time  (0) 2021.10.16
quick sort  (0) 2021.10.15
Heapsort  (0) 2021.10.12
Asymptotic notation  (0) 2021.10.10
Sorting 알고리즘  (0) 2021.10.08
'2-2/알고리즘' 카테고리의 다른 글
  • quick sort
  • Heapsort
  • Asymptotic notation
  • Sorting 알고리즘
jen.dev
jen.dev
🪽🪽🪽
  • jen.dev
    ㅇTL
    jen.dev
  • 전체
    오늘
    어제
    • 분류 전체보기 (67)
      • 2-2 (25)
        • 파이썬, 자료구조 (11)
        • 데베시 (3)
        • 컴퓨터 네트워크 (2)
        • 알고리즘 (7)
        • 시스템 프로그래밍 (2)
      • 2-1 (28)
        • 객체지향 - java (14)
        • 자료구조 (c) (14)
      • draft (13)
        • swift (4)
        • html, javascript (8)
        • 리액트네이티브 (0)
        • 주절주절 (1)
        • 빅데이터 (0)
      • life (0)
      • Database (1)
      • Project-Doggy (0)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.1
jen.dev
Solving recurrences
상단으로

티스토리툴바