์ ์ฒด ๊ธ214 [ํ๋ก๊ทธ๋๋จธ์ค] ์ฌ์น์ฐ์ฐ (Python/ํ์ด์ฌ) https://school.programmers.co.kr/learn/courses/30/lessons/1843 ํ๋ก๊ทธ๋๋จธ์ค ์ฝ๋ ์ค์ฌ์ ๊ฐ๋ฐ์ ์ฑ์ฉ. ์คํ ๊ธฐ๋ฐ์ ํฌ์ง์ ๋งค์นญ. ํ๋ก๊ทธ๋๋จธ์ค์ ๊ฐ๋ฐ์ ๋ง์ถคํ ํ๋กํ์ ๋ฑ๋กํ๊ณ , ๋์ ๊ธฐ์ ๊ถํฉ์ด ์ ๋ง๋ ๊ธฐ์ ๋ค์ ๋งค์นญ ๋ฐ์ผ์ธ์. programmers.co.kr 1. ๋งค์ฐ ์ด๋ ค์ ๋ dp + ๋ถํ ์ ๋ณต ๋ฌธ์ 2. ์ฐ์ฐ์๋ฅผ ๊ธฐ์ค์ผ๋ก ์ ๋ค ๊ตฌ๊ฐ์ ๋๋์ด์ ๊ณ์ฐํด์ฃผ๋ฉด ๋๋ค. (๊ตฌ๊ฐํฉ๊ณผ ์ ์ฌ) 10๊ฐ์ ํผ์ฐ์ฐ์๊ฐ ์๋ค๊ณ ๊ฐ์ ํ ๋ ๋ค์๊ณผ ๊ฐ๋ค [1] ~ [2 ~ 10] [1 ~ 2] ~ [3 ~ 10] [1 ~ 3] ~ [4 ~ 10] ... [1 ~ 9] ~ [10] 3. - ์ฐ์ฐ์๊ฐ ์์ผ๋ฏ๋ก ์ต๋๊ฐ ํ ์ด๋ธ๊ณผ ์ต์๊ฐ ํ ์ด๋ธ ๋ ๊ฐ์ ๋ฐฐ์ด์ ๋ง๋ ๋ค 4. ๊ตฌ๊ฐ์ ๊ธธ์ด.. 2023. 1. 31. [9์ฃผ์ฐจ] File System Implementation File System Implementation Allocation Methods โ Continuous allocation โ Discontinuous allocation Linked allocation Indexed allocation Continuous Allocation โ ํ File์ ๋์คํฌ์ ์ฐ์๋ block์ ์ ์ฅ โ ์ฅ์ ํจ์จ์ ์ธ file ์ ๊ทผ (์์ฐจ, ์ง์ ์ ๊ทผ) โ ๋ฌธ์ ์ ์๋ก์ด file์ ์ํ ๊ณต๊ฐ ํ๋ณด ์ด๋ ค์ External fragmentation File ๊ณต๊ฐ ํฌ๊ธฐ ๊ฒฐ์ ์ด ์ด๋ ค์ ํ์ผ์ด ์ปค์ ธ์ผ ํ๋ ๊ฒฝ์ฐ ๊ณ ๋ ค ํ์ Linked Allocation (Discontinuous alloc.) โ File์ด ์ ์ฅ๋ Block๋ค์ Linked List๋ก ์ฐ๊ฒฐ ๋น์ฐ์ ํ ๋น ๊ฐ๋ฅ โ Dir.. 2023. 1. 30. [9์ฃผ์ฐจ] File Protection File Protection File Protection โ File์ ๋ํ ๋ถ์ ์ ํ ์ ๊ทผ ๋ฐฉ์ง ๋ค์ค ์ฌ์ฉ์ ์์คํ ์์ ๋์ฑ ํ์ โ ์ ๊ทผ ์ ์ด๊ฐ ํ์ํ ์ฐ์ฐ๋ค Read(R) Write(W) Execute(X) Append(A) File Protection Mechanism โ ํ์ผ ๋ณดํธ ๊ธฐ๋ฒ์ sytem size ๋ฐ ์์ฉ ๋ถ์ผ์ ๋ฐ๋ผ ๋ค๋ฅผ ์ ์๋ค. Password ๊ธฐ๋ฒ ๊ฐ file๋ค์ PW ๋ถ์ฌ ๋นํ์ค์ (๋ชจ๋ file์ ์ ๊ทผ ๋ถ๊ฐ) Access Matrix ๊ธฐ๋ฒ Access Matrix โ ๋ฒ์(domain)์ ๊ฐ์ฒด(object)์ฌ์ด์ ์ ๊ทผ ๊ถํ์ ๋ช ์ โ Terminologies Object ์ ๊ทผ ๋์(file, device๋ฑ HW/SW objects) Domain (Protection domai.. 2023. 1. 29. [9์ฃผ์ฐจ] Directory Structure Directory Structure Directory Structure โ Logical directory structure Flat(Single level) 2-level Hierarchical(tree-structure) Acyclic graph General graph Flat Directory Structure โ FS ๋ด์ ํ๋์ directory๋ง ์กด์ฌ Single-level directory structure โ Issues File naming File protection File management ๋ค์ค ์ฌ์ฉ์ ํ๊ฒฝ์์ ๋ฌธ์ ๊ฐ ๋์ฑ ์ปค์ง๋ค โ ex: ์ด์ฐฝ๊ธฐ mp3 player 2-level Directory Structure โ ์ฌ์ฉ์๋ง๋ค ํ๋์ directory ๋ฐฐ์ โ ๊ตฌ์กฐ MFD (.. 2023. 1. 28. [9์ฃผ์ฐจ] File System Overview File System Overview File System โ ์ฌ์ฉ์๋ค์ด ์ฌ์ฉํ๋ ํ์ผ๋ค์ ๊ด๋ฆฌํ๋ ์ด์์ฒด์ ์ ํ ๋ถ๋ถ โ File system์ ๊ตฌ์ฑ Files ์ฐ๊ด๋ ์ ๋ณด์ ์งํฉ Directory Structure ์์คํ ๋ด ํ์ผ๋ค์ ์ ๋ณด๋ฅผ ๊ตฌ์ฑ ๋ฐ ์ ๊ณต Partitions Directory๋ค์ ์งํฉ์ ๋ ผ๋ฆฌ์ /๋ฌผ๋ฆฌ์ ์ผ๋ก ๊ตฌ๋ถ File Concept โ ๋ณด์กฐ ๊ธฐ์ต ์ฅ์น์ ์ ์ฅ๋ ์ฐ๊ด๋ ์ ๋ณด๋ค์ ์งํฉ ๋ณด์กฐ ๊ธฐ์ต ์ฅ์น ํ ๋น์ ์ต์ ๋จ์ Sequence of bytes (๋ฌผ๋ฆฌ์ ์ ์) File์ ๋ถ๋ฅ โ ๋ด์ฉ์ ๋ฐ๋ฅธ ๋ถ๋ฅ Program file Source program, object program, executable files Data file โ ํํ์ ๋ฐ๋ฅธ ๋ถ๋ฅ Text(ascii) file Bina.. 2023. 1. 27. [9์ฃผ์ฐจ] Disk System Disk System Disk System Disk Pack โ ๋ฐ์ดํฐ ์๊ตฌ ์ ์ฅ ์ฅ์น (๋นํ๋ฐ์ฑ) โ ๊ตฌ์ฑ Sector ๋ฐ์ดํฐ ์ ์ฅ/ํ๋ ์๋ฌผ๋ฆฌ์ ๋จ์ Track Platter ํ ๋ฉด์์ ์ค์ฌ์ผ๋ก ๊ฐ์ ๊ฑฐ๋ฆฌ์ ์๋ sector๋ค์ ์งํฉ Cylinder ๊ฐ์ ๋ฐ์ง๋ฆ์ ๊ฐ๋ track์ ์งํฉ Platter ์๋ฉด์ ์์ฑ ๋ฌผ์ง์ ์ ํ ์ํ ๊ธ์ํ ๋ฐ์ดํฐ ๊ธฐ๋ก/ํ๋ ์ด ๊ฐ๋ฅํ ๊ธฐ๋ก ๋งค์ฒด Surface Platter์ ์๋ฉด๊ณผ ์๋ซ๋ฉด Disk Drive โ Disk pack์ ๋ฐ์ดํฐ๋ฅผ ๊ธฐ๋กํ๊ฑฐ๋ ํ๋ ํ ์ ์๋๋ก ๊ตฌ์ฑ๋ ์ฅ์น โ ๊ตฌ์ฑ Head ๋์คํฌ ํํ์ ๋ฐ์ดํฐ๋ฅผ ๊ธฐ๋ก/ํ๋ Arm Head๋ฅผ ๊ณ ์ /์งํฑ Positioner (boom) Arm์ ์งํฑ Head๋ฅผ ์ํ๋ track์ผ๋ก ์ด๋ Spindle Disk pack.. 2023. 1. 26. ์ด์ 1 ยทยทยท 5 6 7 8 9 10 11 ยทยทยท 36 ๋ค์