搜索资源列表
最短距离问题
- 求解网络中的最短路径。假设某个计算机网络有n个站点,依次编号为1,2,…,n;有的站点之间有直接的线路连接(即这两个站点之间没有其它站点),有的站点之间没有直接的线路连接。如果用三元组(i,j,f)来表示该网络中的站点I和站点j之间有直接的线路连接且它们之间的距离为f 当已知该网络各站点之间的直接连接情况由m个三元组(i1,j1,f1),(i2,j2,f2),…,(im,jm,fm)确定时,要求计算出对于网络中任意一个站点g(1≤g≤n)到其余各站点的最短距离。-the shortest pat
MD5加密的C++类
- 这是一个好用的MD5的C++类;这个类可以加在控制台 程序中也可用在MFC中, 并且提供了详细的错误处理 函数,是一个安全的类。例程是一个MD5的MFC程序, 支持字符串和文件两种输入。 LPCSTR TargetFile(char *filename=NULL) //计算文件的MD5值 void TargetStr(LPCSTR str) //计算字符串的MD5值 LPCSTR GetDigestKey() //取MD5运算后的结果 LPCSTR GetErr() //如果有错误,取错误字串
表达式解析器
- 源码,数学表达式解析器,可以解析并自动计算输入的公式-source, the mathematical expression parser, and can automatically calculate the analytical input to the formula
毛xlmatrix
- 一个可以计算矩阵行列式 逆矩阵,等其他矩阵运算的程序-one can calculate the matrix inverse matrix determinant, matrix operations and other procedures
calculate(sign)
- 该程序用C语言实现了大整数的加减乘除运算-the program with C language of the large integer arithmetic operations
MagicSquare-huishu
- 当年,学turbo c的时候,书上有一个魔方算法;十年后,一个偶然的应用,我编写了这个回溯法的魔方算法。优点:可以计算n阶魔方的所有可能组合。-year, the school turbo c, the book is a Rubik's cube algorithm; Ten years later, an accidental use, I prepared this retroactive law Cube algorithm. Advantages : can calculate
functioncalc
- 非常好用的计算器,可以计算很多东西,包括一些简单函数的求解-very handy calculator that can calculate a lot of things, including some simple function of solution
Back_Simulation
- 《数据结构》清华大学的,蓝皮(c语言篇)65页 模拟银行业务,计算客户平均逗留时间-"data structure," Tsinghua University, the Blue Paper (c Language) 65 simulation banking, calculate the average length of stay customers
3_9
- 在一个圆形操场的四周摆放着n堆石子。现要将石子有次序地合并成一堆。规定每次只能选相邻的两堆石子合并成新的一堆,并将新的一堆石子数记为该次合并的得分。试设计一个算法,计算出将n堆石子合并成一堆的最小得分和最大得分,并分析算法的计算复杂度。-in a circle around the playground are placed n gravel pile. Is a stone should order to be merged into a heap. Stipulated that only
mentecarlo
- 本程序用于计算随机变量模拟仿真 已经用计算机语言写好-the procedures used to calculate the random variable simulation has been used to finish the Computer Language
factorialxxxyy
- 一个最优化的大数阶乘算法,可以计算超过5位数的阶乘,而运算时间只需几秒。-an optimization of large factorial algorithm can calculate the median of over 5 factorial, and the computation time only a few seconds.
yiyuanxishujuzhenduoxiangshijiandanjusuanqisuanqi.
- 一元稀疏矩阵的简单计算,设计该程序的目的是掌握链表的使用(重点掌握指针的使用)。这个程序可以用来计算多项式的和与差,充当一个多项式计算器。-one yuan sparse matrix of simple calculation, The design procedure is designed to develop the use of the linked list (master key indicators). This procedure can be used to calculat
stringcmp
- 设A和B是长度相同的2个字符串。A和B的距离定义为相应位置字符距离之和。2个非空格字符的距离是它们的ASCII码之差的绝对值。空格与空格的距离为0;空格与其它字符的距离为一定值k。 字符串A的扩展是在A中插入若干空格字符所产生的字符串。在字符串A和B的所有长度相同的扩展中,有一对距离最小的扩展,该距离称为字符串A和B的扩展距离。 对于给定的字符串A和B,试设计一个算法,计算其扩展距离。 -Let A and B is the same length of two strings. A
scorecomputeandfilewrite
- C++文本文件的读写以及计算平均成绩-C text file read and write and calculate average scores ~~~~~~~~~~~~~~~~~~~~
eightdirection
- 以八个方位为主的迷宫问题解法,列出所有可能解法,并找出最短路径及计算出最佳解的个数。-mainly to the eight position maze Solutions, listing all possible solutions, and find the shortest path and calculate the number of the optimal solution.
1059
- Descr iption Calculate a+b Input Two integer a,b (0<=a,b<=101000) Output Output a + b Sample Input 5 7 Sample Output 12
PostFixCompute
- postfixComputer, Calculate the postfix expression, such as 45+,which means 4+5,and the result is 9. The program is very applied.
calculate
- 利用二叉树来计算公式的真值。计算命题演算公式的真值。-Using the formula to calculate the true binary value. Formula for calculating the true value of the propositional calculus.
calculate--PI
- 计算PI后面的很多位的C程序,可以直接运行,代码精简快速-calculate Pi rapidly and accuratly
Crystal Calculate
- 输入晶格常数,可计算每个面的晶面间距及夹角(The crystal surface spacing and the angle can be calculated by the constant of the input crystal surface)
