搜索结果
找到约 1,149 项符合
K-Nearest 的查询结果
matlab例程 幂法是一种计算矩阵主特征值(矩阵按模最大的特征值)及对应特征向量的迭代方法
幂法是一种计算矩阵主特征值(矩阵按模最大的特征值)及对应特征向量的迭代方法,特别适用于大型稀疏矩阵。
但是,一般幂法迭代向量v的各个不等于零的分量将随k 趋向于无穷大而使计算机溢出。因此,我们必须对某通幕法进行规范。即规范化幂法 ...
数学计算 Problem D:合唱队形 Time Limit:1000MS Memory Limit:65536K Total Submit:1237 Accepted:437 Language
Problem D:合唱队形
Time Limit:1000MS Memory Limit:65536K
Total Submit:1237 Accepted:437
Language: not limited
Description
N位同学站成一排,音乐老师要请其中的(N-K)位同学出列,使得剩下的K位同学排成合唱队形。
合唱队形是指这样的一种队形:设K位同学从左到右依次编号为1,2…,K,他们的身高分别为T1 ...
数据结构 Problem F:汽车加油 Time Limit:1000MS Memory Limit:65536K Total Submit:1400 Accepted:404 Language
Problem F:汽车加油
Time Limit:1000MS Memory Limit:65536K
Total Submit:1400 Accepted:404
Language: not limited
Description
一辆汽车加满油后可行驶n公里。旅途中有若干个加油站。设计一个有效算法,指出应在哪些加油站停靠加油,使沿途加油次数最少。
编程任务:
对于给定的n和k(k <= 10000)个加油站位置, ...
单片机开发 Without this, the debugger spontaneously fails! 1 - Install mdk315b 2 - Replace the files: K
Without this, the debugger spontaneously fails!
1 - Install mdk315b
2 - Replace the files:
\Keil\ARM\BIN\ARM.DLL with one from mdk305a\Keil\ARM\BIN\ARM.DLL
\Keil\ARM\BIN31\ARM.DLL with one from mdk305a\Keil\ARM\BIN30\ARM.DLL
\Keil\UV3\UV3.DLL with one from mdk305a\Keil\UV3\UV3.DLL (*)
3 - Use ...
数学计算 1) Write a function reverse(A) which takes a matrix A of arbitrary dimensions as input and returns a
1) Write a function reverse(A) which takes a matrix A of arbitrary dimensions as input and returns a matrix B consisting of the columns of A in reverse order. Thus for example, if
A = 1 2 3 then B = 3 2 1
4 5 6 6 5 4
7 8 9 9 8 7
Write a main program to call reverse(A) for the matrix A = magic(5 ...
单片机开发 rt12864m样例程序
rt12864m样例程序,管脚号 管脚名称 电平 管脚功能描述
1 VSS 0V 电源地
2 VCC +5V 电源正
3 V0 - 对比度(亮度)调整
4 RS(CS) H/L RS="H",表示DB7--DB0为显示数据
4 RS(CS) H/L RS="L",表示DB7--DB0为显示指令数据
5 R/W(SID) H/L R/W="H",E="H",数据被读到DB7--DB0
5 R/W(SID) H/L R/W="L",E="H→L", DB7--DB0的数据 ...
数据结构 创建长度为n的双向循环链表
创建长度为n的双向循环链表,值为整数。
查找第k个元素并输出。
删除所有值为m的元素。
逆置链表并输出。
数据结构 /* * The internal form of a hash table. * * The table is an array indexed by the hash of the k
/*
* The internal form of a hash table.
*
* The table is an array indexed by the hash of the key collisions
* are resolved by hanging a linked list of hash entries off each
* element of the array. Although this is a really simple design it
* isn t too bad given that pools have a low allocation ...