Банальная задача: Дано n точек на плоскости. Необходимо найти наибольшее количество точек, лежащих на одной прямой.
Вопрос: Решаема ли эта задача быстрее, чем за , или же О(n2) — с хеш-мэпом.
# | User | Rating |
---|---|---|
1 | tourist | 3856 |
2 | jiangly | 3747 |
3 | orzdevinwang | 3706 |
4 | jqdai0815 | 3682 |
5 | ksun48 | 3591 |
6 | gamegame | 3477 |
7 | Benq | 3468 |
8 | Radewoosh | 3462 |
9 | ecnerwala | 3451 |
10 | heuristica | 3431 |
# | User | Contrib. |
---|---|---|
1 | cry | 168 |
2 | -is-this-fft- | 162 |
3 | Dominater069 | 160 |
4 | Um_nik | 159 |
5 | atcoder_official | 156 |
6 | adamant | 153 |
6 | djm03178 | 153 |
8 | luogu_official | 149 |
9 | awoo | 147 |
10 | TheScrasse | 146 |
Банальная задача: Дано n точек на плоскости. Необходимо найти наибольшее количество точек, лежащих на одной прямой.
Вопрос: Решаема ли эта задача быстрее, чем за , или же О(n2) — с хеш-мэпом.
Name |
---|
There is problem called 3SUM, for which there are no known subquadratic (o(n2)) algorithms in common case. Many geometric problems are proven to be 3SUM-Hard, including "Given n points, check if there are 3 collinear points". Some more information in this paper.