전체 글
-
[Network] 계층구조의 개념Network/Network 2023. 2. 9. 13:00
계층적 모듈 구조일반적으로 복잡하고 큰 시스템의 기능은 특정 단위인 모듈로 나누어 설계한다. 모듈은 독립적으로 동작하면서도 상호 유기적으로 통합될 수 있어야 한다. 이 때 모듈이 유기적으로 연결되기 위해서는 적절한 인터페이스가 필요하다. 1. 프로토콜 모듈화네트워크에 연결된 시스템이 통신하려면 정해진 규칙에 따라 데이터를 주고받아야 하는데, 이 일련의 규칙을 프로토콜이라고 한다. 프로토콜 동작 과정은 전송 오류율, 데이터 전달 경로, 데이터 전송 속도 등 다양한 외부 요인의 영향을 받게 되는데, 프로토콜을 설계할 때 모듈화를 통하여 적절한 대응 방안을 마련하면 효율적으로 관리할 수 있다.컴퓨터 하드웨어는 CPU, 메모리, 하드디스크, LAN 카드 등과 같은 작은 부품들이 모여 하나의 시스템을 구성한..
-
[쉽게 배우는 데이터 통신과 컴퓨터 네트워크] 1장. 연습문제Network/연습문제 2023. 2. 9. 03:22
book.naver.com/bookdb/book_detail.nhn?bid=11491623 데이터 통신과 컴퓨터 네트워크 : 네이버 도서 네이버 도서 상세정보를 제공합니다. search.shopping.naver.com 01. 컴퓨터 네트워크는 전송 매체를 매개로 서로 연결해 데이터를 교환하는 시스템의 모음이다. 시스템과 전송 매체의 연결 지점에 대한 규격을(인터페이스)라 하고, 시스템이 데이터를 교환할 때는 임의의 통신 규칙을 다르는데, 이 규칙을 (프로토콜)이라 한다. 02. 통신용 매체를 공유하는 여러 시스템이 프로토콜을 사용하여 데이터를 주고받을 때 이들을 하나의 단위로 통칭하여(네트워크)라 부른다. (네트워크)끼리는 (라우터)라는 중개 장비를 사용해 상호 연결한다. 03. 서로 다른 시스템이 연..
-
[백준] 3003번 : 킹, 퀸, 룩, 비숍, 나이트, 폰[JAVA]Algorithm/백준[JAVA] 2022. 12. 25. 03:07
https://www.acmicpc.net/problem/3003 3003번: 킹, 퀸, 룩, 비숍, 나이트, 폰 첫째 줄에 동혁이가 찾은 흰색 킹, 퀸, 룩, 비숍, 나이트, 폰의 개수가 주어진다. 이 값은 0보다 크거나 같고 10보다 작거나 같은 정수이다. www.acmicpc.net # 문제 # 접근방식 원래 들어있는 킹, 퀸, 룩, 비숍, 나이트, 폰의 개수를 입력한 개수와 비교해야하기 때문에 배열을 이용한다. 원래 들어있는 체스들의 개수로 초기화한 chess변수를 선언한다. 동혁이가 찾은 체스들의 개수를 입력할 white변수를 선언한다. for문을 이용하여 원래 체스와 입력한 체스를 하나씩 비교한다. 입력한 체스가 원래 체스의 개수만큼 있다면 출력되는 값은 0이라는 것을 생각한다. if문을 이용..
-
[백준] 18108번 : 1998년생인 내가 태국에서는 2541년생?![JAVA]Algorithm/백준[JAVA] 2022. 12. 25. 03:06
https://www.acmicpc.net/problem/18108 18108번: 1998년생인 내가 태국에서는 2541년생?! ICPC Bangkok Regional에 참가하기 위해 수완나품 국제공항에 막 도착한 팀 레드시프트 일행은 눈을 믿을 수 없었다. 공항의 대형 스크린에 올해가 2562년이라고 적혀 있던 것이었다. 불교 국가인 태국 www.acmicpc.net # 문제 # 접근방식 서기 연도를 저장할 변수 x와 불기 연도를 입력하는 변수 y를 선언한다. 변수 y에 scanner를 할당하여 불기 연도를 입력한다. 서기 연도는 불기 연도보다 543년 더 적기 때문에 불기 연도에서 543을 빼주어 변수 x에 저장한다. 변수 x를 출력하여 불기 연도를 서기 연도로 변환한 결과를 출력한다. # 소스코드 ..
-
[백준] 10926번 : ??![JAVA]Algorithm/백준[JAVA] 2022. 12. 25. 03:03
https://www.acmicpc.net/problem/10926 10926번: ??! 준하는 사이트에 회원가입을 하다가 joonas라는 아이디가 이미 존재하는 것을 보고 놀랐다. 준하는 놀람을 ??!로 표현한다. 준하가 가입하려고 하는 사이트에 이미 존재하는 아이디가 주어졌을 때 www.acmicpc.net # 문제 # 접근방식 아이디(문자열)를 입력할 String타입 변수에 scanner를 할당해준다. 어떤 문자열을 입력해도 입력한 문자열 뒤에 ??!이 출력될 수 있도록 입력받은 문자열에 "??!"문자열을 더해서 출력한다. # 소스코드 # 성능
-
[백준] 10869번 : 사칙연산[JAVA]Algorithm/백준[JAVA] 2022. 12. 25. 03:02
https://www.acmicpc.net/problem/10869 10869번: 사칙연산 두 자연수 A와 B가 주어진다. 이때, A+B, A-B, A*B, A/B(몫), A%B(나머지)를 출력하는 프로그램을 작성하시오. www.acmicpc.net # 문제 # 접근방식 입력을 받기 위해 Scanner를 import 해준다. 피연산자를 입력받을 변수 A, B를 선언해준 뒤, scanner를 할당해준다. 두 변수를 덧셈, 뺄셈, 곱셈, 나눗셈, 나머지 연산해서 출력해준다. # 소스코드 # 성능
-
[백준] 1008번 : A/B[JAVA]Algorithm/백준[JAVA] 2022. 12. 25. 03:01
https://www.acmicpc.net/problem/1008 1008번: A/B 두 정수 A와 B를 입력받은 다음, A/B를 출력하는 프로그램을 작성하시오. www.acmicpc.net # 문제 # 접근방식 아주 간단한 문제라고 생각한다. Scanner를 이용하기 위해 import java.util.Scanner를 사용한다. 두 개의 정수 입력을 위해 정수타입 변수 A, B를 선언하여 각각의 변수에 스캐너 객체를 할당하여 입력받는다. System.out.println()를 이용하여 두 개의 변수를 더해서 출력한다. # 소스코드 # 성능
-
[백준] 10998번 : AxB[JAVA]Algorithm/백준[JAVA] 2022. 12. 25. 03:01
https://www.acmicpc.net/problem/10998 10998번: A×B 두 정수 A와 B를 입력받은 다음, A×B를 출력하는 프로그램을 작성하시오. www.acmicpc.net # 문제 # 접근방식 아주 간단한 문제라고 생각한다. Scanner를 이용하기 위해 import java.util.Scanner를 사용한다. 두 개의 정수 입력을 위해 정수타입 변수 A, B를 선언하여 각각의 변수에 스캐너 객체를 할당하여 입력받는다. System.out.println()를 이용하여 두 개의 변수를 곱해서 출력한다. # 소스코드 # 성능