SlideShare a Scribd company logo
1 of 48
Download to read offline
서울시립대 알고리즘 소모임
완전 탐색
1주차 & 2주차
서울시립대 알고리즘 소모임
강의자 소개
2020 AL林 정기 스터디 2
이름 최문기
소속 서울시립대 컴퓨터과학부(16학번)
핸들 iknoom1107(BOJ) IKnoom(Codeforces) IKnoom(AtCoder)
ICPC 팀 Iknoom Cannot Participate Contest(ICPC)
- 김정현, 최문기, 최연웅
알고리즘 소모임 AL林
2020 AL林 정기 스터디 3
개강 전 1학기 말 2학기 말
부원 모집 가등록 동아리 중앙 동아리
스터디 계획
2020 AL林 정기 스터디 4
1학기 여름방학 2학기
“완전탐색” 기초 알고리즘 I 기초 알고리즘 II
겨울방학
미정
1학기 스터디 계획
2020 AL林 정기 스터디 5
주차 내용 강의자
1주차 전 자율 스터디 -
1, 2 완전탐색, 큐, 스택, 덱 최문기
3, 4 BFS 유시온
5, 6 DFS 김정현
7, 8 DP, 그리디 알고리즘 개론 이승현, 최연웅
읽어 봅시다.
2020 AL林 정기 스터디 6
BOJ 101 https://www.acmicpc.net/blog/view/55
슬랙(Slack)
2020 AL林 정기 스터디 7
Join URL
URL uos-alim.slack.com
질문 외에도 잡담해도 됩니다.
편하게 오세요.
AtCoder Beginner Contest(ABC)
2020 AL林 정기 스터디 8
매주 토요일 또는 일요일
2020 AL林 정기 스터디 9
프로그래밍 문제 해결
(PS, Problem Solving)
2020 AL林 정기 스터디 10
문제를 하나 읽어봅시다.
2020 AL林 정기 스터디 11
문제를 하나 읽어봅시다. – 1920번(link)
시간 제한 2초
메모리 제한 128MB
입력 1≤N≤100,000 1≤M≤100,000
모든 정수의 범위는 -231 보다 크거나 같고 231보다 작다.
출력 답이 존재하면 1, 존재하지 않으면 0
프로그래밍 문제 해결
2020 AL林 정기 스터디 12
시간 제한 프로그램이 실행되는 시간의 제한
메모리 제한 프로그램이 사용할 수 있는 메모리의 제한
✓ 프로그래밍 문제 해결
주어진 입력 데이터에 대해서 제한된 시간과 제한된 메모리 내에서 결과를 출력
시간 제한 – 108 룰
2020 AL林 정기 스터디 13
✓ 108 룰
컴퓨터는 1초에 간단한 동작을 약 108번 할 수 있다.
N의 제한과 시간 제한이 주어지면 시간복잡도를 예측할 수 있다.
입력 크기(n)에 따른 연산의 횟수(O(n))
시간 제한 – 108 룰
2020 AL林 정기 스터디 14
한번 해볼까요?
N의 크기 시간 제한 시간 복잡도
8 1초 𝑂 𝑁 , 𝑂 𝑁2
, 𝑂 𝑁3
, 𝑂 2𝑁
, 𝑂(𝑁!)
25 1초 𝑂 𝑁 , 𝑂 𝑁2
, 𝑂 𝑁3
, 𝑂 2𝑁
500 1초 𝑂 𝑁 , 𝑂 𝑁2 , 𝑂 𝑁3
5000 1초 𝑂 𝑁 , 𝑂 𝑁2
1000000 1초 𝑂 𝑁
메모리 제한
2020 AL林 정기 스터디 15
C++에서 정수 자료형 int 하나는 4바이트, long long 하나는 8바이트
방금과 비슷하게 예상 가능하겠죠?
ex) 400MB = 정수(int) 108개가 들어간 배열
일반적으로 문제에서 메모리 제한은 넉넉하게 줘서
메모리 때문에 어려운 경우는 상대적으로 적습니다.
2020 AL林 정기 스터디 16
이제 문제를 풀어봅시다.
[BOJ 1920번] 수 찾기
2020 AL林 정기 스터디 17
N개의 정수 A[1], A[2], …, A[N]이 주어져 있을 때
이 안에 X라는 정수가 존재하는지 M번 알아내야합니다.
5
4 1 5 2 3
5
1 3 7 9 5
1
1
0
0
1
풀이 방법
2020 AL林 정기 스터디 18
1. N개의 수를 배열에 저장
2. 다음을 M번 반복
• N개의 배열에서 X가 있는지 탐색 => O(N)
• 있으면 1, 없으면 0을 출력
O(N)을 M번 => O(N*M)
풀이 방법
2020 AL林 정기 스터디 19
시간 안에 될까요?
풀이 방법
2020 AL林 정기 스터디 20
N은 최대 100,000
M은 최대 100,000
즉 N*M은 최대 10,000,000,000 (100억) = 약 100초 > 2초
시간 초과
풀이 방법 2
2020 AL林 정기 스터디 21
1. 전역변수로 232크기의 정수 배열 count 생성
2. N개의 A[i]에 대해서 count[A[i] + 231] += 1
3. 다음을 M번 반복
• 수 X에 대해서 만약 count[X + 231]가 0보다 크면 1을 출력
• 아니면 0을 출력
풀이 방법 2
2020 AL林 정기 스터디 22
1. count
2. count
3. 다음을 M번 반복
• 수 X에 대해서 만약 count[X + k]가 0보다 크면 1을 출력
• 아니면 0을 출력
-4+k -3+k -2+k -1+k 0+k 1+k 2+k 3+k 4+k 5+k
0 0 0 0 0 0 0 0 0 0
-4+k -3+k -2+k -1+k 0+k 1+k 2+k 3+k 4+k 5+k
0 0 0 0 0 1 1 1 1 1
, k = 231
풀이 방법 2
2020 AL林 정기 스터디 23
배열에 인덱스로 접근하는 것은 상수시간 (count[index] => O(1))
따라서 시간복잡도는 max(O(N), O(M))
풀이 방법 2
2020 AL林 정기 스터디 24
하지만,
232크기의 정수 배열의 크기는 어떻게 될까요?
4Byte * 232 = (4 * 4 * 1073741824)Byte = 약 17180MB > 128MB
메모리 초과
우린 망한걸까요?
2020 AL林 정기 스터디 25
풀이 방법 3
2020 AL林 정기 스터디 26
1. N개의 수를 배열에 저장
2. 배열을 정렬 => O(NlogN)
3. 다음을 M번 반복
• N개의 배열에서 X가 있는지 이분 탐색한다. => O(logN)
• 있으면 1, 없으면 0을 출력한다.
풀이 방법 3 - 이분탐색?
2020 AL林 정기 스터디 27
N크기의 정렬된 배열에서 특정 값을 찾는 최대 연산 횟수는 log2N
7 is the target value (출처 wikipedia)
탐색할 필요가 없다.
풀이 방법 3
2020 AL林 정기 스터디 28
N은 최대 100,000 / M은 최대 100,000
N개를 정렬 => O(NlogN)
이분탐색을 M번 => O(MlogN)
log(100,000) = 16~17
따라서 O(NlogN) 또는 O(MlogN)는 최대 약 1,700,000 < 2초
맞았습니다
프로그래밍 문제 해결
2020 AL林 정기 스터디 29
✓ 프로그래밍 문제 해결
주어진 입력 데이터에 대해서 제한된 시간과 제한된 메모리 내에서 결과를 출력
자료구조와 알고리즘을 이용해 문제를 효율적으로 해결하는 과정
효율적으로 최적화 하는 과정이 없다면? => 구현 ( 완전탐색, 시뮬레이션 )
2020 AL林 정기 스터디 30
완전 탐색
완전 탐색
2020 AL林 정기 스터디 31
✓ 브루트 포스(Brute-force search)
✓ 답이 될 수 있는 모든 경우의 수를 탐색한다.
✓ 가장 쉽고 단순한 방법
✓ 더 효율적으로 문제를 풀기 위한 기반(출발점)이 되기도 한다.
완전 탐색
2020 AL林 정기 스터디 32
하지만 완전 탐색만으로도 충분히 어려운 문제도 있다.
→ 짧은 시간 안에 빠르고 정확하게 구현하는 능력이 중요
완전 탐색
2020 AL林 정기 스터디 33
비선형 구조(그래프)에서의 완전 탐색
- BFS(너비 우선 탐색) : 3주차
- DFS(깊이 우선 탐색) : 5주차
[BOJ 2309번] 일곱 난쟁이
2020 AL林 정기 스터디 34
9개의 정수 중에서 합이 100이 되는 7개의 정수를 구한다.
→ 9개 중에서 2개를 제외했을 때 나머지 정수의 합이 100
→ 2개를 제외하는 모든 경우의 수는 9C2 = 36가지
→ 36가지 경우를 완전 탐색
[BOJ 2309번] 일곱 난쟁이 - 정답
2020 AL林 정기 스터디 35
2020 AL林 정기 스터디 36
배열 / 스택 / 큐 / 덱
전부 구현되어있습니다.
2020 AL林 정기 스터디 37
기본 자료구조는 라이브러리에 구현되어있습니다.
(구조는 간단해보이지만 직접 구현하려고 보면 그렇게 쉽지 않습니다.)
알고리즘 문제를 풀면서 실제 큐, 스택, 덱을 구현할 일은 없습니다.
예외) 삼성 역량 테스트 B형과 C형
동적 배열 / 문자열
2020 AL林 정기 스터디 38
배열(문자열)의 크기를 동적으로 변경할 수 있다.
※ 파이썬은 기본 자료구조가 동적이다.
자료구조 C++ Java Python
동적 배열 vector ArrayList []
문자열 string String ""
동적 배열 / 문자열
2020 AL林 정기 스터디 39
#include 또는 import하고
쓰면 됩니다.
스택
2020 AL林 정기 스터디 40
“Last In First Out”
마지막으로 들어간 데이터가
가장 먼저 나오는 자료구조
stack.top()
stack.push()
stack.pop()
stack.empty()
큐
2020 AL林 정기 스터디 41
먼저 들어간 데이터가
가장 먼저 나오는 자료구조
queue.front()
queue.back()
queue.push()
queue.pop()
queue.empty()
“First In First Out”
덱
2020 AL林 정기 스터디 42
스택과 큐를 합친 구조
양쪽에서 push pop이 가능
push
push
pop
pop
스택 / 큐 / 덱
2020 AL林 정기 스터디 43
push
pop
push pop
push
push
pop
pop
스택
큐
덱
스택 / 큐 / 덱
2020 AL林 정기 스터디 44
자료구조 C++ Java Python
스택 stack Stack (동적 배열을 사용)
큐 queue LinkedList (덱을 사용)
덱 deque ArrayDeque deque
스택 / 큐 / 덱
2020 AL林 정기 스터디 45
#include 또는 import하고
쓰면 됩니다.
연습 문제
2020 AL林 정기 스터디 46
완전 탐색
2309 일곱 난쟁이
2231 분해합
2798 블랙잭
10448 유레카 이론
1436 영화감독 숌
1018 체스판 다시 칠하기
2503 숫자 야구
스텍, 큐, 덱
10828 스택
10845 큐
10866 덱
9012 괄호
2164 카드2
1021 회전하는 큐
연습 문제
2020 AL林 정기 스터디 47
순서
스택, 큐, 덱 → (기초 문법) → 완전 탐색
출처
2020 AL林 정기 스터디 48
https://en.wikipedia.org/
https://www.acmicpc.net/problem/12100
https://www.acmicpc.net/problem/14500
https://programmers.co.kr/learn/courses/30/lessons/60059

