1. What Are We Trying to Compute?
Start with original input identities, points, and complete overlap intervals, then establish pairwise testing as a baseline and count the pairs it checks.
2 (Part 1). The Sweep and Three Types of Events
Follow four segments to understand the active order, the pending list, and how to check new neighbors when segments start, end, or cross.
2 (Part 2). Why No Intersection Is Missed
Use height differences and position ratios to prove, step by step, that order stays fixed without events, crossing segments become neighbors, and checking new neighbors misses no intersection.
3. Keeping geometric decisions exact
Build a complete intersection procedure from any two inputs' endpoints, then connect exact equality, order, and sign comparisons to the sweep.
4. Handle everything at the same point together
Progress from shared endpoints to many segments meeting and point inputs, collecting all participants, reporting every input pair, then updating the active order together.
5. How Overlapping Segments Participate in the Sweep
Use dynamic collinear groups to handle joining members, closed endpoints, intersections with other groups, and coverage changes, and explain why each complete overlap interval is reported once.
6. Equal horizontal coordinates do not mean a simultaneous swap
Follow four segments to understand point-by-point processing of same-column events, intermediate states, and the strict-future condition on complete positions.
7. Handling vertical segments with a shear
Shear all inputs together, reuse the existing sweep rules, and restore points and complete overlap intervals to the original coordinates.
8. Putting all the rules into one sweep
Follow seven mixed inputs through thirteen events, connecting coverage extension, same-point reporting, closed endpoints, gaps, and inverse shear in one state and queue.
9. Why the whole algorithm remains correct
Connect initialization, preservation, and completion to explain how the full sweep reaches every necessary position and retains one complete intersection per intersecting input pair.
10. Why the total work stays bounded
Count events and cumulative group participation, then account for membership, sorting, scheduling, output, and cleanup while separating operation counts, exact-number costs, and teaching records.
Writing a Line Equation from Two Endpoints
Starting with coordinates and linear functions, understand line equations step by step and learn how to write one from two endpoints.
Choosing and proving a shear coefficient
5 items