摘要:
input:a finite set of two dimentional points P (the number of points n is more than 2)output: the convex hull of PPesudo:1, sort P in Lexgrahical orde... 阅读全文
摘要:
Mark Allen Weiss的data structures and algorithm analysis in c求一个整数序列的最大的连续子列和: 1 #include 2 3 static int Max3( int A, int B, int C ) 4 { 5 return A > B ? ( A > C ? A : C ) : ( B > C ? B : C ); 6 } 7 8 static int maxsubsum(const int a[], int left, int right) 9 {10 int maxleftsum, maxrig... 阅读全文