More Related Content

What's hot

New Insights and Perspectives on the Natural Gradient Method
New Insights and Perspectives on the Natural Gradient MethodNew Insights and Perspectives on the Natural Gradient Method
New Insights and Perspectives on the Natural Gradient MethodYoonho Lee
 
Entropy-Driven Evolutionary Approaches to the Mastermind Problem
Entropy-Driven Evolutionary Approaches to the Mastermind ProblemEntropy-Driven Evolutionary Approaches to the Mastermind Problem
Entropy-Driven Evolutionary Approaches to the Mastermind ProblemJuan J. Merelo
 
Elliptic Curve Cryptography for those who are afraid of maths
Elliptic Curve Cryptography for those who are afraid of mathsElliptic Curve Cryptography for those who are afraid of maths
Elliptic Curve Cryptography for those who are afraid of mathsMartijn Grooten
 
On First-Order Meta-Learning Algorithms
On First-Order Meta-Learning AlgorithmsOn First-Order Meta-Learning Algorithms
On First-Order Meta-Learning AlgorithmsYoonho Lee
 
Elliptical curve cryptography
Elliptical curve cryptographyElliptical curve cryptography
Elliptical curve cryptographyBarani Tharan
 
Meta-learning and the ELBO
Meta-learning and the ELBOMeta-learning and the ELBO
Meta-learning and the ELBOYoonho Lee
 
