본문 바로가기

바이오 대표

검색하기
바이오 대표
프로필사진 바이오 대표

  • 분류 전체보기 (217)
    • Front_end (23)
    • Programming enviorment (20)
    • Python (29)
      • dataframe (pandas) (11)
      • array (numpy) (3)
      • matplotlib (11)
      • others (4)
    • Bioinformatics (19)
      • Tools (12)
      • NGS 기본지식 (4)
    • STAT (0)
    • R (3)
    • Mathematical Optimization (11)
      • Julia (5)
    • 논문 (30)
    • Drug (54)
      • Drug Design (1)
      • Drug 관련 잡 지식 (50)
    • Master dissertion (6)
    • My works (4)
    • My books (10)
    • Extra (6)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • Link to blog "한 사람의 일상"
«   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
Tags
  • scRNAseq analysis
  • drug muggers
  • python matplotlib
  • github
  • js
  • single cell rnaseq
  • scRNAseq
  • CUTandRUN
  • julia
  • 비타민 C
  • CUT&RUN
  • pandas
  • single cell analysis
  • EdgeR
  • drug development
  • HTML
  • PYTHON
  • Batch effect
  • Git
  • ChIPseq
  • javascript
  • Bioinformatics
  • single cell
  • 싱글셀 분석
  • cellranger
  • MACS2
  • matplotlib
  • DataFrame
  • ngs
  • CSS
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록재귀 (1)

바이오 대표

[ Algorithm ] Recursion 재귀 Algorithm

Function 안에 같은 function을 이용하는 것을 recursion(재귀) 라고 한다. 예시) # Factorial function def f(n): # Stop condition if (n == 0 or n == 1): return 1; # Recursive condition else: return n * f(n - 1); n = 5; print(f(n)) #120 n * f(n-1) 5 * f(4) = 5 * 24 = 120 f(4) = 4 * f(3) 4*6 = 24 f(3) = 3 * f(2) = 3*2 = 6 f(2) = 2 * f(1) = 2*1 = 2

Python/others 2022. 3. 6. 20:55
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바