NP and Computational Intractability
* 이 포스트는 알고리즘의 기초에 대한 개인 학습용으로 작성한 포스트입니다. NP (Nondeterministic Polynomial-time) Decision problem X는 set of strings, $X : A(s) =$ yes / no $iff \in X$ X는 dicision problem이고, A는 decision problem을 푸는 알고리즘이다. 즉, input이 들어갔을 때, yes/no로 답하는 문제를 decision problem이라 한다. 대표적으로 어떤 숫자가 소수인지 아닌지를 검사하는 문제가 있다. Polynomial time 모든 s에 대해 알고리즘을 돌렸을 때, input size에 대해 polynomial 시간에 돌아갈 수 있으면, 이 알고리즘은 polynomial-t..
Basic Learning/Algorithm Design
2020. 12. 7.