Euler Paths and Circuits

Visit every edge exactly once. Learn when Eulerian paths exist and how to find them.

37 lessons
149 min

Lessons

1. Intro

What you'll learn about Euler paths.

5m

2. What is an Euler Path

Definition and examples.

5m

3. What is an Euler Circuit

Euler path that returns to start.

4m

4. Conditions for Undirected Graphs

When Euler paths exist in undirected graphs.

4m

5. Conditions for Directed Graphs

When Euler paths exist in directed graphs.

4m

6. Quiz: Euler Path Conditions

Knowledge check

2m1 problems

7. Checking Eulerian Conditions

Algorithm to verify conditions.

5m

8. Hierholzer's Algorithm

The standard algorithm for Euler paths.

4m

9. Hierholzer's Pseudocode

Step-by-step implementation.

5m

10. Why Hierholzer Works

Intuition behind the algorithm.

4m

11. Quiz: Hierholzer's Algorithm

Knowledge check

2m1 problems

12. Time and Space Complexity

Efficiency analysis.

4m

13. Problem - Mail Delivery

CSES 1691 - Find Euler circuit.

4m1 problems

14. Mail Delivery - Core idea

Check degrees and connectivity.

4m

15. Mail Delivery - Algorithm

Apply Hierholzer from vertex 1.

4m

16. Mail Delivery - Implementation

Code walkthrough.

5m1 problems

17. Mail Delivery - Lessons

What you learned from this problem.

4m

18. Quiz: Directed Euler Path Conditions

Knowledge check

2m1 problems

19. Problem - Teleporters Path

CSES 1693 - Directed Euler path.

4m1 problems

20. Teleporters Path - Core idea

Check in/out degree conditions.

4m

21. Teleporters Path - Implementation

Code walkthrough.

5m1 problems

22. Teleporters Path - Lessons

Directed vs undirected differences.

5m

23. Problem - Reconstruct Itinerary

LeetCode 332 - Lexicographically smallest path.

4m1 problems

24. Reconstruct Itinerary - Core idea

Sort and use Hierholzer.

4m

25. Reconstruct Itinerary - Implementation

Code walkthrough.

5m1 problems

26. Quiz: Lexicographic Euler Path

Knowledge check

2m1 problems

27. De Bruijn Sequences

Visiting all n-bit strings.

4m

28. Problem - De Bruijn Sequence

CSES 1692 - Construct the sequence.

3m1 problems

29. De Bruijn Sequence - Core idea

Build De Bruijn graph and find Euler circuit.

4m

30. De Bruijn Sequence - Implementation

Code walkthrough.

5m1 problems

31. Quiz: De Bruijn Sequences

Knowledge check

2m1 problems

32. Problem - Cracking the Safe

LeetCode 753 - De Bruijn application.

4m1 problems

33. Cracking the Safe - Core idea

Generalized De Bruijn graph.

4m

34. Chinese Postman Problem

When graph isn't Eulerian.

5m

35. Applications

Where Euler paths appear.

5m

36. Common Mistakes

Pitfalls to avoid.

5m

37. Section Recap

Summary of Euler paths and circuits.

4m

Ready to start learning?

Access all 37 lessons with interactive content and progress tracking.