搜索资源列表
c小应用
- 题目:有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? 1.程序分析:可填在百位、十位、个位的数字都是1、2、3、4。组成所有的排列后再去掉不满足条件的排列。 2.程序源代码:-topic : 1,2,3,4 figures, the number can be formed with each other with no repeat of the triple-digit figures? How many are? 1. Program Analysis : c
一、二次样条
- 第一型样条插值,边界条件为两端的二阶导数值已知 第一型样条插值,边界条件为两端的一阶导数值已知-first-spline interpolation, boundary conditions for the two ends of the second derivative known numerical first-spline interpolation, boundary conditions for the two ends of a derivative known Numerical
chejiandiaodu
- 有m台不同的机器,n个不同的工件。每个工件有多道工序,每道工序由指定的机器在固定的时间内完成。一道工序一旦开始处理,就不能中断。每台机器一次只能处理一道工序。一个调度就是决定每台机器上工序的处理顺序,使得机器完成所有工件的时间最短。具体的,该问题就是要求在满足(1)、(2)两个约束条件的前提下,确定每台机器上工序的顺序,使加工的时间跨度(从开始加工到全部工件都加工完所需要的时间)达到最小。其中,(1)表示工件约束条件:对每个工件而言,机器对它的加工路线是事先确定的;(2)表示机器约束条件:对每台
PackageProblem
- 实现背包问题 package problem 1. 问题描述 假设有一个能装入总体积为T的背包和n件体积分别为w1 , w2 , … , wn 的物品,能否从n件物品中挑选若干件恰好装满背包,即使w1 +w2 + … + wn=T,要求找出所有满足上述条件的解。例如:当T=10,各件物品的体积{1,8,4,3,5,2}时,可找到下列4组解: (1,4,3,2)、(1,4,5)、(8,2)、(3,5,2)。 2. 基本要求 读入T、n、w1 , w2 , … , wn
bhfit
- 输入学期总数 学期的学分上限 课程数 拓扑排序所形成的课程先修关系的边数 课程号及其学分 在各学期学期负担尽量均匀和 课程集中在前几个学期进行排课两种条件下进行排课-importation of the total semester credit semester courses ceiling few topological sorting as a result of the pre-course edge courses, and credits in the semester to
FEM_main
- 一阶有限元通用程序,边界条件可变,可以用于机械应力分析,电磁场数值计算等领域。而且可以自编自东剖份程序作为入口。-a finite element analysis program, boundary conditions variable, which can be used mechanical stress analysis, Numerical Calculation of electromagnetic fields. Can be directed and performed in
countsort
- 计数排序是一个非基于比较的线性时间排序算法。它对输入的数据有附加的限制条件: 1、输入的线性表的元素属于有限偏序集S; 2、设输入的线性表的长度为n,|S|=k(表示集合S中元素的总数目为k),则k=O(n)。 在这两个条件下,计数排序的复杂性为O(n)。 计数排序算法的基本思想是对于给定的输入序列中的每一个元素x,确定该序列中值小于x的元素的个数。一旦有了这个信息,就可以将x直接存放到最终的输出序列的正确位置上。例如,如果输入序列中只有17个元素
a
- Recognizing its importance is only the fist step to advocate invetion or innovation, and some effective measures should be taken for it. For one thing, our authority should continue to enlarge the recruit of graduate. For another, the conditions of
关键路径
- (1)输入E条弧<j,k>,建立AOE-网的存储结构 (2)从源点v出发,令ve[0]=0,按拓扑排序求其余各项顶点的最早发生时间ve[i](1<=i<=n-1).如果得到的拓朴有序序列中顶点个数小于网中顶点数n,则说明网中存在环,不能求关键路径,算法终止 否则执行步骤(3)(3)从汇点v出发,令vl[n-1]=ve[n-1],按逆拓朴排序求其余各顶点的最迟发生时间vl[i](n-2>=i>=2). (4)根据各顶点的ve和vl值,求每条弧s的最早发生时间e(
PeriodicScriptBACKUP
- ABAQUS周期性边界条件fortran代码,适合添加周期性边界条件-ABAQUS fortran code of the periodic boundary conditions, suitable for adding the periodic boundary conditions
123456789=a
- 插入运算符算法,123456789=a,在等式左边的任意两个数字之间插入 + - *使得等式成立,列出满足条件的所有结果-Insert operator algorithm, 123456789 = a, the left side of the equation inserted between any two figures+-* Make the equation set up, listing all of the results meet the conditions
001
- 在避免死锁的方法中,所施加的限制条件较弱,有可能获得令人满意的系统性能。在该方法中把系统的状态分为安全状态和不安全状态,只要能使系统始终都处于安全状态,便可以避免发生死锁。 银行家算法的基本思想是分配资源之前,判断系统是否是安全的 若是,才分配。它是最具有代表性的避免死锁的算法。 -Avoid deadlock in the method, the restrictions imposed by the weaker conditions, it is possible to obtai
binarysearch
- 数据结构中的查找算法,实现的是在递归条件下的对半查找法-Find a data structure in the algorithm is recursively under the conditions of semi-Find Law
packageProblem.tar
- 0-1的小偷背包问题源码,给出可偷东西的个数和可以拿走的最大重量,算法可以给出在这个条件下的最优解。-0-1 knapsack problem thieves source, give the number of things can be stolen and taken away the largest weight in the algorithm can give optimal solution under the conditions.
changesort
- 交换法比较简单,在一组数据中每次用当前的元素同后面的元素比较并在符合条件时交换。直到该组数据是从小到大的序列-Exchange method is relatively simple, in one set of data in each element with the current elements in comparison with the back and in line with the conditions of the exchange. Until the data are
search_number
- 找一个最小的自然数,使它等于不同的两组三个自然数的三次幂之和,即找最小的x,使得:x=a*a*a+b*b*b+c*c*c = d*d*d+e*e*e+f*f*f 其中,a,b,c,d,e,f都是自然数,a<=b<=c, d<=e<=f [a,b,c]!=[d,e,f] 进一步,是否还存在另外一个自然数满足上述条件,可能的话请输出其结果 -Find a smallest natural number, making it equivalent to the thre
chain
- 已知一个双向链表,从第二个元素开始已经呈递增有序,随意 输入几个数字,把第一个数字插进去,条件的是呈递增有序-Known to a two-way list, from the beginning of the second element has been increasing in an orderly manner, free importation of a few figures into the first number, and the conditions that wer
5_queen
- 设在初始状态下在国际象棋棋盘上没有任何棋子(皇后)。然后顺序在第1行,第2行,…。第8行上布放棋子。在每一行中有8个可选择位置,但在任一时刻,棋盘的合法布局都必须满足3个限制条件,即任何两个棋子不得放在棋盘上的同一行、或者同一列、或者同一斜线上。试用递归与非递归的方法编写算法,求解并输出此问题的所有合法布局-In the initial state in the international chess board does not have any pieces (Queen' s).
xunhuanliedui
- 2. 假设以数组sequ[m]存放循环队列的元素,同时设变量rear和quelen 分别指示循环队列中队尾元素的位置和内含元素的个数。编写实现该循环队列的入队和出队操作的算法。提示:队空的条件:sq->quelen==0;队满的条件:sq->quelen==m。-2. Assuming an array sequ [m] cycle queue storage elements, while the variable set, respectively, rear and instr
chess
- 在N*N的棋盘上(1<=N<=10)填入1,2,...N*N共N*N个数,使得任意两个相邻的数之和为素数.输出满足条件的最小序列的方案。 最小序列即将每一行连接起来组成一行,然后使前面的尽可能小,当第一个数字相同时则比较下面一个,依次类推。 比如当N=2时,序列为1 2 4 3,当无满足条件的方案时输出"NO"。 -In the N* N chessboard (1 < = N < = 10) filled 1,2, ... N* N total numbe
