SlideShare une entreprise Scribd logo
1  sur  47
Mathematical structuresfor Computer Science이산수학 5.1 그래프의 정의와 표현 5.2 트리 아키텍트를 꿈꾸는 사람들 (http://cafe.naver.com/architect1) 현수명
그래프의 정의와 표현 ,[object Object]
그래프의 응용
그래프의 용어
동형 그래프
평면 그래프
그래프의 표현
트리
트리의 용어
트리의 응용
이진트리의 표현
트리 순회 알고리즘
트리에 대한 결과,[object Object]
그래프의 응용
그래프의 용어
동형 그래프
평면 그래프
그래프의 표현,[object Object]
Definition Graph 그래프는 순서쌍 (N, A, g)이다 N : Node 들의 집합. (공집합 안됨) A : Arc 들의 집합. (공집합 허용,유한개) g : Arc a 의 끝점이라고 하는 비순서쌍 x-y 가  각각의 arc a 로 사상하는 함수
Example 5.3 a3 Node Arc 2 a2 g(aX) 함수 a4 a1 a6 a5 1 3 4 5 g(a1) = 1-2 g(a2) = 1-2 g(a3) = 2-2 g(a4) = 2-3 g(a5) = 1-3 g(a6) = 3-4
Example 5.4 a5 a1 a2 a3 2 4 1 a4 3 g(a3) = (1,3) g(a4) = (3,1) g(a1) = (1,2)
Definition Directed Graph 방향성 그래프는 순서쌍 (N, A, g)이다 N : Node 들의 집합. (공집합 안됨) A : Arc 들의 집합. (공집합 허용,유한개) g : Node x 와 node y 를 연결하는 arc a 를 사상하는 함수로서, 순서쌍인 (x,y) 로 표시
Graph ,[object Object]
그래프의 응용
그래프의 용어
동형 그래프
평면 그래프
그래프의 표현,[object Object]
그래프의 응용
그래프의 용어
동형 그래프
평면 그래프
그래프의 표현,[object Object]
루프loop 어떤 노드n 에 대하여 아크 n-n 이 있는 경우 a3 a3 = 2-2 는 루프이다. 2 a2 a4 a1 a6 a5 1 3 4 5 비루프그래프loop-free          그래프에서 루프가 없는 경우
병렬 아크parallel arc 어떤 두개의노드가 서로 다른 두개의아크들로 연결된 경우 a3 a1과 a2는 병렬 아크 2 a2 a4 a1 a6 a5 1 3 4 5 단순 그래프simple graph          그래프가 루프와 병렬 아크를 갖지 않는 경우
고립 노드isolated node 노드가 인접한 노드들을 갖고 있지 않은 경우 a3 노드5 는 고립 노드 2 a2 a4 a1 a6 a5 1 3 4 5
차수degree 어떤 노드에 연결되어있는 아크의 수 a3 노드1 의 차수는 3 노드3 의 차수도 3 노드4 의 차수는 1 노드5 의 차수는 0 2 a2 a4 a1 a6 a5 1 3 4 5
부분 그래프subgraph 그래프 g 의 노드집합과 아크집합에 대해  각각 이들의 부분 집합으로 이루어진 그래프 g’ a3 a3 a2 2 a4 a1 2 2 a6 a5 1 3 4 5 a2 a4 a1 a1 a5 a5 1 1 3 3 부분그래프 g’ 은 원래의 그래프 g 에서 어떤 부분을 삭제하고 나머지 부분은 변경하지 않은 채로 얻게 된다
완전 그래프complete graph          그래프에서 어떠한 두개의노드가 서로 모두 인접해 있는 경우 2 a3 a4 2 a2 a1 a1 a5 1 a5 3 1 3 단순 그래프 이면서 완전 그래프
경로path 노드와아크들의 연속적인 순서 어떤 노드n0에서 nk까지의 순서 n0, a0, n1, a1, … , nk-1, ak-1, nk a3 노드2 에서 4 까지의 경로들중에 하나   2, a1, 1, a2, 2, a4, 3, a6, 4 노드2 에서 4 까지 경로의 길이는 4 a2 2 a4 a1 a6 a5 1 3 4 5 경로의 길이length of path 경로상에 있는 아크들의 수
연결 그래프connected graph          각 노드에서 시작하여 다른 모든 노드까지 경로가 있는 경우 2 a3 a4 연결 그래프 a3 2 a2 a1 a2 a1 2 a4 a5 1 a5 3 1 3 a1 a6 a5 1 3 4 5 연결 그래프아님!
사이클cycle          어떤 노드n0에서 시작하여 n0까지 도달하는 경로가 있는 경우 1, a1, 2, a4, 3, a5, 1 a3 a2 2 a4 a1 a6 a5 1 3 4 5 비순환 그래프acyclic graph          그래프에 사이클이 존재하지 않는 경우
Example 5.8 K4 K1 K2 K3 simple-complete graph     각각 한 개, 두 개, 세 개, 네 개의 노드들로 구성된 단순, 완전 그래프 N 개의 노드들로 구성된 단순,완전 그래프는 Kn으로 표기
1 2 완전 그래프는 아니다.  각 노드가 다른 모든 노드와 인접해 있지 않기 때문 {1, 2} 와 {3, 4, 5} 로 표현가능 3 4 5 같은 집합에 속한 노드들 사이에는 아크가 없지만, 서로 다른 집합에 속한 노드들 사이에는 아크가 있다 완전 이분할 그래프bipartite complete graph
Definition 완전 이분할 그래프                                                bipartite complete graph 그래프의 노드들을 서로소인 두개의비공집합인 N1과 N2로 분할한 경우 다음을 만족하면 완전이분할 그래프이다 ,[object Object],  x ∈ N1이고 y ∈ N2이어야 한다 ,[object Object],완전 이분할 그래프는 Km,n으로 표기한다 1 2 3 4 5
Graph ,[object Object]
그래프의 응용

Contenu connexe

Tendances

05_벡터와 매트릭스
05_벡터와 매트릭스05_벡터와 매트릭스
05_벡터와 매트릭스noerror
 
2.1 부동소수점 비법들
2.1 부동소수점 비법들2.1 부동소수점 비법들
2.1 부동소수점 비법들준섭 김
 
2021 2학기 정기 세미나 5주차
2021 2학기 정기 세미나 5주차2021 2학기 정기 세미나 5주차
2021 2학기 정기 세미나 5주차Moonki Choi
 
Quaternion and Rotation
Quaternion and RotationQuaternion and Rotation
Quaternion and RotationYoung-Min kang
 
그래프의 최단 경로 찾기
그래프의 최단 경로 찾기그래프의 최단 경로 찾기
그래프의 최단 경로 찾기Jung-Ho Kim
 
2020 여름방학 정기스터디 5주차
2020 여름방학 정기스터디 5주차2020 여름방학 정기스터디 5주차
2020 여름방학 정기스터디 5주차Moonki Choi
 
이산치수학 Project4
이산치수학 Project4이산치수학 Project4
이산치수학 Project4KoChungWook
 
마칭 큐브 알고리즘 - ZP 2019 데캠
마칭 큐브 알고리즘 - ZP 2019 데캠마칭 큐브 알고리즘 - ZP 2019 데캠
마칭 큐브 알고리즘 - ZP 2019 데캠동환 김
 

Tendances (12)

05_벡터와 매트릭스
05_벡터와 매트릭스05_벡터와 매트릭스
05_벡터와 매트릭스
 
2.1 부동소수점 비법들
2.1 부동소수점 비법들2.1 부동소수점 비법들
2.1 부동소수점 비법들
 
2021 2학기 정기 세미나 5주차
2021 2학기 정기 세미나 5주차2021 2학기 정기 세미나 5주차
2021 2학기 정기 세미나 5주차
 
Ch07
Ch07Ch07
Ch07
 
Quaternion and Rotation
Quaternion and RotationQuaternion and Rotation
Quaternion and Rotation
 
선형 대수학
선형 대수학선형 대수학
선형 대수학
 
그래프의 최단 경로 찾기
그래프의 최단 경로 찾기그래프의 최단 경로 찾기
그래프의 최단 경로 찾기
 
2020 여름방학 정기스터디 5주차
2020 여름방학 정기스터디 5주차2020 여름방학 정기스터디 5주차
2020 여름방학 정기스터디 5주차
 
이산치수학 Project4
이산치수학 Project4이산치수학 Project4
이산치수학 Project4
 
행렬
행렬행렬
행렬
 
마칭 큐브 알고리즘 - ZP 2019 데캠
마칭 큐브 알고리즘 - ZP 2019 데캠마칭 큐브 알고리즘 - ZP 2019 데캠
마칭 큐브 알고리즘 - ZP 2019 데캠
 
점, 선, 면
점, 선, 면점, 선, 면
점, 선, 면
 

En vedette

xUnitTestPattern/chapter8
xUnitTestPattern/chapter8xUnitTestPattern/chapter8
xUnitTestPattern/chapter8hyun soomyung
 
[페차쿠차] 배움의 기술
[페차쿠차] 배움의 기술[페차쿠차] 배움의 기술
[페차쿠차] 배움의 기술hyun soomyung
 
The Art of Computer Programming 2.3.2 Tree
The Art of Computer Programming 2.3.2 TreeThe Art of Computer Programming 2.3.2 Tree
The Art of Computer Programming 2.3.2 Treehyun soomyung
 
The Art of Computer Programming 1.2.5
The Art of Computer Programming 1.2.5The Art of Computer Programming 1.2.5
The Art of Computer Programming 1.2.5hyun soomyung
 
HTML5 & CSS3 - Video,Audio
HTML5 & CSS3 - Video,AudioHTML5 & CSS3 - Video,Audio
HTML5 & CSS3 - Video,Audiohyun soomyung
 
The Art of Computer Programming 2.4 다중연결구조
The Art of Computer Programming 2.4 다중연결구조The Art of Computer Programming 2.4 다중연결구조
The Art of Computer Programming 2.4 다중연결구조hyun soomyung
 
프로그램은 왜 실패하는가?
프로그램은 왜 실패하는가?프로그램은 왜 실패하는가?
프로그램은 왜 실패하는가?hyun soomyung
 
Domain Driven Design
Domain Driven DesignDomain Driven Design
Domain Driven Designhyun soomyung
 
Dependency Breaking Techniques
Dependency Breaking TechniquesDependency Breaking Techniques
Dependency Breaking Techniqueshyun soomyung
 
실전 윈도우 디버깅. Ch3. 디버거 해부
실전 윈도우 디버깅. Ch3. 디버거 해부실전 윈도우 디버깅. Ch3. 디버거 해부
실전 윈도우 디버깅. Ch3. 디버거 해부hyun soomyung
 
프로그래머의 길,멘토에게 묻다 2장
프로그래머의 길,멘토에게 묻다 2장프로그래머의 길,멘토에게 묻다 2장
프로그래머의 길,멘토에게 묻다 2장hyun soomyung
 
5장 그래프의 비밀 (Programming Game AI by Example)
5장 그래프의 비밀 (Programming Game AI by Example)5장 그래프의 비밀 (Programming Game AI by Example)
5장 그래프의 비밀 (Programming Game AI by Example)hyun soomyung
 
예제로 보는 Pattern 연상법
예제로 보는 Pattern 연상법예제로 보는 Pattern 연상법
예제로 보는 Pattern 연상법hyun soomyung
 
Scalable Web Architecture and Distributed Systems
Scalable Web Architecture and Distributed SystemsScalable Web Architecture and Distributed Systems
Scalable Web Architecture and Distributed Systemshyun soomyung
 

En vedette (17)

xUnitTestPattern/chapter8
xUnitTestPattern/chapter8xUnitTestPattern/chapter8
xUnitTestPattern/chapter8
 
Hybrid app
Hybrid appHybrid app
Hybrid app
 
MapReduce
MapReduceMapReduce
MapReduce
 
Clojure Chapter.6
Clojure Chapter.6Clojure Chapter.6
Clojure Chapter.6
 
[페차쿠차] 배움의 기술
[페차쿠차] 배움의 기술[페차쿠차] 배움의 기술
[페차쿠차] 배움의 기술
 
The Art of Computer Programming 2.3.2 Tree
The Art of Computer Programming 2.3.2 TreeThe Art of Computer Programming 2.3.2 Tree
The Art of Computer Programming 2.3.2 Tree
 
The Art of Computer Programming 1.2.5
The Art of Computer Programming 1.2.5The Art of Computer Programming 1.2.5
The Art of Computer Programming 1.2.5
 
HTML5 & CSS3 - Video,Audio
HTML5 & CSS3 - Video,AudioHTML5 & CSS3 - Video,Audio
HTML5 & CSS3 - Video,Audio
 
The Art of Computer Programming 2.4 다중연결구조
The Art of Computer Programming 2.4 다중연결구조The Art of Computer Programming 2.4 다중연결구조
The Art of Computer Programming 2.4 다중연결구조
 
프로그램은 왜 실패하는가?
프로그램은 왜 실패하는가?프로그램은 왜 실패하는가?
프로그램은 왜 실패하는가?
 
Domain Driven Design
Domain Driven DesignDomain Driven Design
Domain Driven Design
 
Dependency Breaking Techniques
Dependency Breaking TechniquesDependency Breaking Techniques
Dependency Breaking Techniques
 
실전 윈도우 디버깅. Ch3. 디버거 해부
실전 윈도우 디버깅. Ch3. 디버거 해부실전 윈도우 디버깅. Ch3. 디버거 해부
실전 윈도우 디버깅. Ch3. 디버거 해부
 
프로그래머의 길,멘토에게 묻다 2장
프로그래머의 길,멘토에게 묻다 2장프로그래머의 길,멘토에게 묻다 2장
프로그래머의 길,멘토에게 묻다 2장
 
5장 그래프의 비밀 (Programming Game AI by Example)
5장 그래프의 비밀 (Programming Game AI by Example)5장 그래프의 비밀 (Programming Game AI by Example)
5장 그래프의 비밀 (Programming Game AI by Example)
 
예제로 보는 Pattern 연상법
예제로 보는 Pattern 연상법예제로 보는 Pattern 연상법
예제로 보는 Pattern 연상법
 
Scalable Web Architecture and Distributed Systems
Scalable Web Architecture and Distributed SystemsScalable Web Architecture and Distributed Systems
Scalable Web Architecture and Distributed Systems
 

Similaire à 이산수학 Ch.5

자료구조 그래프
자료구조 그래프자료구조 그래프
자료구조 그래프송미 이
 
Data Structure 2
Data Structure 2Data Structure 2
Data Structure 2yonsei
 
길찾기
길찾기길찾기
길찾기mil23
 
02.선형변환과 행렬
02.선형변환과 행렬02.선형변환과 행렬
02.선형변환과 행렬JaeHong Park
 
Python+numpy pandas 2편
Python+numpy pandas 2편Python+numpy pandas 2편
Python+numpy pandas 2편Yong Joon Moon
 
[Swift] Data Structure - Graph
[Swift] Data Structure - Graph[Swift] Data Structure - Graph
[Swift] Data Structure - GraphBill Kim
 
프로그래머를위한선형대수학1.2
프로그래머를위한선형대수학1.2프로그래머를위한선형대수학1.2
프로그래머를위한선형대수학1.2HyeonSeok Choi
 
Project#4 Syntax Of Languages Hwp
Project#4 Syntax Of Languages HwpProject#4 Syntax Of Languages Hwp
Project#4 Syntax Of Languages HwpKimjeongmoo
 
Support Vector Machine Tutorial 한국어
Support Vector Machine Tutorial 한국어Support Vector Machine Tutorial 한국어
Support Vector Machine Tutorial 한국어Jungkyu Lee
 
Higher order procedure2 with conventional interface
Higher order procedure2 with conventional interface Higher order procedure2 with conventional interface
Higher order procedure2 with conventional interface fromitive
 

Similaire à 이산수학 Ch.5 (11)

자료구조 그래프
자료구조 그래프자료구조 그래프
자료구조 그래프
 
2012 Dm 04
2012 Dm 042012 Dm 04
2012 Dm 04
 
Data Structure 2
Data Structure 2Data Structure 2
Data Structure 2
 
길찾기
길찾기길찾기
길찾기
 
02.선형변환과 행렬
02.선형변환과 행렬02.선형변환과 행렬
02.선형변환과 행렬
 
Python+numpy pandas 2편
Python+numpy pandas 2편Python+numpy pandas 2편
Python+numpy pandas 2편
 
[Swift] Data Structure - Graph
[Swift] Data Structure - Graph[Swift] Data Structure - Graph
[Swift] Data Structure - Graph
 
프로그래머를위한선형대수학1.2
프로그래머를위한선형대수학1.2프로그래머를위한선형대수학1.2
프로그래머를위한선형대수학1.2
 
Project#4 Syntax Of Languages Hwp
Project#4 Syntax Of Languages HwpProject#4 Syntax Of Languages Hwp
Project#4 Syntax Of Languages Hwp
 
Support Vector Machine Tutorial 한국어
Support Vector Machine Tutorial 한국어Support Vector Machine Tutorial 한국어
Support Vector Machine Tutorial 한국어
 
Higher order procedure2 with conventional interface
Higher order procedure2 with conventional interface Higher order procedure2 with conventional interface
Higher order procedure2 with conventional interface
 

Plus de hyun soomyung

아꿈사 매니저소개
아꿈사 매니저소개아꿈사 매니저소개
아꿈사 매니저소개hyun soomyung
 
Design Pattern - Multithread Ch10
Design Pattern - Multithread Ch10Design Pattern - Multithread Ch10
Design Pattern - Multithread Ch10hyun soomyung
 
The Art of Computer Programming 1.3.2 MIXAL
The Art of Computer Programming 1.3.2 MIXALThe Art of Computer Programming 1.3.2 MIXAL
The Art of Computer Programming 1.3.2 MIXALhyun soomyung
 
스터디그룹 패턴 (A PATTERN LANGUAGE FOR STUDY GROUPS)
스터디그룹 패턴 (A PATTERN LANGUAGE FOR STUDY GROUPS)스터디그룹 패턴 (A PATTERN LANGUAGE FOR STUDY GROUPS)
스터디그룹 패턴 (A PATTERN LANGUAGE FOR STUDY GROUPS)hyun soomyung
 

Plus de hyun soomyung (6)

아꿈사 매니저소개
아꿈사 매니저소개아꿈사 매니저소개
아꿈사 매니저소개
 
MongoDB
MongoDBMongoDB
MongoDB
 
Design Pattern - Multithread Ch10
Design Pattern - Multithread Ch10Design Pattern - Multithread Ch10
Design Pattern - Multithread Ch10
 
The Art of Computer Programming 1.3.2 MIXAL
The Art of Computer Programming 1.3.2 MIXALThe Art of Computer Programming 1.3.2 MIXAL
The Art of Computer Programming 1.3.2 MIXAL
 
스터디그룹 패턴 (A PATTERN LANGUAGE FOR STUDY GROUPS)
스터디그룹 패턴 (A PATTERN LANGUAGE FOR STUDY GROUPS)스터디그룹 패턴 (A PATTERN LANGUAGE FOR STUDY GROUPS)
스터디그룹 패턴 (A PATTERN LANGUAGE FOR STUDY GROUPS)
 
Erlang
ErlangErlang
Erlang
 

이산수학 Ch.5