Elliptic Curve Cryptography: Arithmetic behind
Elliptic Curve Cryptography: Arithmetic behindElliptic Curve Cryptography: Arithmetic behind
Elliptic Curve Cryptography: Arithmetic behindAyan Sengupta
 
Improved security system using steganography and elliptic curve crypto...
Improved  security  system using  steganography  and  elliptic  curve  crypto...Improved  security  system using  steganography  and  elliptic  curve  crypto...
Improved security system using steganography and elliptic curve crypto...atanuanwesha
 
Algebra 2 Notes 2-7
Algebra 2 Notes 2-7Algebra 2 Notes 2-7
Algebra 2 Notes 2-7Kate Nowak
 
Day 3 angles in polygons
Day 3 angles in polygonsDay 3 angles in polygons
Day 3 angles in polygonsErik Tjersland
 
Day 3 Angles In Polygons
Day 3 Angles In PolygonsDay 3 Angles In Polygons
Day 3 Angles In PolygonsErik Tjersland
 
CPM2013-tabei201306
CPM2013-tabei201306CPM2013-tabei201306
CPM2013-tabei201306Yasuo Tabei
 
ACM ICPC 2016 NEERC (Northeastern European Regional Contest) Problems Review
ACM ICPC 2016 NEERC (Northeastern European Regional Contest) Problems ReviewACM ICPC 2016 NEERC (Northeastern European Regional Contest) Problems Review
ACM ICPC 2016 NEERC (Northeastern European Regional Contest) Problems ReviewRoman Elizarov
 
Elliptic Curve Cryptography
Elliptic Curve CryptographyElliptic Curve Cryptography
Elliptic Curve CryptographyAdri Jovin
 
Sin cos questions
Sin cos questionsSin cos questions
Sin cos questionsGarden City
 
Sin cos questions
Sin cos questionsSin cos questions
Sin cos questionsGarden City
 
Maximizing Submodular Function over the Integer Lattice
Maximizing Submodular Function over the Integer LatticeMaximizing Submodular Function over the Integer Lattice
Maximizing Submodular Function over the Integer LatticeTasuku Soma
 
Projectors and Projection Onto a Line
Projectors and Projection Onto a LineProjectors and Projection Onto a Line
Projectors and Projection Onto a LineIsaac Yowetu
 

What's hot (20)

New Insights and Perspectives on the Natural Gradient Method
New Insights and Perspectives on the Natural Gradient MethodNew Insights and Perspectives on the Natural Gradient Method
New Insights and Perspectives on the Natural Gradient Method
 
Entropy-Driven Evolutionary Approaches to the Mastermind Problem
Entropy-Driven Evolutionary Approaches to the Mastermind ProblemEntropy-Driven Evolutionary Approaches to the Mastermind Problem
Entropy-Driven Evolutionary Approaches to the Mastermind Problem
 
