본문 바로가기

전체 글

(98)
[인프런|1.2] Linear Equations in Linear Algebra | Row Reduction and Echelon Forms 1.2 Row Reduction and Echelon Forms - echelon form / reduced echelon form echelon form: 1. all zero rows들은 모두 non zero rows들보다 아래에 있다. all zero row들은 맨 밑에 있다. 2. leading entry는 위에 row의 leading entry보다 오른쪽에 있다. *leading entry란 한 row에서 0이 아닌 entry 중 가장 앞에 있는 entry이다. reduced echelon form: 우선 echelon form 이어야한다. 3. row에서 leading entry의 값은 1이다. 4. leading entry가 있는 column에서 leading entry의 값은 1이고 그 외..
[인프런|6,7,8강] C로 배우는 자료구조 | 전화번호부 v3.0 전화번호부 v3.0 전화번호부 v2.0(5강)에 더해 배열 재할당, 라인 단위 입력과 문자열 tokenizing 기능을 추가한다 #include #include #include #define INIT_CAPACITY 3 // 배열 재할당을 테스트하기 위해 작은 값으로 설정 #define BUFFER_SIZE 50 char ** names; char ** numbers; // char * 타입 배열이므로 char **이다. int capacity = INIT_CAPACITY; // size of arrays int n = 0; // 전화번호부 사람 수 char delim[] = " "; int main() { init_directory(); process_command(); return 0; } init_..
[인프런|1.1] Linear Equations in Linear Algebra | Systems of Linear equations 1.1 Systems of Linear equations - linear equation 1차 방정식(선형방정식)을 의미한다. 무조건 미지수의 차수는 1차 이어야 Linear equation이다 - system of linear equations 1개 이상의 선형방정식을 system of linear equations라고 한다. - consistent / inconsistent 2개 이상의 선형방정식이 해가 1개이거나 무수히 많으면 consistent. 1개인 경우는 두 직선이 한점에서 만나는 경우. 무수히 많은 경우는 두 직선이 겹치는 경우를 의미한다. 해가 하나도 없으면 inconsistent 라고 한다. 두 직선이 평행해서 만나는 곳이 없는 경우이다. - elementary row operation..