2015年10月6日
摘要: Ifpis the perimeter of a right angle triangle with integral length sides, {a,b,c}, there are exactly three solutions forp= 120.{20,48,52}, {24,45,51},... 阅读全文
posted @ 2015-10-06 09:50 gcczhongduan 阅读(234) 评论(0) 推荐(0)
摘要: 一、折半插入排序(二分插入排序)将直接插入排序中寻找A[i]的插入位置的方法改为採用折半比較,就可以得到折半插入排序算法。在处理A[i]时,A[0]……A[i-1]已经按关键码值排好序。所谓折半比較,就是在插入A[i]时,取A[i-1/2]的关键码值与A[i]的关键码值进行比較,假设A[i]的关键码... 阅读全文
posted @ 2015-10-06 08:50 gcczhongduan 阅读(647) 评论(0) 推荐(0)