登录
首页 » C » Quick Sort

Quick Sort

于 2023-08-13 发布 文件大小:1.42 MB
0 103
下载积分: 2 下载次数: 1

代码说明:

```py RANDOMIZED_PARTITION(A, p ,r) i = RANDOM(p,r)             #1 exchange A[r] & A[i]        #2 return PARTITION(A, p , r)  #3 ``` ```py PARTITION(A, p, r)         x = A[r]                  #1 i = p - 1                 #2 for j= (p, r-1)           #3   if A[j]

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 12232st7920
    液晶模块LCM12232并口带中文字库控制芯片是ST7920(LCM12232 parallel LCD module control chip with a Chinese character is ST7920)
    2010-12-06 11:23:17下载
    积分:1
  • psat-new-version
    潮流计算 潮流计算潮流计算潮流计算潮流计算潮流计算(FLOW )
    2011-04-19 22:59:22下载
    积分:1
  • ForK1
    我们的目的是将一个分数拆分成若干个分子是1分母是正整数的分数之和的形式。例如2/3可以拆分成1/2+1/6的形式。这里不考虑顺序,比如1/6+1/2和1/2+1/6相同。 输入p, q, a, n, 其中p/q为分数,对这个分数进行拆分,要求拆分的分数个数不能多于n个,所有分母的乘积不能大于a。求有多少种拆分方法? 输入:最多200组数据。在每行中都有四个数分别表示p, q, a, n,之间以空格隔开,并且满足p,q<=800,a<=12000,n<=7,最后以四个0做为输入的结束。 输入示例: 2 3 120 3 2 3 300 3 0 0 0 0 输出示例: 4 7 (Our aim is to split a fraction into a number of elements is a denominator is a positive integer fraction of the sum of form. For example, 2/3 can be split into 1/2+1/6 form. Not considered here, the order, such as 1/6+1/2 and 1/2+1/6 of the same. Input p, q, a, n, where p/q as a fraction of this split scores require no more than the number of split points n-all the product of the denominator can not be larger than a. How many kinds of demand split method? Input: Up to 200 sets of data. In each line has four numbers indicate the p, q, a, n, separated by a space between, and meet the p, q < = 800, a < = 12000, n < = 7, the end, four 0 as the input end. Input Example: 2,312,032,330,030,000 sample output: 47)
    2009-11-12 09:54:17下载
    积分:1
  • 员工管理代码
    员工管理,一个小的实验代码完成了员工的增删改查以及用户下载您上传的代码所支付的积分,将奖励给您。代码质量越高,下载次数越多,您获得的积分奖励也越多。
    2023-01-30 20:50:04下载
    积分:1
  • cPPprimerplus
    c++ peimer plus,一本比较好的C++入门书籍,备受好评,新手必读(the c++ plus primer, relatively good C++, entry books, the novice must read)
    2012-10-29 16:32:23下载
    积分:1
  • C231_C04
    Ordinary and Partial Differential Equation Routines in C, C++, Fortran, Java, Maple, and MATLAB
    2007-07-31 12:40:41下载
    积分:1
  • HMSv2.5
    软件专业,本科实习时候做的一个项目,酒店管理系统,C#开发,简单易理解.使用SQL server2005,和VS2005开发(MIS)
    2009-05-07 10:53:12下载
    积分:1
  • 3GParamTest
    3G参数测试程序,主要测试3G的主要参数(3G parametric test procedures commonly used parameters, the main test of 3G)
    2014-03-27 20:39:56下载
    积分:1
  • shiyan_2
    基于OpenGL的一个简单的画圆的程序,不过里面加了一些循环,画出来特别多的圆,效果十分炫酷。(OpenGL is based on a simple circle of program, but which added some cycle, particularly drawn circle, the effect is very cool.)
    2015-11-03 20:41:27下载
    积分:1
  • C-coordinate-conversion-master
    四参数转换计算的源程序c#代码 七参数转换计算的源程序c#代码(Conversion calculation of four and seven parameters)
    2020-06-16 01:00:01下载
    积分:1
  • 696516资源总数
  • 106741会员总数
  • 17今日下载