Major

    Directory & file

    1. 파일 관련 명령어들 *추가할 것들 -wc,od -who,whoami -write, wall, mesg -hangman, banner, fortune -last -ignoreeof = on 2. 파일의 종류 파일 : 관련있는 정보들의 집합 종류: 일반 파일, 디렉터리, 심벌릭 링크, 장치파일로 구분된다. 일반파일 텍스트 파일(편집기로 작성), 실행파일, 이미지파일 파일에 저장하는 방식 (ex: 사진,오디오) : 그 나름대로의 방식으로 기록한다. C나 JAVA와 같은 언어로 기록하는 파일은 각 글자마다 해당하는 모양(X), 코드(O) = 텍스트파일 텍스트 파일이 아닌 경우, 바이너리 파일(바이너리 형태)이다. 구분 기준 : 문자에 대한 코드 번호 기록 유무 심벌릭 링크 = 윈도의 바로가기 내용을 저장하..

    Vector with python 01

    Vector with python 01

    -Each element can be accessed using index. same as normal array Can edit elements by using index. -Can assignment - 배정,배치 -Can copying... using copy method "copy()" In this case, copy address value. -Vector Equality : "==" operateor checks whether the two vectors (operand) are the same or not. And return boolean value. On NUMPY : "==" on numpy arrays perform element-wise comparison. -Be careful ..

    Vector notation & operations & my proof

    Vector notation & operations & my proof

    Vector is: an ordered finite list of numbers Each Elements called elements / entries... *Unit vectors When you proof something about vector, you should check dimension first and then element-wise. Remeber how to proof Commutative / Associative / Left and Right distrubutive Also Remeber rotation "+" is different compared to calculation rotation "+". The former is VECTOR Addition. New Topic : Line..

    [2월 18일] Selection Sort Algorithm 삽입정렬, Insertion Sort Algorithm 삽입정렬

    [2월 18일] Selection Sort Algorithm 삽입정렬, Insertion Sort Algorithm 삽입정렬

    *참고 영상 : https://youtu.be/GUDLRan2DWM #1 Selection Sort 선택정렬 1. Scan the whole array to find the minimum 2. Instead of filling 1 in 0th index on array B, SWAP with the 0th index. Because that's where 1 belongs, it belongs to 0th index. 3. Look for the next minimum, 1 need NOT to be considered. Scan index 1 to 5th. *The array is divided into 2 parts sorted or else. And we need to do (n-2) passes...

    [2월 5일] 버블정렬 알고리즘, 문자수만큼 회전하기

    #문자수만큼 오른쪽으로 한바퀴 회전하여 출력하는 프로그램 한 글자를 임시 변수에 저장해두고 제쳐둔다음, 나머지 글자를 하나씩 밀어주기(=회전시키기) 여기서 중요한건.. tmp라는 변수에 문자를 저장하는 것임. //문자수만큼 오른쪽으로 한바퀴 회전하여 출력하는 프로그램 //길이 구하는 함수 int whatLen(char* snt) { int len = 0; for (int i = 0; snt[i] != '\0'; i++) //표현 기억해두기. len++; return len; } void move(char* snt, char tmp) { int len = whatLen(snt); for (int i = 0; i < len; i++) { /*임시변수 tmp에 가장 끝 글자 저장하고, 끝에서부터 한칸씩 밀어준..