Elliptic Curve Cryptography for those who are afraid of maths
Elliptic Curve Cryptography for those who are afraid of mathsElliptic Curve Cryptography for those who are afraid of maths
Elliptic Curve Cryptography for those who are afraid of maths
 
On First-Order Meta-Learning Algorithms
On First-Order Meta-Learning AlgorithmsOn First-Order Meta-Learning Algorithms
On First-Order Meta-Learning Algorithms
 
Elliptical curve cryptography
Elliptical curve cryptographyElliptical curve cryptography
Elliptical curve cryptography
 
Meta-learning and the ELBO
Meta-learning and the ELBOMeta-learning and the ELBO
Meta-learning and the ELBO
 
Elliptic Curve Cryptography: Arithmetic behind
Elliptic Curve Cryptography: Arithmetic behindElliptic Curve Cryptography: Arithmetic behind
Elliptic Curve Cryptography: Arithmetic behind
 
Log char
Log charLog char
Log char
 
Improved security system using steganography and elliptic curve crypto...
Improved  security  system using  steganography  and  elliptic  curve  crypto...Improved  security  system using  steganography  and  elliptic  curve  crypto...
Improved security system using steganography and elliptic curve crypto...
 
Algebra 2 Notes 2-7
Algebra 2 Notes 2-7Algebra 2 Notes 2-7
Algebra 2 Notes 2-7
 
Day 3 angles in polygons
Day 3 angles in polygonsDay 3 angles in polygons
Day 3 angles in polygons
 
Day 3 Angles In Polygons
Day 3 Angles In PolygonsDay 3 Angles In Polygons
Day 3 Angles In Polygons
 
report
reportreport
report
 
CPM2013-tabei201306
CPM2013-tabei201306CPM2013-tabei201306
CPM2013-tabei201306
 
ACM ICPC 2016 NEERC (Northeastern European Regional Contest) Problems Review
ACM ICPC 2016 NEERC (Northeastern European Regional Contest) Problems ReviewACM ICPC 2016 NEERC (Northeastern European Regional Contest) Problems Review
ACM ICPC 2016 NEERC (Northeastern European Regional Contest) Problems Review
 
Elliptic Curve Cryptography
Elliptic Curve CryptographyElliptic Curve Cryptography
Elliptic Curve Cryptography
 
Sin cos questions
Sin cos questionsSin cos questions
Sin cos questions
 
Sin cos questions
Sin cos questionsSin cos questions
Sin cos questions
 
Maximizing Submodular Function over the Integer Lattice
Maximizing Submodular Function over the Integer LatticeMaximizing Submodular Function over the Integer Lattice
Maximizing Submodular Function over the Integer Lattice
 
Projectors and Projection Onto a Line
Projectors and Projection Onto a LineProjectors and Projection Onto a Line
Projectors and Projection Onto a Line
 

Similar to 2020 1학기 정기스터디 1주차

2021 1학기 정기 세미나 2주차
2021 1학기 정기 세미나 2주차2021 1학기 정기 세미나 2주차
2021 1학기 정기 세미나 2주차Moonki Choi
 
2020 2학기 정기스터디 1주차
2020 2학기 정기스터디 1주차2020 2학기 정기스터디 1주차
2020 2학기 정기스터디 1주차Moonki Choi
 
2020 1학기 정기스터디 2주차
2020 1학기 정기스터디 2주차2020 1학기 정기스터디 2주차
2020 1학기 정기스터디 2주차Moonki Choi
 
06 Analysis of Algorithms: Sorting in Linear Time
06 Analysis of Algorithms:  Sorting in Linear Time06 Analysis of Algorithms:  Sorting in Linear Time
06 Analysis of Algorithms: Sorting in Linear TimeAndres Mendez-Vazquez
 
Effective Numerical Computation in NumPy and SciPy
Effective Numerical Computation in NumPy and SciPyEffective Numerical Computation in NumPy and SciPy
Effective Numerical Computation in NumPy and SciPyKimikazu Kato
 
Becoming a better problem solver: a CS perspective
Becoming a better problem solver: a CS perspectiveBecoming a better problem solver: a CS perspective
Becoming a better problem solver: a CS perspectiveMelvin Zhang
 
Engineering Fast Indexes for Big-Data Applications: Spark Summit East talk by...
Engineering Fast Indexes for Big-Data Applications: Spark Summit East talk by...Engineering Fast Indexes for Big-Data Applications: Spark Summit East talk by...
Engineering Fast Indexes for Big-Data Applications: Spark Summit East talk by...Spark Summit
 
Engineering fast indexes (Deepdive)
Engineering fast indexes (Deepdive)Engineering fast indexes (Deepdive)
Engineering fast indexes (Deepdive)Daniel Lemire
 
Design and Analysis of Algorithms Lecture Notes
Design and Analysis of Algorithms Lecture NotesDesign and Analysis of Algorithms Lecture Notes
Design and Analysis of Algorithms Lecture NotesSreedhar Chowdam
 
Introduction to Julia
Introduction to JuliaIntroduction to Julia
Introduction to Julia岳華 杜
 
how to calclute time complexity of algortihm
how to calclute time complexity of algortihmhow to calclute time complexity of algortihm
how to calclute time complexity of algortihmSajid Marwat
 
Matrix transposition
Matrix transpositionMatrix transposition
Matrix transposition동호 이
 
