-
Voronoi 图
执行的 voronoi 图在 javascript 中,它用来分发农技团在某一特定的区域 ; 在地图上画出 voronoi 图单元格中的每个点代表一台机器。
- 2022-03-15 03:13:55下载
- 积分:1
-
NSGA-Ⅱ多目标优化算法
nsga2算法优化ZDT2测试函数。收敛到Pareto最优前沿,对于从事这方面算法工作的初学者们有很大的帮助。可以借鉴学习下
- 2022-03-05 21:57:29下载
- 积分:1
-
哈夫曼编码
在教学《信息论与编码》操刀编写的C代码,没用使用数据结构中关于树的方法,一般同学都可以看懂的,希望对你们有点帮助。
- 2023-06-15 21:50:03下载
- 积分:1
-
动态规划,poj3688
资源描述这是一道比较典型的动态规划算法题目,在游戏中运用了推理与动态规划算法,有助于帮助我们更加深刻地理解动态规划算法
- 2022-04-22 00:42:58下载
- 积分:1
-
二进制搜索 java 代码
导入 java.util.* ;类 BinarySearch{int [] ;无效的 get){扫描仪 sc = 新的 Scanner(System.in) ;System.out.println ("输入 no。元素") ;= 新 int[sc.nextInt()] ;System.out.println ("输入元素") ;为 (int 我 = 0 ; 我 < a.length;i++)a[i]=sc.nextInt() ;}int binarySearch (int n){int 低 = 0 ;int high=a.length-1 ;虽然 (低 < = 高){int 中期 =(low+high)/2 ;if(a[mid]==n)返回 (中期) ;if(n = 1 & & a [j-1] > t; j — —)[j] = [j-1] ;[j] = t ;}}空 display(){System.out.println ("给定的列表是") ;为 (int 我 = 0 ; 我 < a.length;i++)System.out.print ([i] +"") ;System.out.println() ;
- 2023-01-30 23:10:03下载
- 积分:1
-
a number of procedures, pyramid schemes and from matches, such as the N
有多个程序, 传销, 取火柴, 二的N次方等-a number of procedures, pyramid schemes and from matches, such as the N-th
- 2022-05-08 21:05:46下载
- 积分:1
-
c++深度优先搜索的回溯法实现多集合矩阵互斥问题
给定1个1000行×20列的0-1矩阵,对于该矩阵的任意1列,其中值为1的元素的数量不超过10%。设有两个非空集合A和B,每个集合由矩阵的若干列组成。集合A和B互斥是指对于矩阵的任意一行,同时满足下列2个条件:1)若A中有一个或多个元素在这一行上的值是1,则B中的元素在这一行全部是0;2)若B中有一个或多个元素在这一行上的值是1,则A中的元素在这一行全部是0。请你设计一个算法,找出集合A、B和C,满足:1)A、B、C两两互斥,且2)A、B和C包含的列的总数最大。
- 2022-07-25 02:20:37下载
- 积分:1
-
Runge_Kutta_Fehlber法计算
Runge_Kutta_Fehlber法计算-Runge_Kutta_Fehlber method
- 2022-02-16 04:21:47下载
- 积分:1
-
第一次样条插值函数的函数SPL1文件,spl10
第一种三次样条插值函数
SPL1为函数文件,
SPL10为主文件。
相关参数说明见注释-first cubic spline interpolation function for function SPL1 documents, SPL10-based documents. Note See related parameters Notes
- 2022-12-17 11:05:03下载
- 积分: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