[강신지-11주차 알고리즘 스터디]#16
Open
ksinji wants to merge 15 commits intoSSAFY13th-algorithm:akstp1717/week11from
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 싸피 15반 알고리즘 스터디 11주차 [강신지]
📌 문제 풀이 개요
✅ 문제 해결 여부
💡 풀이 방법
문제 1: 알고스팟
문제 난이도
골드 4
문제 유형
그래프
접근 방식 및 풀이
시작점에서 도착점까지 도달하는 데 필요한 최소 벽 부수기 횟수를 구하는 문제입니다.
0-1 BFS를 사용하여 각 칸까지의 최소 벽 부수기 횟수를 갱신하는 방식으로 해결했습니다.
문제 2: 거울설치
문제 난이도
골드 3
문제 유형
그래프
접근 방식 및 풀이
한쪽 문에서 다른쪽 문을 보기 위해 필요한 최소 거울 설치 횟수를 구하는 문제입니다.
각 위치와 방향별로 상태를 관리하면서 우선순위 큐를 통해 최소 거울 설치 횟수를 구했습니다.
회전 연산을 쉽게 하기 위해, 주로 사용하던 '상하좌우' 순서가 아닌 '상우좌하' 순서로 하였습니다.
문제 3: 2×n 타일링 2
문제 난이도
실버 3
문제 유형
DP
접근 방식 및 풀이
2×n 크기의 타일을 채우는 경우의 수를 구하는 문제로, 점화식을 세워 DP로 풀었습니다.
문제 4: LCS
문제 난이도
골드 5
문제 유형
DP
접근 방식 및 풀이
최장 공통 부분 수열의 길이를 구하는 문제입니다.
2차원 DP 배열을 이용해 문자가 일치하면 대각선 값, 불일치할 경우 좌/상 중 최댓값을 선택하는 방식으로 해결했습니다.
문제 5 : 평범한 배낭
문제 난이도
골드 5
문제 유형
DP
접근 방식 및 풀이
주어진 무게 제한 내에서 최대 가치를 구하는 문제입니다.
각 물건을 포함하거나 제외하는 경우를 2차원 DP 배열을 통해 비교하며 최적의 가치를 구하는 방식으로 해결했습니다.