搜索资源列表
wuhan-traffic
- 一、 目的: 对应数据结构课程所学的基本原理和方法,学习图状结构求最短路径的算法,将理论知识运用于实际。 二、 任务: 请根据附图和附表,设计一个武汉市交通导引系统。用户输入起点站和目标站,系统显示起点站到目标站的最短路径。 三、 要求: 1. 提示用户输入起点站和目标站 2. 系统向用户显示一条最短路径(经过站数最少的路线),如果有两条以上最短路线,则按换乘次数排序显示。 3. 显示每一条路线时,不仅要显示应搭乘的车次,还要显示应搭乘站的站名。 四、 提示:
optimization.rar
- 最优化方法的一些基本算法的实现:1,0.618法;2,牛顿法;3,改进牛顿法;4,FR法;5,DFP法,Ways to optimize some of the basic algorithm implementation: 1,0.618 method 2, Newton' s method 3, improved Newton method 4, FR Act 5, DFP method
gmp-4.1.2.tar
- 大数运算库-Treasury operations of large numbers
scalogram
- Fs = 100000 t = 0:1/Fs:.00296 x = 1-cos(4*pi*t) cos(2*pi*t*200) h = spectrum.welch Instantiate a welch object. psd(h,x, Fs ,Fs) Plot the one-sided PSD -Fs = 100000 t = 0:1/Fs:.00296 x = 1-cos(4*pi*t) cos(2*pi*t*200) h = spectrum.
mini2
- clear all clc t=0:1/1000:10-1/1000 s=sin(2*pi*t) snr=20 s_power=var(s) varience of s linear_snr=10^(snr/10) factor=sqrt(s_power/linear_snr) noise=randn(1,length(s))*factor x=s+noise Ó É SNR¼ Æ Ë ã
4
- (1)已知一棵完全二叉树存放于一个一维数组T[n]中,T[n]中存放的是各结点的值。试设计一个算法,从T[0]开始顺序读出各结点的值,建立该二叉树的二叉链表表示。 (2)二叉树的双序遍历(Double-order traversal)是指:对于二叉树的每一个结点来说,先访问这个结点,再按双序遍历它的左子树,然后再一次访问这个结点,接下来按双序遍历它的右子树。试写出执行这种双序遍历的算法。 -(1) known to a complete binary tree stored in a o
statistical-problem
- Descr iption: 计算机似乎生来就是干苦力的,不是吗?统计就是这种苦力中的一种,而如果你运气不好,刚好碰到有很多重复数据的时候,就更加令人感到乏味。那么,你的任务来了。现在,给你一列数 A1, A2, … An 。然后要你回答,对于给定的区间,里面到底有多少个不重复的数。 Input: 一个整数 T (T <= 10) ,表示有 T 组测试数据。 每组数据第一行是数 N (1 <= N <= 30000) 。 第二行有 N 个数 A1 A2 …
include
- 在采用二叉链表存储的二叉树上,编程实现从根结点到指定结点之间的路径.-#include <stdio.h> #include <stdlib.h> typedef struct BTnode { char data struct BTnode*lchild,*rchild }BTNode #define NodeLen sizeof(BTNode) BTNODE*Creat_Bt(void) void Preorder
kalman
- 一连续平稳的随机信号x(t),自相关函数RX(t)=e-/t/,信号x(t)为加性噪声所干扰,噪声是白噪声,测量值的离散值Z(k)为已知,TS=0.02s。 -3.2,-0.8,-14,-16,-17,-18,-3.3,-2.4, -18,-0.3,-0.4,-0.8,-19,-2.0,-1.2,-11,-14,-0.9,0.8,10,0.2,0.5,-0.5,2.4,-0.5,0.5,-13,0.5,10,-12,0.5,-0.6,-15,-0.7,15,0.5,-0.7,-2.0,-19
3_2
- 主元素 线性选择算法主元素的判定(分治策略) 设T[0:n-1]是n个元素的数组,如果其中某个元素x在整个数组中的出现次数超过n/2,则称x为数组T的主元素。 请设计一个分治算法,判断数组T={1,2,2,2,3,4,3,2,2,4,2,2,6,7,2,2}中是否存在主元素。 -main character
1-(2)
- 题目:有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? 1.程序分析:可填在百位、十位、个位的数字都是1、2、3、4。组成所有的排列后再去 掉不满足条件的排列-Topic: 1, 2, 3, 4 Numbers, how many can form a different from each other and have no the repeat number three digits? How much be? 1. The progra
BSTree
- 数据结构试验 二叉排序树 实现了创建--1\t插入--2\t删除--3\t查找--4\t遍历--5\t销毁--6\t退出等功能-The data structure test binary sort tree to achieve creating- 1 \ t Insert- Delete- 2 \ t \ t find- 4 \ t traversal- 5 \ t destroyed- 6 \ t quit
1234435
- 用matlab 7.0编写的滑模变结构仿真的例子。-S-function for continuous state equation function [sys,x0,str,ts]=s_function(t,x,u,flag) switch flag, Initialization case 0, [sys,x0,str,ts]=mdlInitializeSizes Outputs case 3, sys=mdlOutputs
DNA
- 基因序列比较 人类基因由4种核苷酸,分别用字母ACTG表示。要求编写一个程序,按以下规划比较两个基因序列并确定它们的相似程度。即两 给出两个基因序列AGTGATG和GTTAG,它们有多相似呢?测量两个基因的相似度一种方法称为对齐。使用对齐方法可以在基因的适当位置加入空格,让两个基因的长度相等,然后根据基因的分值矩阵计算分数。 A C G T - A 5 -1 -2 -1 -3 C -1 5 -3 -2 -4 G -2 -3 5 -2 -2 T -1 -2 -2 5
ecgsyn
- ECG waveform generator for MATLAB [s, ipeaks] = ecgsyn(sfecg,N,Anoise,hrmean,hrstd,lfhfratio,sfint,ti,ai,bi) Produces synthetic ECG with the following outputs: s: ECG (mV) ipeaks: labels for PQRST peaks: P(1), Q(2), R(3), S(4)
Genetic-Algorithms2
- 全局优化问题 MATLAB 用遗传算法计算 y(t)=4*x1(t)^2-2.1*x1(t)^4+1/3*x1(t)^6+x1(t)*x2(t)-4*x2(t)^2+4*x2(t)^4 的全局最优值-Global Optimization MATLAB Calculate y(t)=4*x1(t)^2-2.1*x1(t)^4+1/3*x1(t)^6+x1(t)*x2(t)-4*x2(t)^2+4*x2(t)^4 Global optimum value by Genetic Alg
walsh-code-decoding
- It does walsh decoding in matlab.For w5 i.e. 100 Walsh code T = 01100110 For bit a3 at T/2 So a3=1 Similarly same things is do for T/4,T/8…….. Continuing the same steps we get w5=100
4.2
- 编写算法,在串的堆存储机构上实现串的插入操作StrInsert(&S,pos,T)和串的删除操作StrDelete(&S,pos,len)。-Write algorithm, string on the string heap storage mechanism inserts StrInsert (& S, pos, T) and serial deletion StrDelete (& S, pos, len).
4.17
- 编写一个递归算法实现: T(n)=T[n/2](向上取整)+T[n/2](向下取整)+n T(1)=1 然后用栈来模拟递归调用,重新编写一个算法. -Write a recursive algorithm implementation: T (n) = T (rounded up) [n/2]+ T n/2+ n (round down) T (1) = 1 Then use the stack to simulate the recursive call to w
Interpolation
- 线性插值,椭圆插值,随机插值,各种插值计算方法 Interpolation类的第一种边界条件的三次样条函数插值、微商与积分(double[] x = {0.52,8.0,17.95,28.65,50.65,104.6,156.6,260.7,364.4,468.0,507.0,520.0}; double[] y = {5.28794,13.84,20.2,24.9,31.1,36.5,36.6,31.0,20.9,7.8,1.5,0.2};