虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

设计<b>分析</b>

  • We have a group of N items (represented by integers from 1 to N), and we know that there is some tot

    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

  • 随机生成500个数字并进行快速排序

    随机生成500个数字并进行快速排序,能够显示排序所用的时间。是算法设计与分析的一道课后题。

    标签: 500 随机生成 数字 快速排序

    上传时间: 2016-01-31

    上传用户:qiaoyue

  • 随机生成500个数字并进行快速排序

    随机生成500个数字并进行快速排序,能够显示排序所用的时间。是算法设计与分析的一道课后题。

    标签: 500 随机生成 数字 快速排序

    上传时间: 2016-01-31

    上传用户:lvzhr

  • The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical)

    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

  • 删除问题

    删除问题,计算机算法设计与分析(王晓东)的算法实现题4-12

    标签: 删除

    上传时间: 2013-12-22

    上传用户:youth25

  • 本点阵电子显示屏系统以STC89C52单片机作为控制核心

    本点阵电子显示屏系统以STC89C52单片机作为控制核心,其外围电路包括存储器扩展模块、LED显示电路模块、驱动电路模块、PC通信电路模块。其中,控制芯片的行驱动用2个74LS138构成4-16译码器,采用1/16扫描方式。列驱动采用74HC595驱动,一个汉字用2个74HC595控制。系统同时扩展了SRAM芯片6116和Flash ROM 29C020芯片, 系统控制过程中,可以满足大容量字模的运算,采用Flash ROM进行汉字掉电保护,通过单片机修改显示内容。并详细介绍了在硬件和软件上的实现过程。 本设计中第二章讲述系统方案的设计与分析;第三章讲述LED点阵显示系统的核心硬件设计,主要包括控制芯片、显示电路和驱动电路的设计等;第四章详细介绍了系统核心软件——静态显示程序的设计过程,之后以左移显示程序为例介绍动态显示程序的设计以及主程序的设计;第五章对PC通信协议及软硬件设计予以详细介绍。 如需详细的硬件电路及说明,可以与作者联系!

    标签: STC 89C C52 89

    上传时间: 2014-06-24

    上传用户:lyy1234

  • 1) 写出符合算符优先法的文法及属性文法。 2) 完成题目要求的中间代码三地址表示的描述。 3) 写出算符优先法的思想

    1) 写出符合算符优先法的文法及属性文法。 2) 完成题目要求的中间代码三地址表示的描述。 3) 写出算符优先法的思想,完成语法分析和语义分析程序设计。 4) 编制好分析程序后,设计若干用例,上机测试并通过所设计的分析程序。

    标签: 代码 地址

    上传时间: 2013-12-12

    上传用户:bcjtao

  • 船舶运货算法问题

    船舶运货算法问题,依据算法程序设计与分析中的经典算法,进行动态规划,找出最佳路径

    标签: 算法

    上传时间: 2016-04-02

    上传用户:qweqweqwe

  • 算法好书

    算法好书, 《计算机算法设计与分析》的配套教材

    标签: 算法

    上传时间: 2016-05-12

    上传用户:xjz632

  • 此为最优二叉搜索树程序源码

    此为最优二叉搜索树程序源码,属软件工程算法设计与分析类

    标签: 搜索 程序源码

    上传时间: 2016-06-08

    上传用户:sammi