---
id: sweep-line
title: "Sweep Line"
author: Benjamin Qi
description: Introduction to line sweep.
prerequisites: 
 - "Platinum - Geometry Primitives"
frequency: 1
---

import { Problem } from "../models";

export const metadata = {
  problems: {
    closest: [
      new Problem("Kattis", "Closest Pair", "closestpair2", "Normal", false, [], ""),
    ],
    seg: [
      new Problem("Silver", "Cow Steepchase II", "943", "Normal", false, [], ":|"),
    ],
    manSam: [
      new Problem("Kattis", "Grid MST", "gridmst", "Normal", false, [], ""),
    ],
    man: [
      new Problem("CSA", "The Sprawl", "the-sprawl", "Hard", false, [], ""),
    ]
  }
};

(what's line sweep?)

<resources>
	<resource source="CPH" title="30.1, 30.2 - Sweep Line Algorithms"></resource>
	<resource source="TC" title="Line Sweep Algorithms" url="line-sweep-algorithms"></resource>
</resources>

## Closest Pair

<problems-list problems={metadata.problems.closest} />

(explanation? KACTL?)

## Line Segment Intersection

<problems-list problems={metadata.problems.seg} />

(explanation?)

## Manhattan MST

<problems-list problems={metadata.problems.manSam} />

(KACTL code)

explanation? topcoder prob has

<problems-list problems={metadata.problems.man} />

TC 760 ComponentsForever