| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 파이썬
- 배열
- 문자열
- function
- OOP
- raw data
- 반복문
- C++
- const
- 포인터
- 티스토리챌린지
- pass by reference
- baekjoon
- programming
- 오블완
- 알고리즘
- Python
- array
- vscode
- predictive analysis
- Deep Learning
- 백준
- Data Science
- pointer
- Object Oriented Programming
- assignment operator
- Class
- Pre-processing
- 함수
- string
- Today
- Total
목록2025/05 (24)
Channi Studies
A topological sort of a directed, acyclic graph produces a list of graph's vertices such that for every edge from a vertex X to a vertex Y, X comes before Y in the list. There can be more than one valid topoligcal sort. Again, the graph must be acyclic and riected in order to apply topological sorting. The time complexity and space complexity of topological sorting is O(|V| + |E|).
The Bellman-Ford shortest path algorithm, created by Richard Bellman and Lester Ford, Jr,. determines the shortest path from a start vertex to each vertex in a graph. For each vertex, the Bellman-Ford algorithm determines the vertex's distance and predecessor pointer. A vertex's distance is the shortest path distance from the start vertex. A vertex's predecessor pointer points to the previous ve..
Finding the shortest path between vertices in a graph has many applications. Dijkstra's shortest path algorithm, created by Edsger Dijkstra, determines the shortest path from a start vertex to each vertex in a graph. For each vertex, Dijkstra's algorithm determines the vertex's distance and predecessor pointer.A vertex's distance is the shortest path distance from the start vertex. A vertex's pr..
Vertex and Graph ClassThe Graph class holds a vertex adjacency list using a dictionary that maps a Vertex object to a list of aadjacent Vertex objects.The Vertex class contains a label, but can be augmented by graph algorithms to contain additional data if required. A Graph object is initialized with an empty adjacency list. Vertex objects are created and added to the Graph using the add_vertex(..