Graph Theory37 sections · 1633 units
Open in CourseQuiz: Lexicographic Euler Path
Knowledge check
Check Your Understanding
You need the lexicographically smallest Euler path. How do you modify Hierholzer's algorithm to achieve this?
- A.Sort all edges globally before starting the algorithm
- B.Use BFS instead of DFS to prioritize shorter paths
- C.Run the algorithm multiple times and pick the smallest result
- D.At each node, always pick the lexicographically smallest unused neighbor