[BOJ] BackTracking /13๋‹จ๊ณ„
ยท
Hi๐Ÿ–๏ธ/Algorithm
13 ๋ฐฑํŠธ๋ž˜ํ‚น ๋ชจ๋“  ๊ฒฝ์šฐ๋ฅผ ํƒ์ƒ‰ํ•˜๋Š” ๋ฐฑํŠธ๋ž˜ํ‚น ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ๋ฐฐ์›Œ ๋ด…์‹œ๋‹ค. 1 15649 N๊ณผ M (1) ๋ฐฑํŠธ๋ž˜ํ‚น ์ž…๋ฌธ ๋ฌธ์ œ 1 import java.util.Scanner; public class Main { public static int[] array; public static boolean[] visit; //๋ฐฉ๋ฌธํ–ˆ๋Š”์ง€ ํ™•์ธ. default = False public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int M = scan.nextInt(); array = new int[M]; visit = new boolean[N]; dfs(N, M, 0); } public st..
Backtracking
ยท
Hi๐Ÿ–๏ธ/Algorithm
๋ฐฑํŠธ๋ž˜ํ‚น(=ํ‡ด๊ฐ๊ฒ€์ƒ‰) , ์ผ์ข…์˜ ํŠธ๋ฆฌ ํƒ์ƒ‰ ์•Œ๊ณ ๋ฆฌ์ฆ˜.ํ•ด๋ฅผ ์ฐพ์•„๊ฐ€๋Š” ์ค‘์— ๋ง‰ํžˆ๋ฉด ๋‹ค์‹œ ์ด์ „์œผ๋กœ ๋Œ์•„๊ฐ€์„œ ํ•ด๋ฅผ ์ฐพ์•„๊ฐ€๋Š” ๊ธฐ๋ฒ•์œผ๋กœ, ์ตœ์ ํ™” ๋ฌธ์ œ์™€ ๊ฒฐ์ • ๋ฌธ์ œ๋ฅผ ํ’€ ๋•Œ ์‚ฌ์šฉ. ๋”๋ณด๊ธฐ- ๊นŠ์ด์šฐ์„ ํƒ์ƒ‰ (Depth First Search, DFS)- ๋„ˆ๋น„์šฐ์„ ํƒ์ƒ‰ (Breadth First Search, BFS) - ์ตœ์„ ์šฐ์„ ํƒ์ƒ‰ (Best First Search/Heuristic Search) ๋ชจ๋“  ๊ฒฝ์šฐ์˜ ์ˆ˜๋ฅผ ๊ฒ€์ƒ‰ > DFS.ํŠธ๋ฆฌ์˜ ๊นŠ์ด๊ฐ€ ๋ฌดํ•œ๋Œ€์ด๋ฉด BFS DFS๋Š” ๊ฐ€๋Šฅํ•œ ๋ชจ๋“  ๊ฒฝ๋กœ๋ฅผ ํƒ์ƒ‰ํ•จ. ์ผ์ผ์ด ํ•˜๋‚˜์”ฉ ์ฒดํฌํ•ด๋ณด๋ฉด์„œ ๋…ธ๊ฐ€๋‹คํ•˜๋Š” ํƒ์ƒ‰์ž„.๋ฐฑํŠธ๋ž˜ํ‚น์€ DFS ๋ฐฉ์‹๊ณผ ๋น„์Šทํ•œ๋ฐ, DFS์ฒ˜๋Ÿผ ํ•ด๋ฅผ ์ฐพ์•„๊ฐ€๋Š” ์ค‘์—, ๋‹ค์Œ์— ๊ฐˆ ๊ฒฝ๋กœ๋กœ ํ•˜๋ฉด ํ•ด๊ฐ€ ์ ˆ๋Œ€ ์•ˆ๋‚˜์˜ฌ๊ฒƒ ๊ฐ™์œผ๋ฉด ๊ทธ ๊ฒฝ๋กœ๋Š” ๊ฐ€์ง€์•Š๊ณ  ๋˜๋Œ์•„๊ฐ.์ด๋ ‡๊ฒŒ ์กฐ๊ฑด์„ ์„ค์ •ํ•ด์„œ ์•ˆ๊ฐ€๋Š” ๊ฒฝ๋กœ..
[๋ฐฑ์ค€] 12๋‹จ๊ณ„ ๋ฌธ์ œ ๋ชจ์Œ
ยท
Hi๐Ÿ–๏ธ/Java
12 ์ •๋ ฌ ๋ฐฐ์—ด์˜ ์›์†Œ๋ฅผ ์ˆœ์„œ๋Œ€๋กœ ๋‚˜์—ดํ•˜๋Š” ์•Œ๊ณ ๋ฆฌ์ฆ˜ 1 2750 ์ˆ˜ ์ •๋ ฌํ•˜๊ธฐ ์‹œ๊ฐ„ ๋ณต์žก๋„๊ฐ€ O(n²)์ธ ์ •๋ ฌ ์•Œ๊ณ ๋ฆฌ์ฆ˜์œผ๋กœ ํ’€ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค๋ฉด ์‚ฝ์ž… ์ •๋ ฌ, ๊ฑฐํ’ˆ ์ •๋ ฌ ๋“ฑ์ด ์žˆ์Šต๋‹ˆ๋‹ค. import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.Arrays; public class Main { public static void main(String[] args) throws IOException{ BufferedReader bfr = new Buff..
[๋ฐฑ์ค€] 11๋‹จ๊ณ„ ๋ฌธ์ œ ๋ชจ์Œ
ยท
Hi๐Ÿ–๏ธ/Java
11 ๋ธŒ๋ฃจํŠธ ํฌ์Šค ๊ฐ€์žฅ ๊ฐ„๋‹จํ•œ ์•Œ๊ณ ๋ฆฌ์ฆ˜์ธ, ๋ชจ๋“  ๊ฒฝ์šฐ์˜ ์ˆ˜๋ฅผ ๊ฒ€์‚ฌํ•˜๋Š” ๋ธŒ๋ฃจํŠธ ํฌ์Šค ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ๋ฐฐ์›Œ ๋ด…์‹œ๋‹ค. 1 2798 ๋ธ”๋ž™์žญ import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner scan = new Scanner(System.in); int T = scan.nextInt(); int Max = scan.nextInt(); int n[] = new int [T]; for(int i = 0; i
[๋ฐฑ์ค€] 10๋‹จ๊ณ„ ๋ฌธ์ œ ๋ชจ์Œ
ยท
Hi๐Ÿ–๏ธ/Java
10๋‹จ๊ณ„. ์žฌ๊ท€ ์žฌ๊ท€ํ•จ์ˆ˜๋ฅผ ๋‹ค๋ค„ ๋ด…์‹œ๋‹ค. 1 10872 ํŒฉํ† ๋ฆฌ์–ผ ์žฌ๊ท€ํ•จ์ˆ˜๋ฅผ ๋งŒ๋“ค์–ด์„œ ์ œ์ถœํ•ด์•ผํ•œ๋‹ค. import java.util.Scanner; public class Main { static int factory = 1; public static int fac(int num) { if(num ==0) return factory; else{ factory *= num; return fac(num-1); } } public static void main(String[] args) { Scanner scan = new Scanner(System.in); int x = scan.nextInt(); fac(x); System.out.println(factory); } } 2 10870 ํ”ผ๋ณด๋‚˜์น˜ ์ˆ˜ 5 ์ด ๋ฌธ์ œ ..
[๋ฐฑ์ค€] 9๋‹จ๊ณ„ ๋ฌธ์ œ ๋ชจ์Œ
ยท
Hi๐Ÿ–๏ธ/Java
1 1978 ์†Œ์ˆ˜ ์ฐพ๊ธฐ import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int T = scan.nextInt(); int count = 0; for(int t = 0; t
[DB] ์‡ผํ•‘๋ชฐ DB ์„ค๊ณ„
ยท
Hi๐Ÿ–๏ธ/DataBase
ํ•™์‚ฌํ–‰์ • ์‹œ์Šคํ…œ ์„ค๊ณ„ ํ›„, ๊ฐœ์ธ์ ์œผ๋กœ ๋งŒ๋“ค์–ด๋ณธ ์ธํ„ฐ๋„ท์‡ผํ•‘๋ชฐ DB์„ค๊ณ„๋ฅผ ํ•ด๋ณด์•˜์Šต๋‹ˆ๋‹ค. ์„ค๊ณ„ ์ฒ˜์Œ์—๋Š” ์ด๋Ÿฐ์‹์œผ๋กœ ์„ค๊ณ„ํ•ด๋ดค๋Š”๋ฐ ๋ฉ”๋‰ด๊ฐ™์€ ๊ฒฝ์šฐ์—๋Š” ์„œ๋ธŒ๋กœ ๋‚˜๋ˆŒ ์ˆ˜ ์žˆ์–ด์„œ ์ด๋Ÿฐ ์‹์œผ๋กœ ์ œ์ž‘ํ•ด์•ผ ์ข‹์€ ์„ค๊ณ„๋ผ๊ณ  ํ”ผ๋“œ๋ฐฑ์„ ๋ฐ›์•˜๊ณ , DB์„ค๊ณ„๋ฅผ ํƒ„ํƒ„ํ•˜๊ฒŒ ํ•˜๊ณ  ๊ผผ๊ผผํžˆ ํ™•์ธํ•œ ํ›„์— ์™„๋ฒฝํ•ด์กŒ๋‹ค๋Š” ํŒ๋‹จ์ด ๋“ค ๋•Œ ์ž‘์—…์„ ํ•ด์•ผ๋œ๋‹ค๋Š” ์ด์œ ๋ฅผ ์•Œ๊ฒŒ ๋œ ๊ณต๋ถ€์˜€๋‹ค.
[DB] ํ•™์‚ฌํ–‰์ • ์‹œ์Šคํ…œ
ยท
Hi๐Ÿ–๏ธ/DataBase
์˜ˆ์ „์— ๊ฐœ์ธ์ ์œผ๋กœ ํ•™์‚ฌํ–‰์ • ์‹œ์Šคํ…œ ๋งŒ๋“ค์–ด ๋ณด๊ณ ์‹ถ์–ด์„œ ํ”„๋กœ์ ํŠธ ํ–ˆ๋˜ ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์ œ์ž‘ ๊ณผ์ • ์ˆœ์„œ๋Œ€๋กœ ๋‚˜์—ดํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ธฐ๋ณธ ๋ฐ์ดํ„ฐ ๋ง‰ ๋งŒ๋“ค์–ด๋ด„. professor Name Sex Age Number Subject Place ๊น€๋•ํŒ” M 53 010-2812-2781 JAVA B-502 C++ HTML Linux ์ด์„ฑ๊ฒฝ F 48 010-6821-9246 ์‹œ๋Œ€์˜ ํ๋ฆ„ B-304 ์ด์„ฑ๊ฒฝ F 48 010-6821-9246 ๊ฒฝ์ œ๊ธฐ์ดˆ B-304 ์ด์„ฑ๊ฒฝ F 48 010-6821-9246 ํ•œ๊ตญ์‚ฌ B-304 ์ด์„ฑ๊ฒฝ F 48 010-6821-9246 ํ†ต๊ณ„ํ•™๊ฐœ๋ก  B-304 ์กฐ๊ฒฝ๋ฐฐ M 58 010-1500-1574 ์—ด์—ญํ•™ A-101 ์กฐ๊ฒฝ๋ฐฐ M 58 010-1500-1574 ์ฐฝ์˜์ ์‚ฌ๊ณ  A-101 ๋ฐ•์ˆ˜์ • F 44 010-4126-1257..
[Adobe XD] ์ฝ”๋กœ๋‚˜ ๊ด€๋ จ ์–ดํ”Œ _ UI์ œ์ž‘
ยท
Hi๐Ÿ–๏ธ/UI Design
- ์†Œ๋น„์ž ๋‹ˆ์ฆˆ ์ฃผ๊ธฐ์ ์œผ๋กœ ์†Œ๋…ํ•œ ๊ฐ€๊ฒŒ ๋งˆ์Šคํฌ์˜ ์˜ฌ๋ฐ”๋ฅธ ๊ต์ฒด ์‹œ๊ธฐ ํŒŒ์•… - ๋ฐฉ์•ˆ ๊ฐ€๊ฒŒ์†Œ๋… ์ •๋ณด ์ œ๊ณต / ์‹ค์‹œ๊ฐ„ ์†Œ๋…ํ˜„ํ™ฉ/ ์†Œ๋… ์ฃผ๊ธฐ ์ž๋ฃŒ์ˆ˜์ง‘ ๋งˆ์Šคํฌ์— ๋Œ€ํ•œ ๊ธฐ๋ณธ ์ •๋ณด ์ œ๊ณต (KF80, KF94, KF99, ๋ฐฉ์ง„ ๋งˆ์Šคํฌ, etc) -1) ๋‚ด ์ฃผ๋ณ€ ์†Œ๋…ํ•œ ๊ฐ€๊ฒŒ ์ฐพ๊ธฐ, ๊ฐ€๊ฒŒ ๋ณ„ ์†Œ๋… ๋‚ด์—ญ ํ™•์ธ ๊ฐ€๋Šฅ ์†Œ๋… ๋ฐ ์ฒญ๊ฒฐ์˜ ์ด๋ฏธ์ง€์ธ ํ•˜๋Š˜์ƒ‰๊ณผ ํฐ์ƒ‰์˜ ์ƒ‰์ƒ์„ ์ด์šฉํ•˜์—ฌ ๋””์ž์ธ ํ•˜์˜€์Œ. ํ•˜๋‹จ์—๋Š” ๊ณต์ง€์‚ฌํ•ญ์ด๋‚˜ ์œ ์šฉํ•œ ์ •๋ณด ํ‘œ์‹œํ•ด์ฃผ๋Š” ํˆดํŒ ์†Œ๋…ํ•œ ์—…์ฒด์™€ ์†Œ๋… ํ›„ ์ง€๋‚œ ์—…์ฒด ๋“ฑ, ๊ฐ€๊ฒŒ๋งˆ๋‹ค ์‹œ๊ฐ„์— ๋”ฐ๋ฅธ ์ƒ‰์ƒ์„ ๋ถ€์—ฌํ•˜์˜€์Œ. -2) ํ˜„์žฌ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋Š” ๋งˆ์Šคํฌ ์‚ฌ์šฉ ๊ธฐ๊ฐ„ ํ™•์ธ ๊ฐ€๋Šฅ ๋ฐ”์ฝ”๋“œ ์ฐ์Œ > ์ƒํ’ˆ์˜ ์ด๋ฆ„ ์ˆ˜์ง‘ > ๋ฌด์Šจ ๋งˆ์Šคํฌ์ธ์ง€ ํŒ๋‹จ ๋ฐ ์ €์žฅ > ํ˜„์žฌ ํ•ธ๋“œํฐ ์‹œ๊ฐ„ ์—ฐ๋™ ๊ถŒ์žฅ์‹œ๊ฐ„์ด ์ง€๋‚˜ ์œ„ํ—˜์„ฑ์„ ์•Œ๋ฆฌ๊ธฐ ์œ„ํ•œ ๋นจ๊ฐ„ ์ƒ‰์ƒ์„ ์‚ฌ์šฉํ•จ - ์š”..
[Apache]
ยท
Hi๐Ÿ–๏ธ
- Apache ์›น ์„œ๋ฒ„์˜ ๊ฐœ๋…๊ณผ ์„œ๋ฒ„์™€ ํด๋ผ์ด์–ธํŠธ๊ฐ„์— ๋ฐ์ดํ„ฐ ์ „์†ก ๋ฐฉ์‹ ์›น ๋ธŒ๋ผ์šฐ์ €์™€ ๊ฐ™์€ ํด๋ผ์ด์–ธํŠธ์—์„œ HTTP(Hyper Text Transfer Protocol)์š”์ฒญ์„ ๋ฐ›๊ณ , HTML ๋ฌธ์„œ๊ฐ™์€ ์›นํŽ˜์ด์ง€๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋Š” ๊ฒƒ์ด๋‹ค. ์ฆ‰, HTTP๋ฅผ ํ†ตํ•ด ์›น๋ธŒ๋ผ์šฐ์ €์—์„œ ์š”์ฒญํ•˜๋Š” HTML ๋ฌธ์„œ๋‚˜ ์˜ค๋ธŒ์ ํŠธ๋ฅผ ์ „์†กํ•ด์ฃผ๋Š” ์„œ๋น„์Šค ํ”„๋กœ๊ทธ๋žจ์ด๋‹ค. a) (Listen) ์„œ๋ฒ„๋ฅผ ์‹คํ–‰ํ•˜์—ฌ ํด๋ผ์ด์–ธํŠธ ์ ‘์†์„ ๊ธฐ๋‹ค๋ฆฐ๋‹ค. b) (Send) ํด๋ผ์ด์–ธํŠธ๊ฐ€ ์„œ๋ฒ„์— ์ ‘์†ํ•˜์—ฌ ๋ฐ์ดํ„ฐ๋ฅผ ๋ณด๋‚ธ๋‹ค. c) (Accept) ์„œ๋ฒ„์—์„œ ํด๋ผ์ด์–ธํŠธ ์ ‘์†์„ ์ˆ˜์šฉํ•˜๊ณ , (Recv) ํด๋ผ์ด์–ธํŠธ๊ฐ€ ๋ณด๋‚ธ ๋ฐ์ดํ„ฐ๋ฅผ ๋ฐ›์•„์„œ ์ฒ˜๋ฆฌํ•œ๋‹ค, d) (Send) ์„œ๋ฒ„๊ฐ€ ์ฒ˜๋ฆฌํ•œ ๋ฐ์ดํ„ฐ๋ฅผ ํด๋ผ์ด์–ธํŠธ์— ๋ณด๋‚ธ๋‹ค. e) ํด๋ผ์ด์–ธํŠธ์—์„œ ๋ฐ›์€ ๋ฐ์ดํ„ฐ๋ฅผ ์ฒ˜๋ฆฌํ•œ๋‹ค, f) (Close) ์ ‘์†์„..
Liky
'Hi๐Ÿ–๏ธ' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๊ธ€ ๋ชฉ๋ก (3 Page)