דלג לתוכן

Graphs and traversal

הוצג
חומר עזר
שיעור וידאו לנושא זה פתח את עמוד הוידאו
7:45

מבני נתונים ואלגוריתמים

This course is about choosing a container by what it costs. The first unit is the yardstick: how cost grows with the size of the input. The next four are the…

קריינות באנגלית · כתוביות באנגלית ובסינית 中文 שאפשר להחליף ביניהן

בשיעור הזה

שיעור וידאו
מילון מונחים
English משמעות
adjacency list/əˈdʒeɪsənsi lɪst/רשימת סמיכות
adjacency matrix/əˈdʒeɪsənsi ˈmeɪtrɪks/מטריצת סמיכות
sparse/spɑːs/Describing a graph with few edges compared with the number of vertices, so an adjacency list suits it.
Breadth-first search/bredθ fɜːst sɜːtʃ/graph search that visits all vertices one edge away, then two edges away, and so on, using a queue
Depth-first search/depθ fɜːst sɜːtʃ/graph search that follows one path as deep as it can before backing up, using a stack or recursion
Dijkstra's algorithm/ˈdeɪkstrəz ˈælɡərɪθəm/finds shortest paths from one source in a graph with non-negative edge weights by always settling the nearest unsettled vertex
topological sort/ˌtɒpəˈlɒdʒɪkl sɔːt/an order of a directed acyclic graph's vertices in which every edge points forwards
Kahn's algorithm/kɑːnz ˈælɡərɪθəm/A topological sort that repeatedly outputs a node with no incoming edges and removes its outgoing edges.
negative cycle
weighted shortest paths
הבא →

חומר עזר

היכנס או צור חשבון

IGCSE, A-Level & AP