Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:我o(n^2*log(n))就过了,对斜率排序,但有没有更快方法

Posted by thatwerelife at 2009-04-23 05:48:37 on Problem 1118
In Reply To:Re:我o(n^2*log(n))就过了,对斜率排序,但有没有更快方法 Posted by:direfire at 2006-10-13 23:14:51
> 任意两点的斜率? 那排完怎么做?
排序的时候在斜率相同的时候可以按照点的顺序排序。。这样使得相邻的点对都是可以连接的。。然后加上hash就行了~

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator