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.
PR Summary
<풀이 시간>
2시간+
<문제 회고>
TSP는 잘 알려진 문제이다.
2주전 TSP 문제를 볼 기회가 있어서 어떻게 푸는 지는 알고 있었다.
그리고 산 모양 타일링 문제와 유사한 방식으로 접근하면 된다고 느꼈다.
하지만, node 방문한 것을 DP로 어떻게 적용할 지(bit masking) 떠오르지 못했고, 방문할 수 없을 때와 방문하지 않았을 때 차이를 두지 않아 조금 오래 걸렸다.
산 모양 타일링과 유사하게 bottom-up 방식으로 풀었는데, top-down 방식으로 화요일에 한 번 풀어봐야 겠다.