-
给定n 个物品, 物品i重为wi 并且价值为 vi ,背包所能承载的最大容量为 W.
0...
给定n 个物品, 物品i重为wi 并且价值为 vi ,背包所能承载的最大容量为 W.
0-1 背包问题即是选择含有着最大总价值的物品的子集且它的容量 ≤W .
用动态规划实现-given n goods, items i weight of wi and value of vi, the backpack can carry a maximum capacity of W. 0-1 knapsack problem that is a choice with a maximum total value of the goods but a subset of the W capacity. Dynamic Programming
- 2022-03-09 15:39:44下载
- 积分:1
-
Lifitime tracer.
*****************************************************
Example...
Lifitime tracer.
*** *** *** *** *** *** *** *** *****
Example:
#include
void foo()
{
TRACE_LIFETIME
usleep(100000)
}
void main()
{
foo()
}
*** *** *** *** *** *** *** *** ***
See lifetimes.log:
FUNC: void foo(), AV TTL: 00000xxxxx us (main.cpp, 000xxx)
TTL: 00000xxxxx us (THREAD ID: 0000xxxx)
******************************************************
Explanation of newly created lifetimes.log:
FUNC - function, whose lifetime we measured
AV TTL - mean (average) spent time of all functions calls
TTL - time spent on each function call
THREAD ID - thread that called a function.
*****************************************************
Description:
- was written for QT project
- multithreaded support (Loki::Singleton has multithreaded sync support)
****************************************************
Dependencies:
- QT
- Loki (A. Alexandrescu)
-Lifitime tracer.
****************************************************
- 2022-02-13 17:25:56下载
- 积分:1
-
Procedures are given deformation QR method with real symmetric triangular matrix...
程序中给出了用变形QR方法计算实对称三角阵的全部特征值与相应的向量-Procedures are given deformation QR method with real symmetric triangular matrix of all eigenvalues with the corresponding vector
- 2022-12-29 05:15:03下载
- 积分:1
-
Householder变换是基本的数学变换之一。其作用是将被变换向量映射成相同模的其它向量。其应用之一是QR分解。...
Householder变换是基本的数学变换之一。其作用是将被变换向量映射成相同模的其它向量。其应用之一是QR分解。-Householder transform is one of the basic mathematical transform. Its role is to transform vectors will be mapped into the same mold of the other vector. One of its applications QR decomposition.
- 2023-07-27 13:40:03下载
- 积分:1
-
小波
基于C语言的小波处理,包含有滤波、复原、融合等C语言源代码。-Wavelet-based C language processing, includes filtering, recovery, integration, such as C language source code.
- 2022-08-02 13:28:24下载
- 积分:1
-
在第二个和倒退转换日期/时间
随信附上 代码 对两个 函数。
其中之一 转换 结构 日期 / 时间 (窗体的 DDMMYYHHmmSS)数目的秒。 是采取 作为参照 日期 / 时间 2000/1/1 00:00.
第二个函数 使 将它们转换 回 -秒 入的结构 日期 / 时间 (窗体的 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报 打分 发表评论 暂无评论
- 2022-03-01 02:16:39下载
- 积分:1
-
完整的仿真和串口编程的可控硅项目
完整的模拟和三端双向可控硅项目MIKROC编程先模拟使用的OrCAD然后用编程的C代码使用变形第三模拟
- 2022-04-11 05:33:01下载
- 积分:1
-
计算Pi的程序, 是老程序了, 不过很牛.
值得收藏!
计算Pi的程序, 是老程序了, 不过很牛.
值得收藏!-Pi calculation procedures, the old procedures, but very cattle. Copies!
- 2023-06-20 17:25:03下载
- 积分:1
-
数据结构
来自于西南交通大学 电气工程学院的专业,电子信息工程专业的数据结构课程的实验代码。DS_1即为实验作业一,以此类推。内容从前到后含有顺序表的顺序存储,链式存储,还有栈和队列的各种基本操作。
- 2022-03-24 21:19:36下载
- 积分:1
-
ras&md5
rsa&md5 公钥和私钥就是从两个文件PublicKey.xml、PrivateKey.xml中读取出来,相当于是现实中的指定公钥和私钥;再验证时我为了方便直接验证的A计算出的HASH码,现实中应该是由B重新计算出文件M的HASH码-ras&md5
- 2023-02-13 10:50:03下载
- 积分:1