일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- cellranger
- CSS
- HTML
- matplotlib
- single cell
- single cell rnaseq
- js
- github
- CUT&RUN
- pandas
- ChIPseq
- ngs
- javascript
- drug development
- 비타민 C
- python matplotlib
- drug muggers
- julia
- scRNAseq
- PYTHON
- 싱글셀 분석
- Batch effect
- DataFrame
- Bioinformatics
- Git
- scRNAseq analysis
- CUTandRUN
- single cell analysis
- MACS2
- EdgeR
Archives
- Today
- Total
목록Recursive algorithm (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