There are two types of ciphers - Block and Stream. Block is used to .docx
There are two types of ciphers - Block and Stream. Block is used to .docxThere are two types of ciphers - Block and Stream. Block is used to .docx
There are two types of ciphers - Block and Stream. Block is used to .docxrelaine1
 

Similar to 2020 1학기 정기스터디 1주차 (20)

2021 1학기 정기 세미나 2주차
2021 1학기 정기 세미나 2주차2021 1학기 정기 세미나 2주차
2021 1학기 정기 세미나 2주차
 
2020 2학기 정기스터디 1주차
2020 2학기 정기스터디 1주차2020 2학기 정기스터디 1주차
2020 2학기 정기스터디 1주차
 
2020 1학기 정기스터디 2주차
2020 1학기 정기스터디 2주차2020 1학기 정기스터디 2주차
2020 1학기 정기스터디 2주차
 
Bitwise
BitwiseBitwise
Bitwise
 
06 Analysis of Algorithms: Sorting in Linear Time
06 Analysis of Algorithms:  Sorting in Linear Time06 Analysis of Algorithms:  Sorting in Linear Time
06 Analysis of Algorithms: Sorting in Linear Time
 
Effective Numerical Computation in NumPy and SciPy
Effective Numerical Computation in NumPy and SciPyEffective Numerical Computation in NumPy and SciPy
Effective Numerical Computation in NumPy and SciPy
 
Review version 4
Review version 4Review version 4
Review version 4
 
Becoming a better problem solver: a CS perspective
Becoming a better problem solver: a CS perspectiveBecoming a better problem solver: a CS perspective
Becoming a better problem solver: a CS perspective
 
Engineering Fast Indexes for Big-Data Applications: Spark Summit East talk by...
Engineering Fast Indexes for Big-Data Applications: Spark Summit East talk by...Engineering Fast Indexes for Big-Data Applications: Spark Summit East talk by...
Engineering Fast Indexes for Big-Data Applications: Spark Summit East talk by...
 
Engineering fast indexes (Deepdive)
Engineering fast indexes (Deepdive)Engineering fast indexes (Deepdive)
Engineering fast indexes (Deepdive)
 
Numpy Talk at SIAM
Numpy Talk at SIAMNumpy Talk at SIAM
Numpy Talk at SIAM
 
Encoding survey
Encoding surveyEncoding survey
Encoding survey
 
Design and Analysis of Algorithms Lecture Notes
Design and Analysis of Algorithms Lecture NotesDesign and Analysis of Algorithms Lecture Notes
Design and Analysis of Algorithms Lecture Notes
 
Time complexity.ppt
Time complexity.pptTime complexity.ppt
Time complexity.ppt
 
Introduction to Julia
Introduction to JuliaIntroduction to Julia
Introduction to Julia
 
how to calclute time complexity of algortihm
how to calclute time complexity of algortihmhow to calclute time complexity of algortihm
how to calclute time complexity of algortihm
 
Matrix transposition
Matrix transpositionMatrix transposition
Matrix transposition
 
The Perceptron (D1L2 Deep Learning for Speech and Language)
The Perceptron (D1L2 Deep Learning for Speech and Language)The Perceptron (D1L2 Deep Learning for Speech and Language)
The Perceptron (D1L2 Deep Learning for Speech and Language)
 
3rd Semester Computer Science and Engineering (ACU) Question papers
3rd Semester Computer Science and Engineering  (ACU) Question papers3rd Semester Computer Science and Engineering  (ACU) Question papers
3rd Semester Computer Science and Engineering (ACU) Question papers
 
There are two types of ciphers - Block and Stream. Block is used to .docx
There are two types of ciphers - Block and Stream. Block is used to .docxThere are two types of ciphers - Block and Stream. Block is used to .docx
There are two types of ciphers - Block and Stream. Block is used to .docx
 

More from Moonki Choi

2021 2학기 정기 세미나 5주차
2021 2학기 정기 세미나 5주차2021 2학기 정기 세미나 5주차
2021 2학기 정기 세미나 5주차Moonki Choi
 
2021 2학기 정기 세미나 4주차
2021 2학기 정기 세미나 4주차2021 2학기 정기 세미나 4주차
2021 2학기 정기 세미나 4주차Moonki Choi
 
2021 여름방학 정기 세미나 3주차
2021 여름방학 정기 세미나 3주차2021 여름방학 정기 세미나 3주차
2021 여름방학 정기 세미나 3주차Moonki Choi
 
2021 여름방학 정기 세미나 1주차
2021 여름방학 정기 세미나 1주차2021 여름방학 정기 세미나 1주차
2021 여름방학 정기 세미나 1주차Moonki Choi
 
2021 알림 오세요
2021 알림 오세요2021 알림 오세요
2021 알림 오세요Moonki Choi
 
2021 1학기 정기 세미나 6주차
2021 1학기 정기 세미나 6주차2021 1학기 정기 세미나 6주차
2021 1학기 정기 세미나 6주차Moonki Choi
 
2021 1학기 정기 세미나 3주차
2021 1학기 정기 세미나 3주차2021 1학기 정기 세미나 3주차
2021 1학기 정기 세미나 3주차Moonki Choi
 
2020 여름방학 정기스터디 6주차
2020 여름방학 정기스터디 6주차2020 여름방학 정기스터디 6주차
2020 여름방학 정기스터디 6주차Moonki Choi
 
