搜索资源列表
nqueens9901
- 著名的n皇后问题。实现结果为 请输入这是一个几皇后问题:4 4皇后问题有解为: 2 4 1 3 4皇后问题有解为: 3 1 4 2 Press any key to continue -n Queen's famous question. To achieve results Please enter several This is a Queen's : 4 Queen of the solutions to these problems : 2 4
jamvm-1.4.2
- jamvm-1.4.2.是嵌入式 中的java虚拟机的实现代码,支持power pc x86和arm -jamvm - 1.4.2. Embedded is the java virtual machine codes, support power pc x86 and arm
pl0(2)
- 对PL0原编译器进行了以下的扩充:1.增加以下保留字else(elsesym), for(forsym),to(tosym),downto(downtosym),return(returnsym),[(lmparen),](rmparen) 2.增加了以下的运算符:+=(eplus),-=(eminus),++(dplus),--(dminus) 取址运算符&(radsym),指向运算符@(padsym) 3.修改单词:修改不等号#为<> 4.扩充语句:(1)增加了e
上大_net-0-1背包问题(回朔法)
- 0 / 1背包问题是一个N P-复杂问题,为了解决该问题,,将用回溯算法解决该问题。既然想选择一个对象的子集,将它们装入背包,以便获得的收益最大,则解空间应组织成子集树的形状(如图1 6 - 2所示)。该回溯算法与4 . 2节的装载问题很类似。首先形成一个递归算法,去找到可获得的最大收益。然后,对该算法加以改进,形成代码。改进后的代码可找到获得最大收益时包含在背包中的对象的集合。-0 / 1 knapsack problem is a P-complex issues, in order to
数据结构的C++描述
- 目 录 译者序 前言 第一部分 预备知识 第1章 C++程序设计 1 1.1 引言 1 1.2 函数与参数 2 1.2.1 传值参数 2 1.2.2 模板函数 3 1.2.3 引用参数 3 1.2.4 常量引用参数 4 1.2.5 返回值 4 1.2.6 递归函数 5 1.3 动态存储分配
gmp-4.1.2.tar
- 大数运算库-Treasury operations of large numbers
lsm-rbf
- 一种最小二乘法的RBF网络 --- --- --- --- --- ---- radical basis function neural network ------------------------------------------ clear all close all global sp k w2 b2 unitcenters alldatanum=400 traindatanum=300 testdatanum=100
DataStructure_Search
- 1.6.1 顺序表的查找 273 范例1-94 顺序表的查找 273 ∷相关函数:Search_Seq函数 1.6.2 静态树表的查找 276 范例1-95 静态树表的查找 276 ∷相关函数:Search_SOSTree函数 1.6.3 二叉排序树的基本操作 280 范例1-96 二叉排序树的基本操作 280 ∷相关函数:InsertBST函数 1.6.4 平衡二叉树的基本操作 285 范例1-97 平衡二叉树的基本操作 285 ∷相关函数:Sear
1
- 1.输入一个数,并以它为边长画出一个用*组成的正方形. 2.求解满足1*1+2*2+...n*n<1000的i的最大值. 3.求1~1000中的完数 4.输入一个数,并判断它是否为素数(这是return 语句的巧用) 5.输出0~100中所有不能被3整除的数-1. Enter a few, and to its side length* component used to draw a square. 2. Solving Satisfied 1* 1+2* 2+ .
SSMULT-2.0.1.tar
- 实现两个稀疏矩阵相乘(效率高于早期的Matlab自带的程序),Matlab编程 -SSMULT is a simple stand-alone MATLAB mexFunction that computes C=A*B where both A and B are sparse. It is typically faster and always uses less memory than C=A*B in MATLAB 7.4 (or earlier). Works on MATLAB
4
- BP算法例子:用一个五层的神经网络去逼近函数f(x1,x2)=pow(x1-1,4)+2*pow(x2,2)-BP algorithm is an example: with a five-layer neural network to approximate the function f (x1, x2) = pow (x1-1, 4)+2* pow (x2, 2)
comparison_numerical_interpolation_real_values.ra
- Used function P(x) = 1+x− x2+0.2x3+0.1x4 and its known the values P(x)=[ -6.2 -8.3 -5.0 -1.1 1 1.3 2.2 8.5 27.4], in x= [-4 -3 -2 -1 0 1 2 3 4] to interpolate in the xi = − 4 + 0.1i, i = 0, 1, 2, . . . 80. Results are graphical
1
- #include <mega8.h> #include <stdio.h> #include <delay.h> #include <mega8.h> #include <stdio.h> #include <delay.h> #define TG PORTB.1 #define RF_Rx PIND.2 #define Busy PIND.3 #define Mess1
Algorithms.in.C.Parts.1-4.Fundamentals.Data.Struct
- 经典算法书(中文版).《C算法》介绍了当今最重要的算法,共分3卷,本书是第1卷。第1卷分4部分、共16章。第一部分“基础知识”(第1~2章)介绍了基本算法分析原理。第二部分“数据结构”(第3~5章)讲解算法分析中必须掌握的数据结构知识。主要包括基本数据结构、抽象数据结构、递归和树。第三部分“排序”(第6~11章)按章节顺序分别讨论了基本排序方法(如选择排序、插入排序、冒泡排序、希尔排序等)、快速排序方法,归并和归并排序方法、优先队列与堆排序方法、基数排序方法以及特殊目的排序方法,并比较了各种排序
17-1
- Example: 编译:mpicc including.c –o including 运行:可以使用命令 mpirun –np SIZE including来运行该串匹配程序,其中SIZE是所使用的处理器个数。本实例中使用了SIZE=4个处理器。 mpirun –np 4 including 运行结果: 请输入点的个数:6 请输入各点的坐标 0:1 0 1:2 1 2:4 0 3:2 4 4:1 2 5:0 3 请输入要判断点的坐标 2 3
crc
- 自动完成CRC校验码的计算 1 010110001101 110011 可以得到: (1)index:5 pointing:1 101011 110011 011000 (2)index:6 pointing:0 110000 110011 000011 (3)index:7 pointing:0 000110 0 000110 (4)index:8 pointing:0 001100 0 001100 (5)ind
mt-daapd-0.2.4.2.tar
- 1.1. 支援的功能 Supports the Roku SoundBridge (query/browse/index support) Supports periodic rescans of the database Can advertise shoutcast streams Supports password-protected shares Is web-configurable and managable Support dynamic playlists
yuandaima
- 代码设计 :整数的分划问题。如,对于正整数n=6,可以分划为: 6 5+1 4+2, 4+1+1 3+3, 3+2+1, 3+1+1+1 2+2+2, 2+2+1+1, 2+1+1+1+1 1+1+1+1+1+1+1 -Code design: integer partition problem. For example, for positive integer n = 6, you can partition as follows: 6 5+1 4+2,
trellis
- set up the trellis given code generator g g given in binary matrix form. e.g. g = [ 1 1 1 1 0 1 ] next_out(i,1:2): trellis next_out (systematic bit parity bit) when input = 0, state = i next_out(i,j) = -1 or 1 next_out(i,3:4): trellis n
Alarm (2)
- 数据结构OJ测试题 Duck公司在仓库安装了红外报警装置,如图所示,所有红外线互不相交。n个发射器和n个接收器将平面分成n+1个区域,从左到右分别记作0、1、…、n。现在技术人员正在进行调试,对于每个点,需要快速知道它处于哪个区域。若正好处于红外线上,则视为处于右边的区域。 输入 第一行两个整数n、m,表示有n条直线、m个点 接下来n行,每行两个整数a、b,表示一组报警装置的发射器安装在(a, 0),接收器安装在(0, b)。每行a、b都比前一行的大 接下来m行,每行两个整数x、y,表