본문 바로가기

분류 전체보기122

[Network] OSI 7 Layer, TCP/IP OSI 7계층이란? 네트워크가 서로 데이터를 주고 받을 때 원활하게 소통하기 위해 정한 약속이자 네트워크 모델이다. 통신 규약을 프로토콜 이라고 하고 OSI 7계층은 이 것을 설명하는 네트워크 모델이다. OSI 7계층을 하나씩 설명하면서 TCP/IP 프로토콜과 연관지어 설명하겠다. 1. 물리 계층 (Physical Layer) 기계적, 전기적으로 데이터를 전송하는 계층 데이터를 디지털 신호와 아날로그 신호 사이로 비트형식(01001010...) 전송 2. 데이터 링크 계층 (DataLink Layer) 직접 연결되어있는 장치 간의 신뢰성 있는 정보 전송 하위 계층인 물리 계층에서 발생하는 오류를 흐름제어(노드 간의 보조 맞추기)혹은 오류제어 등의 방법으로 검출하고 수정 상위 계층인 네트워크 계층에서 받아.. 2024. 2. 21.
[백준 풀이_Java] 14502 연구소 (골드4) 복잡한 구현문제는 속도를 신경쓰기전에 일단 구현하는 것이 관건이다. 이 문제는 dfs, 백트래킹을 모두 사용하는 구현문제였다. 어렵당,, import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.lang.reflect.Array; import java.util.*; public class Main { static int sero; static int garo; static int[][] board; static int[][] moves = {{-1,0}, {1,0}, {0,1}, {0,-1}}; //위 아래 오른 왼 static StringBuilder sb = new Str.. 2024. 2. 19.
[백준 풀이_Java] 73659024 스택 (실버4) import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.lang.reflect.Array; import java.util.*; public class Main { static int N; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); String[] input; Stack stack = new Stack(); f.. 2024. 2. 19.
[백준 풀이_Java] 1759 암호 만들기 (골드5) 이제는 변형 문제도 풀 수 있게 되었다! 신나~! import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.lang.reflect.Array; import java.util.*; public class Main { static int L; static int C; static int[] arrAnswer; static String[] arrAbc; static int cntAeiou; static int cntElse; static StringBuilder sb = new StringBuilder(); static String strAeiou = "aeiou"; public .. 2024. 2. 19.
[백준 풀이_Java] 73646155 N과 M (3) (실버 3) import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; public class Main { static int N; static int M; static int[] arrAnswer; static StringBuilder sb = new StringBuilder(); public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] input = br.readLine().s.. 2024. 2. 19.
[백준 풀이_Java] 15652 N과 M (4) import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; public class Main { static int N; static int M; static int[] arrAnswer; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] input = br.readLine().split(" "); N = Integer.parseInt(input[0]); M = .. 2024. 2. 16.