2020 여름방학 정기스터디 5주차
2020 여름방학 정기스터디 5주차2020 여름방학 정기스터디 5주차
2020 여름방학 정기스터디 5주차Moonki Choi
 
2020 겨울방학 정기스터디 2주차
2020 겨울방학 정기스터디 2주차2020 겨울방학 정기스터디 2주차
2020 겨울방학 정기스터디 2주차Moonki Choi
 
2020 2학기 정기스터디 8주차
2020 2학기 정기스터디 8주차2020 2학기 정기스터디 8주차
2020 2학기 정기스터디 8주차Moonki Choi
 
2020 2학기 정기스터디 2주차
2020 2학기 정기스터디 2주차2020 2학기 정기스터디 2주차
2020 2학기 정기스터디 2주차Moonki Choi
 

More from Moonki Choi (12)

2021 2학기 정기 세미나 5주차
2021 2학기 정기 세미나 5주차2021 2학기 정기 세미나 5주차
2021 2학기 정기 세미나 5주차
 
2021 2학기 정기 세미나 4주차
2021 2학기 정기 세미나 4주차2021 2학기 정기 세미나 4주차
2021 2학기 정기 세미나 4주차
 
2021 여름방학 정기 세미나 3주차
2021 여름방학 정기 세미나 3주차2021 여름방학 정기 세미나 3주차
2021 여름방학 정기 세미나 3주차
 
2021 여름방학 정기 세미나 1주차
2021 여름방학 정기 세미나 1주차2021 여름방학 정기 세미나 1주차
2021 여름방학 정기 세미나 1주차
 
2021 알림 오세요
2021 알림 오세요2021 알림 오세요
2021 알림 오세요
 
2021 1학기 정기 세미나 6주차
2021 1학기 정기 세미나 6주차2021 1학기 정기 세미나 6주차
2021 1학기 정기 세미나 6주차
 
2021 1학기 정기 세미나 3주차
2021 1학기 정기 세미나 3주차2021 1학기 정기 세미나 3주차
2021 1학기 정기 세미나 3주차
 
2020 여름방학 정기스터디 6주차
2020 여름방학 정기스터디 6주차2020 여름방학 정기스터디 6주차
2020 여름방학 정기스터디 6주차
 
2020 여름방학 정기스터디 5주차
2020 여름방학 정기스터디 5주차2020 여름방학 정기스터디 5주차
2020 여름방학 정기스터디 5주차
 
2020 겨울방학 정기스터디 2주차
2020 겨울방학 정기스터디 2주차2020 겨울방학 정기스터디 2주차
2020 겨울방학 정기스터디 2주차
 
2020 2학기 정기스터디 8주차
2020 2학기 정기스터디 8주차2020 2학기 정기스터디 8주차
2020 2학기 정기스터디 8주차
 
2020 2학기 정기스터디 2주차
2020 2학기 정기스터디 2주차2020 2학기 정기스터디 2주차
2020 2학기 정기스터디 2주차
 

Recently uploaded

Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksMagic Marks
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwaitjaanualu31
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxSCMS School of Architecture
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdfKamal Acharya
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Servicemeghakumariji156
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...soginsider
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
Bridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxBridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxnuruddin69
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdfKamal Acharya
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsvanyagupta248
 
Air Compressor reciprocating single stage
Air Compressor reciprocating single stageAir Compressor reciprocating single stage
Air Compressor reciprocating single stageAbc194748
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 

Recently uploaded (20)

Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic Marks
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Bridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxBridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptx
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Air Compressor reciprocating single stage
Air Compressor reciprocating single stageAir Compressor reciprocating single stage
Air Compressor reciprocating single stage
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 

