有N件物品和一个容量为V的背包。第i件物品的费用是c,价值是w。求解将哪些物品装入背包可使这些物品的费用总和不超过背包容量,且价值总和最大。
标签: 容量
上传时间: 2014-01-19
上传用户:小儒尼尼奥
XT_KeyBoard interface with 8951 using Assembler and Document for Key board delivered data details, Which will help to dvelope for any processor and controller interface.
标签: XT_KeyBoard Assembler interface delivered
上传时间: 2014-01-09
上传用户:凤临西北
赋权有向图中心问题 问题描述: 设G=(V,E)是一个赋权有向图,v是G的一个顶点, v的偏心距定义为: Max {w∈ V,从w到v的最短路径长度} G中偏心距最小的顶点称为G的中心。试利用Floyd 算法设计一个求赋权有向图中心的算法。
标签:
上传时间: 2017-08-17
上传用户:klin3139
/* * tesswind.c * This program demonstrates the winding rule polygon * tessellation property. Four tessellated objects are drawn, * each with very different contours. When the w key is pressed, * the objects are drawn with a different winding rule. */
标签: demonstrates tessellation tesswind program
上传时间: 2013-12-10
上传用户:星仔
This file contains all possible questions that the exam 2 could contain (SSD2 consideration), as well as exercises that may require the practical examination, I hope they help, luck!
标签: consideration questions contains possible
上传时间: 2013-12-25
上传用户:himbly
for entropy H = entropy(S) this command will evaluate the entropy of S, S should be row matrix H = entropy([X Y Z]) this command will find the joint entropy for the 3 variables H = entropy([X,Y],[Z,W]) this will find H(X,Y/Z,W).. you can use it for any combination of joint entropies Please validate this function before using it
标签: entropy evaluate command matrix
上传时间: 2017-09-10
上传用户:caozhizhi
This is a comparison foundation construction of data example code, the function is quite complete, was myself debugs the successful procedure, might again on Visual c++ the direct movement
标签: construction comparison foundation complete
上传时间: 2013-12-30
上传用户:cxl274287265
1. 心理学家( )于1879年在德国的莱比锡大学建立了世界上第一个心理实验室,从而使心理学成 为了一门独立的科学。 A 艾宾浩斯(Ebbinghaus)B 缪勒(G.E.Muller)C 费希纳(Fechner) D 冯特(W.Wundt) 2. 研究人的心理活动的一般规律的科学是指( )。 A 工程心理学 B 普通心理学 C 工程心理学 D 社会心理学
标签: 职业教育心理学
上传时间: 2015-03-10
上传用户:FUCSAD
DATAS SEGMENT w dw 0 keybuf db 255 db 0 db 255 dup(0) ;定义键盘输入需要的缓冲区 DATAS ENDS STACKS SEGMENT db 200 dup(?) STACKS ENDS CODES SEGMENT ASSUME CS:CODES,DS:DATAS,SS:STACKS START: MOV AX,DATAS MOV DS,AX mov dx,offset keybuf ;用0a号功能,输入一个字符串 mov ah,0ah ;用回车结束 int 21h mov dl,0ah ;再进行换行,以便在下一行显示转换后的字符串 mov ah,2 int 21h ; push ax ; push dx ; mov dl,cl ; mov ah,02 ; int 21h ; pop dx ; pop ax mov bx,offset keybuf+1 ;取出字符串的字符个数,作为循环的次数 mov cl,[bx] mov ch,0 mov ax,0 again: inc bx mov ax,[w] push bx mov bx,16 mul bx pop bx ;是小写字母,则转换为大写字母 mov [w],ax mov dl,[bx] ;取出一个字符, cmp dl,'9' jbe lab1 cmp dl,'F' jbe lab2 sub dl,32 lab2: sub dl ,07h lab1: sub dl,30h add [w],dx loop again mov ax,[w] mov bx,-1 push bx mov bx,10 lab3 :mov dx,0 div bx push dx cmp ax,0 jnz lab3 lab5: pop dx cmp dx,-1 jz lab4 add dl,30h mov ah,02 int 21h jmp lab5 ;循环,处理完整个字符串 lab4: MOV AH,4CH INT 21H CODES ENDS END START
标签: 汇编
上传时间: 2015-04-02
上传用户:wcc0310
本帖最后由 黄瓜 于 2014-3-2 21:39 编辑 在2012年,帖子“圆点博士微型四轴飞行器开工拉...有钱出钱,没钱出力” http://www.amobbs.com/thread-5504090-1-1.html得到坛友的大力支持。经过2013年的全年发展,资料已经相当成熟。楼主把全部资料整理到了一起,方便大家下载。 首先给大家介绍下这些资料的内容:(全部是源代码,豪无保留): 1,小四轴飞行器源码:包括陀螺仪芯片驱动代码,数字滤波,四元数姿态解算和电机控制代码,此外,还包括蓝牙无线传输代码,NRF24L01+无线传输代码,小四轴无线更新固件代码。 2,小四轴手持遥控器源码。包括USB转COM口代码,蓝牙编程代码,摇杆控制代码,和液晶屏显示代码。通过该代码,用户可以学习USB编程,蓝牙编程,摇杠编程,液晶屏显示编程能知识。 3,基于windows/Linux下的上位机代码,能过获取小四轴姿态,并对小四轴进行飞行控制。该代码使用垮平台算法QT编写。 4,基于Android的手机遥控器代码,可以实现对小四轴的飞行控制 5,对国外著名开源crazyflies开源算法的姿态部分的移植(已修改成大家熟知的MDK环境),带FreeRTOS操作系统。
标签: 姿态解算
上传时间: 2015-04-14
上传用户:wusheng4495