Lập trình C nâng cao - Fit Lec 6 (HUST) GV.AnhTT
- 페이지 수
- 11
- 형식
- 크기
- 228 KB
- Trường
- Đại học Bách khoa Hà Nội
- 조회수
- 0
- 댓글
- 0
- Lượt tải
- 0
미리보기 생성 중...
Tài liệu giảng dạy về đồ thị vô hướng, các khái niệm cơ bản về biểu diễn đồ thị (danh sách cạnh, ma trận kề, danh sách kề) và các bài tập thực hành lập trình C để xây dựng các cấu trúc dữ liệu đồ thị.
- 문서명
- Lập trình C nâng cao - Fit Lec 6 (HUST) GV.AnhTT
- 학교 / 강의
- Đại học Bách khoa Hà Nội · Lập trình C
- 작성자 (문서 내)
- AnhTT
- 내용
- Tài liệu này tập trung vào đồ thị vô hướng, các bài toán liên quan và các phương pháp biểu diễn đồ thị phổ biến như danh sách cạnh, ma trận kề và danh sách kề, cùng với các ví dụ và bài tập thực hành.
- 목차
- Undirected graphs
- Graph terminology
- Some graph-processing problems
- Graph representation (1)
- Edge List Structure
- Graph representation (2)
- Graph representation (3)
- Adjacency List Representation
- 페이지 수
- 11 페이지
- 업로더
- lienhejb
설명
Trích nội dung tài liệu
Undirected graphs anhtt-fit@mail.hut.edu.vn dungct@it-hut.edu.vn Undirected graphs A graph G=(V, E) where V is a set of vertices connected pairwise by edges E. Why study graph algorithms? Interesting and broadly useful abstraction. Challenging branch of computer science and discrete math. Hundreds of graph algorithms known. Thousands of practical applications. Communication, circuits, transportation, scheduling, software systems, internet, games, social network, neural networks, … 1 Graph terminology Some graph-processing problems Path: Is there a path between s to t? Shortest path: What is the shortest path between s and t? Cycle: Is there a cycle in the graph? Euler tour: Is there a cycle that uses each edge exactly once? Hamilton tour: Is there a cycle that uses each vertex exactly once? Connectivity: Is there a way to connect all of the vertices? MST: What is the best way to connect all of the vertices? Biconnectivity: Is there a vertex whose removal disconnects the graph? 2 Graph representation (1) Maintain a list of the edges Not suitable for searching Edge List Structure Edge sequence sequence of edge objects Edge object element origin vertex object destination vertex object reference to position in edge sequence Vertex sequence sequence of vertex objects Vertex object element reference to position in vertex sequence 3 Graph representation (2) Maintain an adjacency matrix. Suitable for random accesses to the edges A graph data structure Use a dynamic array to represent a graph as the following typedef struct { int * matrix; int sizemax; } Graph; Define the following API Graph createGraph(int sizemax); void setEdge(Graph* graph, int v1,
자주 묻는 질문
이 문서는 무료인가요?
네. “Lập trình C nâng cao - Fit Lec 6 (HUST) GV.AnhTT” 문서는 무료입니다. 로그인 후 '다운로드'를 클릭하여 원본 파일을 받으세요.
이 문서는 몇 페이지로 되어 있나요?
이 문서는 11페이지입니다, Lập trình C 과정용. 다운로드하기 전에 온라인으로 미리 볼 수 있습니다.
다운로드하기 전에 미리 볼 수 있나요?
네. 이 페이지의 온라인 리더를 통해 문서를 미리 본 후 다운로드 여부를 결정할 수 있습니다.
Lập trình C nâng cao - Fit Lec 6 (HUST) GV.AnhTT
미리보기 생성 중...
Trích nội dung tài liệu
Undirected graphs anhtt-fit@mail.hut.edu.vn dungct@it-hut.edu.vn Undirected graphs A graph G=(V, E) where V is a set of vertices connected pairwise by edges E. Why study graph algorithms? Interesting and broadly useful abstraction. Challenging branch of computer science and discrete math. Hundreds of graph algorithms known. Thousands of practical applications. Communication, circuits, transportation, scheduling, software systems, internet, games, social network, neural networks, … 1 Graph terminology Some graph-processing problems Path: Is there a path between s to t? Shortest path: What is the shortest path between s and t? Cycle: Is there a cycle in the graph? Euler tour: Is there a cycle that uses each edge exactly once? Hamilton tour: Is there a cycle that uses each vertex exactly once? Connectivity: Is there a way to connect all of the vertices? MST: What is the best way to connect all of the vertices? Biconnectivity: Is there a vertex whose removal disconnects the graph? 2 Graph representation (1) Maintain a list of the edges Not suitable for searching Edge List Structure Edge sequence sequence of edge objects Edge object element origin vertex object destination vertex object reference to position in edge sequence Vertex sequence sequence of vertex objects Vertex object element reference to position in vertex sequence 3 Graph representation (2) Maintain an adjacency matrix. Suitable for random accesses to the edges A graph data structure Use a dynamic array to represent a graph as the following typedef struct { int * matrix; int sizemax; } Graph; Define the following API Graph createGraph(int sizemax); void setEdge(Graph* graph, int v1,
- 문서명
- Lập trình C nâng cao - Fit Lec 6 (HUST) GV.AnhTT
- 학교 / 강의
- Đại học Bách khoa Hà Nội · Lập trình C
- 작성자 (문서 내)
- AnhTT
- 내용
- Tài liệu này tập trung vào đồ thị vô hướng, các bài toán liên quan và các phương pháp biểu diễn đồ thị phổ biến như danh sách cạnh, ma trận kề và danh sách kề, cùng với các ví dụ và bài tập thực hành.
- 목차
- Undirected graphs
- Graph terminology
- Some graph-processing problems
- Graph representation (1)
- Edge List Structure
- Graph representation (2)
- Graph representation (3)
- Adjacency List Representation
- 페이지 수
- 11 페이지
- 업로더
- lienhejb
댓글 (0)
댓글이 없습니다. 첫 댓글을 남겨보세요!
K5 Bộ đề luyện thi Trạng Nguyên Tiếng Việt (NXB DHQG)
K2 Bộ đề luyện thi Trạng Nguyên Tiếng Việt (NXB DHQG)
K3 Bộ đề luyện thi Trạng Nguyên Tiếng Việt (NXB DHQG)
K4 Bộ đề luyện thi Trạng Nguyên Tiếng Việt (NXB DHQG)
K1 Bộ đề luyện thi Trạng Nguyên Tiếng Việt (NXB DHQG)

댓글 (0)
댓글이 없습니다. 첫 댓글을 남겨보세요!