-
用动态规划法求解0-1背包问题
应用背景
1、问题描述: 3
2、最优性原理: 3
3、递推关系: 3
4、 改进前的算法 4
4.1 源代码 4
4.2 算法的时间复杂度 6
5、算法的改进: 6
5.1源代码 8
5.2 算法的时间复杂度 11
6、运行结果 11
7、 结论 12
关键技术
1、问题描述:
给定n种物品和一背包。物品i(1
- 2022-04-16 21:36:35下载
- 积分:1
-
c语言实例程序代码
本程序均来自《c语言编程实例》,所上传的代码已得到调试成功,若有需要请留言。所有实例均为C语言初学者所经常遇到。
- 2022-02-02 16:34:36下载
- 积分:1
-
used method for multiple preoperational Ertaila equation here as a variable elem...
用LAPLACE方法求解多维沃尔泰拉方程,此处为一个变元的方程,由于该方程同时含有微分和积分,一般求解有一定的困难。此处为MATHEMAICAL程序-used method for multiple preoperational Ertaila equation here as a variable element of the equation, As the same time contain differential equations and integral, the general solution is definitely difficult. Here for MATHEMAICAL procedures
- 2022-07-10 07:48:14下载
- 积分:1
-
BLDC源码
使用AVR的无刷马达控制程序,无感BLDC算法。实现了无刷直流电机的速度环PID控制,效果可以。供大家参考交流使用
- 2022-03-03 11:31:46下载
- 积分:1
-
labview二维数组排序
很多工程应用中labview一位数组排序非常简单,但是二维数组排序却很费脑筋,作者以前调项目写的小饭粒拿来分享分享
- 2022-05-28 23:31:42下载
- 积分:1
-
C语言常用算法,包括超过100种算法程序…
C语言常用算法集,包含一百多个算法的程序.-C language commonly used algorithms, including more than 100 algorithms procedures.
- 2022-02-21 09:28:11下载
- 积分: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
-
迷你四周飞行器
迷你迷你四周飞行器四周飞行器迷迷你四周飞行器你四周飞行器迷你四周飞行器迷你四周飞
行器迷你四周飞行器迷你四周飞行器迷你四周飞行器迷你四周飞行器迷你四周飞行器迷你四周飞行器迷
你四周飞行器迷你四周飞行器 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-09-25 02:30:03下载
- 积分:1
-
一个好用的迷宫子程序
一个好用的迷宫子程序-a subroutine uses the maze! !
- 2022-03-13 04:09:42下载
- 积分:1
-
FFT algorithm can achieve a classic inverse rank algorithm
本程序可以用来实现FFT的经典算法,虽然现在已经有好多人开发了很多实现逆序的方法,但这种算法易懂好理解,让大家共享-FFT algorithm can achieve a classic inverse rank algorithm
- 2023-03-27 13:20:03下载
- 积分:1