본문 바로가기 메뉴 바로가기

10000COW

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

10000COW

검색하기 폼
  • 🧑🏻‍💻 모든 글 (58)
    • 🧑🏻‍💻 알고리즘 (15)
      • 정렬 (8)
      • 그래프 (4)
      • 탐색 트리 (2)
      • 문자열 검색 (1)
    • 컴퓨터 그래픽스 (1)
    • 🟨 JavaScript (17)
      • 변수와 데이터타입 (1)
      • 연산자 (4)
      • 함수 (2)
      • 객체 (2)
      • 배열 (1)
      • Hoisting (1)
      • 모듈 (1)
    • ☁️ AWS (3)
      • S3 (2)
      • IAM (1)
    • 🧑🏻‍💻 CS (8)
      • 데이터베이스 (3)
      • 프로그래밍 (5)
    • 🧑🏻‍💻 코딩테스트 (7)
      • LeetCode (2)
      • 백준 (5)
    • ⬛️ Git (4)
  • 방명록

깊이우선탐색 (1)
[그래프]DFS 구현 방법을 알아보자

1) 재귀를 이용한 DFS 구현 Pseudo code G는 그래프, v는 정점(vertex)일 때, DFS(G,v) lable v as discovered for all directed edges from v to w that are in G.adjacentEdges(v) do if vertex w is not labeled as discovered then recursively call DFS(G,w) 재귀를 이용한 DFS 구현 Python code def recursive_dfs(v, discovered=[]): discovered.append(v) for w in graph[v]: if w not in discovered: discovered = recusrive_dfs(w, discovered) ..

🧑🏻‍💻 알고리즘/그래프 2022. 10. 23. 17:45
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • Github
  • ✉️ yeom_123@naver.com
TAG
  • 자바스크립트
  • github
  • 데이터베이스
  • CSS
  • 리액트
  • Component
  • react
  • useState
  • 자료구조
  • DB
  • 에러
  • 브라우저
  • React Query
  • Python
  • git
  • DOM
  • BOJ
  • error
  • 파이썬
  • leetcode
  • zustand
  • 정렬
  • state
  • JavaScript
  • Browser
  • mdn
  • Context API
  • 함수
  • 그래프
  • 알고리즘
more
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함
250x250

Blog is powered by Tistory / Designed by Tistory
728x90

티스토리툴바