Deterministic Running-Time Algorithm