비교 ¶
순서,order 여부와 와 중복가능('with replacement'?)여부로 4가지 경우.
서로 다른 개에서 개를 택하는 경우의 수를 가정- 중복순열+중복조합 설명에 ok, 나머지 2가지의 경우 모두 chk
계산법은
from http://www.kocw.net/home/search/kemView.do?kemId=1052562
중복 불허 | 중복 허용 | |
순서 중요 (수열,sequence처럼 ... '일렬로 배열' | 중복순열 | |
순서 무관 (집합,set처럼 | 중복조합 |
복원 추출 | 비복원 추출 | |
배열 순서 고려 | 중복순열 perm. with repetition? | 순열,permutation |
배열 순서 무시 | 중복조합 combination with repetition | 조합,combination |
복원 추출 | 비복원 추출 | |
배열 순서 고려 | ||
배열 순서 무시 |
order unimportant | order important | |
without replacement | ||
with replacement |
ISO 80000-2에 따른 기호는
그 값은
The term "permutation" is used when
from https://people.engr.ncsu.edu/jwilson/files/mathsigns.pdf#page=20
number of … | with repetition | without repetition |
combinations | ||
variations |
number of … | with repetition | without repetition |
combinations | ||
variations |
from https://people.engr.ncsu.edu/jwilson/files/mathsigns.pdf#page=20
프로그래밍 언어 구현 (계산 소스) ¶
from https://wikidocs.net/23278 CHK
{
Python에서는 import itertools 후에
}
{
Python에서는 import itertools 후에
순열 | itertools.permutations |
중복순열 | itertools.product |
조합 | itertools.combinations |
중복조합 | itertools.combinations_with_replacement |