2020 1학기 정기스터디 1주차

  • 1. 서울시립대 알고리즘 소모임 완전 탐색 1주차 & 2주차 서울시립대 알고리즘 소모임
  • 2. 강의자 소개 2020 AL林 정기 스터디 2 이름 최문기 소속 서울시립대 컴퓨터과학부(16학번) 핸들 iknoom1107(BOJ) IKnoom(Codeforces) IKnoom(AtCoder) ICPC 팀 Iknoom Cannot Participate Contest(ICPC) - 김정현, 최문기, 최연웅
  • 3. 알고리즘 소모임 AL林 2020 AL林 정기 스터디 3 개강 전 1학기 말 2학기 말 부원 모집 가등록 동아리 중앙 동아리
  • 4. 스터디 계획 2020 AL林 정기 스터디 4 1학기 여름방학 2학기 “완전탐색” 기초 알고리즘 I 기초 알고리즘 II 겨울방학 미정
  • 5. 1학기 스터디 계획 2020 AL林 정기 스터디 5 주차 내용 강의자 1주차 전 자율 스터디 - 1, 2 완전탐색, 큐, 스택, 덱 최문기 3, 4 BFS 유시온 5, 6 DFS 김정현 7, 8 DP, 그리디 알고리즘 개론 이승현, 최연웅
  • 6. 읽어 봅시다. 2020 AL林 정기 스터디 6 BOJ 101 https://www.acmicpc.net/blog/view/55
  • 7. 슬랙(Slack) 2020 AL林 정기 스터디 7 Join URL URL uos-alim.slack.com 질문 외에도 잡담해도 됩니다. 편하게 오세요.
  • 8. AtCoder Beginner Contest(ABC) 2020 AL林 정기 스터디 8 매주 토요일 또는 일요일
  • 9. 2020 AL林 정기 스터디 9 프로그래밍 문제 해결 (PS, Problem Solving)
  • 10. 2020 AL林 정기 스터디 10 문제를 하나 읽어봅시다.
  • 11. 2020 AL林 정기 스터디 11 문제를 하나 읽어봅시다. – 1920번(link) 시간 제한 2초 메모리 제한 128MB 입력 1≤N≤100,000 1≤M≤100,000 모든 정수의 범위는 -231 보다 크거나 같고 231보다 작다. 출력 답이 존재하면 1, 존재하지 않으면 0
  • 12. 프로그래밍 문제 해결 2020 AL林 정기 스터디 12 시간 제한 프로그램이 실행되는 시간의 제한 메모리 제한 프로그램이 사용할 수 있는 메모리의 제한 ✓ 프로그래밍 문제 해결 주어진 입력 데이터에 대해서 제한된 시간과 제한된 메모리 내에서 결과를 출력
  • 13. 시간 제한 – 108 룰 2020 AL林 정기 스터디 13 ✓ 108 룰 컴퓨터는 1초에 간단한 동작을 약 108번 할 수 있다. N의 제한과 시간 제한이 주어지면 시간복잡도를 예측할 수 있다. 입력 크기(n)에 따른 연산의 횟수(O(n))
  • 14. 시간 제한 – 108 룰 2020 AL林 정기 스터디 14 한번 해볼까요? N의 크기 시간 제한 시간 복잡도 8 1초 𝑂 𝑁 , 𝑂 𝑁2 , 𝑂 𝑁3 , 𝑂 2𝑁 , 𝑂(𝑁!) 25 1초 𝑂 𝑁 , 𝑂 𝑁2 , 𝑂 𝑁3 , 𝑂 2𝑁 500 1초 𝑂 𝑁 , 𝑂 𝑁2 , 𝑂 𝑁3 5000 1초 𝑂 𝑁 , 𝑂 𝑁2 1000000 1초 𝑂 𝑁
  • 15. 메모리 제한 2020 AL林 정기 스터디 15 C++에서 정수 자료형 int 하나는 4바이트, long long 하나는 8바이트 방금과 비슷하게 예상 가능하겠죠? ex) 400MB = 정수(int) 108개가 들어간 배열 일반적으로 문제에서 메모리 제한은 넉넉하게 줘서 메모리 때문에 어려운 경우는 상대적으로 적습니다.
  • 16. 2020 AL林 정기 스터디 16 이제 문제를 풀어봅시다.
  • 17. [BOJ 1920번] 수 찾기 2020 AL林 정기 스터디 17 N개의 정수 A[1], A[2], …, A[N]이 주어져 있을 때 이 안에 X라는 정수가 존재하는지 M번 알아내야합니다. 5 4 1 5 2 3 5 1 3 7 9 5 1 1 0 0 1
  • 18. 풀이 방법 2020 AL林 정기 스터디 18 1. N개의 수를 배열에 저장 2. 다음을 M번 반복 • N개의 배열에서 X가 있는지 탐색 => O(N) • 있으면 1, 없으면 0을 출력 O(N)을 M번 => O(N*M)
  • 19. 풀이 방법 2020 AL林 정기 스터디 19 시간 안에 될까요?
  • 20. 풀이 방법 2020 AL林 정기 스터디 20 N은 최대 100,000 M은 최대 100,000 즉 N*M은 최대 10,000,000,000 (100억) = 약 100초 > 2초 시간 초과
  • 21. 풀이 방법 2 2020 AL林 정기 스터디 21 1. 전역변수로 232크기의 정수 배열 count 생성 2. N개의 A[i]에 대해서 count[A[i] + 231] += 1 3. 다음을 M번 반복 • 수 X에 대해서 만약 count[X + 231]가 0보다 크면 1을 출력 • 아니면 0을 출력
  • 22. 풀이 방법 2 2020 AL林 정기 스터디 22 1. count 2. count 3. 다음을 M번 반복 • 수 X에 대해서 만약 count[X + k]가 0보다 크면 1을 출력 • 아니면 0을 출력 -4+k -3+k -2+k -1+k 0+k 1+k 2+k 3+k 4+k 5+k 0 0 0 0 0 0 0 0 0 0 -4+k -3+k -2+k -1+k 0+k 1+k 2+k 3+k 4+k 5+k 0 0 0 0 0 1 1 1 1 1 , k = 231
  • 23. 풀이 방법 2 2020 AL林 정기 스터디 23 배열에 인덱스로 접근하는 것은 상수시간 (count[index] => O(1)) 따라서 시간복잡도는 max(O(N), O(M))
  • 24. 풀이 방법 2 2020 AL林 정기 스터디 24 하지만, 232크기의 정수 배열의 크기는 어떻게 될까요? 4Byte * 232 = (4 * 4 * 1073741824)Byte = 약 17180MB > 128MB 메모리 초과
  • 25. 우린 망한걸까요? 2020 AL林 정기 스터디 25
  • 26. 풀이 방법 3 2020 AL林 정기 스터디 26 1. N개의 수를 배열에 저장 2. 배열을 정렬 => O(NlogN) 3. 다음을 M번 반복 • N개의 배열에서 X가 있는지 이분 탐색한다. => O(logN) • 있으면 1, 없으면 0을 출력한다.
  • 27. 풀이 방법 3 - 이분탐색? 2020 AL林 정기 스터디 27 N크기의 정렬된 배열에서 특정 값을 찾는 최대 연산 횟수는 log2N 7 is the target value (출처 wikipedia) 탐색할 필요가 없다.
  • 28. 풀이 방법 3 2020 AL林 정기 스터디 28 N은 최대 100,000 / M은 최대 100,000 N개를 정렬 => O(NlogN) 이분탐색을 M번 => O(MlogN) log(100,000) = 16~17 따라서 O(NlogN) 또는 O(MlogN)는 최대 약 1,700,000 < 2초 맞았습니다
  • 29. 프로그래밍 문제 해결 2020 AL林 정기 스터디 29 ✓ 프로그래밍 문제 해결 주어진 입력 데이터에 대해서 제한된 시간과 제한된 메모리 내에서 결과를 출력 자료구조와 알고리즘을 이용해 문제를 효율적으로 해결하는 과정 효율적으로 최적화 하는 과정이 없다면? => 구현 ( 완전탐색, 시뮬레이션 )
  • 30. 2020 AL林 정기 스터디 30 완전 탐색
  • 31. 완전 탐색 2020 AL林 정기 스터디 31 ✓ 브루트 포스(Brute-force search) ✓ 답이 될 수 있는 모든 경우의 수를 탐색한다. ✓ 가장 쉽고 단순한 방법 ✓ 더 효율적으로 문제를 풀기 위한 기반(출발점)이 되기도 한다.
  • 32. 완전 탐색 2020 AL林 정기 스터디 32 하지만 완전 탐색만으로도 충분히 어려운 문제도 있다. → 짧은 시간 안에 빠르고 정확하게 구현하는 능력이 중요
  • 33. 완전 탐색 2020 AL林 정기 스터디 33 비선형 구조(그래프)에서의 완전 탐색 - BFS(너비 우선 탐색) : 3주차 - DFS(깊이 우선 탐색) : 5주차
  • 34. [BOJ 2309번] 일곱 난쟁이 2020 AL林 정기 스터디 34 9개의 정수 중에서 합이 100이 되는 7개의 정수를 구한다. → 9개 중에서 2개를 제외했을 때 나머지 정수의 합이 100 → 2개를 제외하는 모든 경우의 수는 9C2 = 36가지 → 36가지 경우를 완전 탐색
  • 35. [BOJ 2309번] 일곱 난쟁이 - 정답 2020 AL林 정기 스터디 35
  • 36. 2020 AL林 정기 스터디 36 배열 / 스택 / 큐 / 덱
  • 37. 전부 구현되어있습니다. 2020 AL林 정기 스터디 37 기본 자료구조는 라이브러리에 구현되어있습니다. (구조는 간단해보이지만 직접 구현하려고 보면 그렇게 쉽지 않습니다.) 알고리즘 문제를 풀면서 실제 큐, 스택, 덱을 구현할 일은 없습니다. 예외) 삼성 역량 테스트 B형과 C형
  • 38. 동적 배열 / 문자열 2020 AL林 정기 스터디 38 배열(문자열)의 크기를 동적으로 변경할 수 있다. ※ 파이썬은 기본 자료구조가 동적이다. 자료구조 C++ Java Python 동적 배열 vector ArrayList [] 문자열 string String ""
  • 39. 동적 배열 / 문자열 2020 AL林 정기 스터디 39 #include 또는 import하고 쓰면 됩니다.
  • 40. 스택 2020 AL林 정기 스터디 40 “Last In First Out” 마지막으로 들어간 데이터가 가장 먼저 나오는 자료구조 stack.top() stack.push() stack.pop() stack.empty()
  • 41. 큐 2020 AL林 정기 스터디 41 먼저 들어간 데이터가 가장 먼저 나오는 자료구조 queue.front() queue.back() queue.push() queue.pop() queue.empty() “First In First Out”
  • 42. 덱 2020 AL林 정기 스터디 42 스택과 큐를 합친 구조 양쪽에서 push pop이 가능 push push pop pop
  • 43. 스택 / 큐 / 덱 2020 AL林 정기 스터디 43 push pop push pop push push pop pop 스택 큐 덱
  • 44. 스택 / 큐 / 덱 2020 AL林 정기 스터디 44 자료구조 C++ Java Python 스택 stack Stack (동적 배열을 사용) 큐 queue LinkedList (덱을 사용) 덱 deque ArrayDeque deque
  • 45. 스택 / 큐 / 덱 2020 AL林 정기 스터디 45 #include 또는 import하고 쓰면 됩니다.
  • 46. 연습 문제 2020 AL林 정기 스터디 46 완전 탐색 2309 일곱 난쟁이 2231 분해합 2798 블랙잭 10448 유레카 이론 1436 영화감독 숌 1018 체스판 다시 칠하기 2503 숫자 야구 스텍, 큐, 덱 10828 스택 10845 큐 10866 덱 9012 괄호 2164 카드2 1021 회전하는 큐
  • 47. 연습 문제 2020 AL林 정기 스터디 47 순서 스택, 큐, 덱 → (기초 문법) → 완전 탐색
  • 48. 출처 2020 AL林 정기 스터디 48 https://en.wikipedia.org/ https://www.acmicpc.net/problem/12100 https://www.acmicpc.net/problem/14500 https://programmers.co.kr/learn/courses/30/lessons/60059