汇编常用的小程序,包括2转10,2转ASCII等等,里面注释比较详细,请大家自己看,欢迎提出意见。
上传时间: 2016-01-02
上传用户:caiiicc
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
标签: represented integers group items
上传时间: 2016-01-17
上传用户:jeffery
三星照相模块驱动。linux/char下,linux 2.6与linux 2.4下都使用
上传时间: 2016-02-04
上传用户:youmo81
The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical) of any level of nesting to XML format and vice versa. For example, >> project.name = MyProject >> project.id = 1234 >> project.param.a = 3.1415 >> project.param.b = 42 becomes with str=xml_format(project, off ) "<project> <name>MyProject</name> <id>1234</id> <param> <a>3.1415</a> <b>42</b> </param> </project>" On the other hand, if an XML string XStr is given, this can be converted easily to a MATLAB data type or structure V with the command V=xml_parse(XStr).
标签: converts Toolbox complex logical
上传时间: 2016-02-12
上传用户:a673761058
增量型PID算法汇编程序,增量式PID算法的输出量为 UnΔ = Kp[(en-en-1)+(T/Ti)en+(Td/T)(en-2*en-1+en-2)] 式中,en、en-1、en-2分别为第n次、n-1次和n-2次的偏差值,Kp、Ti、Td分别为比例系数、积分系数和微分系数,T为采样周期。
上传时间: 2016-03-11
上传用户:zaizaibang
Agent动画演示 Agent动画人物使用演示 安装:Agent是一种ActiveX控件,在Delphi IDE中选择菜单Component, Import ActiveX Control,选择Microsoft Agent Control 2.0 (Version 2.0),点Install安装便可。 其它:请直接查看本程序源码及相关设置,祝你快乐
上传时间: 2016-03-29
上传用户:缥缈
功能:在默认有唯一解的情况下,求出一次方程组的解 使用说明:1.在方程计算器所在目录下新建一个文本文档并另存为“matrix”(注意文件名的大小写和拼写) 格式: 第一行是未知数个数n 后面每行n+1个用空格隔开的数,表示一个方程 (e.g) 2x+3y-z=6 就输入 2 3 -1 6 2.保存之后双击运行“方程计算器” 3.程序会在目录下生成名为“answer”的文本文档,打开就是答案了。
标签:
上传时间: 2016-05-02
上传用户:xg262122
简单一元函数优化实例,利用遗传算法计算函数f(x)=x*sin(10pi*x)+2.0,-1<=x<=2的最大值
标签: 函数优化
上传时间: 2016-05-19
上传用户:love_stanford
利用取表的方法,使端口P1做单一灯的变化:左移2次,右移2次,闪烁2次(延时的时间0.2秒)。
标签:
上传时间: 2014-10-29
上传用户:hoperingcong
魔王语言解释程序:有一个魔王总是使用自己的一种非常精练而抽象的语言讲话,没有人能听懂,但他的语言是可以逐步解释成人能听懂的语言,因为他的语言是由以下两种形式的规则由人的语言逐步抽象上去的: (1)α->β1β2……βm (2)(θδ1δ2……δn)—>θδnθδn-1……θδ1θ 在这两种形式中,从左到右均表示解释。试写一个魔王语言的解释系统,把他的话解释成人能听得懂的话;
上传时间: 2013-12-10
上传用户:daoxiang126