资源列表
fdtd1d
- matlab编写的,计算一维光子晶体,fdtd。-matlab prepared, one-dimensional photonic crystal, fdtd.
newton
- 现在插值函数成为许多人的需要,现在提供牛顿插值的方法来供大家参考,牛顿插值适合线性插值的处理,对于非线性插值并不适合。-Interpolation function will now be a lot of people' s needs, now provides Newton interpolation method to everyone for reference, Newton Interpolation Linear Interpolation of treatment sui
Quicksort
- This file implements Qicksort algorithm.
Joseph
- 约瑟夫环 约瑟夫问题的一种描述是:编号为1,2,3……的n个人按顺时针方向围坐成一圈,每人持有一个密码。一开始任选一个正整数作为报数上限m,从第一个人开始按顺时针方向自1开始报数,报到m停止报数。报m的人出列,将他的密码作为新的m值,从他顺时针方向的下一个人开始重新从1开始报数,如此下去,直到所有人全部出列。-Joseph Ring Joseph, a descr iption of the problem is: numbered 1,2,3 ... ... n-individual
BTree
- haskell code for binary trees
Create-a-one-way-linked-list
- 创建一个单向链表,在头创建。有主函数可以直接编译运行。-Create a one-way linked list, in the first created. Are the main functions can be directly compiled and run.
myrunge_kutta2
- 三阶龙格库塔方程求解,编译环境为matlab。-Third-order Runge-Kutta equations, the compiler environment matlab.
randfile
- 产生互一定范围内的不重复的随机数,随机算法适用于较大范围,分布较为均匀.-Produce each other within a certain range of non-repeating random numbers, random algorithm is applicable to a wider range and more evenly distributed.
CountLeaf
- 采用先序方式建立二叉链表结构,使用递归实现统计二叉树叶子结点个数的算法-count leaf node number of bitree
Sicily1021
- 中大Sicily1021:将圆圈中配对的两个数字(由用户给出)取出,看最后是否能全部取完-N couples are standing in a circle, numbered consecutively clockwise from 1 to 2N. Husband and wife do not always stand together. We remove the couples who stand together until the circle is empty or we ca
ZigZag-Conversion
- Zigzag:即循环对角线结构( 0 8 16 1 7 9 15 17 2 6 10 14 18 3 5 11 13 19 4 12 20 ) 向下循环:nRows 斜角线循环:nRows-2(减去首尾两个端点) 重复-The string PAYPALISHIRIN
yuesefuhuan
- 已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。通常解决这类问题时我们把编号从0~n-1,最后[1] 结果+1即为原问题的解。-Known n individuals (identified by serial number 1,2,3 ... n, respectively) were sitting around a round tabl