Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BFS, DFS] 오타인건지 궁금합니다. #178

Open
Yoowatney opened this issue Mar 13, 2022 · 0 comments
Open

[BFS, DFS] 오타인건지 궁금합니다. #178

Yoowatney opened this issue Mar 13, 2022 · 0 comments

Comments

@Yoowatney
Copy link

초판 3쇄 기준 143p, 146p에서 "탐색하는데 O(N)의 시간이 소요된다"라는 말이 잘 이해가 안 됩니다 (여기서 데이터는 노드를 말하는걸로 가정하겠습니다)
DFS를 인접 행렬로 구현했는지, 인접리스트로 구현한지에 따라 시간 복잡도가 달라지지 않나요?
두 경우 전부 시간 복잡도가 O(V), 즉 O(N)을 따르지는 않을텐데 저자가 말하는 O(N)의 시간이 소요된다는게 무슨 의미인지 잘 모르겠습니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant