搜索资源列表
CompetitionChampionAlgorithm100801
- 可用于有约束函数优化的竞赛争冠算法程序已基本完成,但肯定还有未发现的问题.请您试用,并提宝贵的意见和批评.谢谢!该程序是在自创的无约束优化的竞赛争冠算法(旧称竞技取冠算法)函数优化程序基础上,开发出来的有约束优化程序.程序采用罚函数法实现有约束优化的,但罚因子(惩罚系数)的处理方法有别于其它罚函数法.该程序证明这种惩罚系数处理方法是有效的.该法调整惩罚系数简单,粗放,一般应用默认值即可.该程序普适性较好,进化参数调整简单,不敏感,全局最优解的搜索能力较强,数据重现性(鲁棒性)较好,获得结果精度较
TXTfile_OPER
- 1. 删除TXT文件中的空行; 2. 删除TXT文件中的空格; 3. 删除TXT文件中的TAB键; 扩展功能,下个版本实现: a. 统计txt文件的总行数,每行对应的字符数 b.使用动态二维数组存放以上信息 c.使用回调函数维护数组信息; d.删除特定字符串的行-1. Delete TXT files in the blank lines 2. Delete TXT files in the space 3. Delete TXT files i
HeapMergeSort
- Sorting by Heapsort and Mergesort algorithms. =================================== Input file:H01dat.txt ---------------------------- 包含第一列為n a b 第二列以後為a1 a2 a3 a4 ...... an n:要排序的輸入資料數。 ai:要排序的資料,以space 或換行隔開,程式要能自行判斷資料輸入到n筆為止。
function.func
- 由于经常传文件到Linux下面 经常由于路径问题出现各种包含文件错误! windows用的是\ 而linux用的是/ 所有想到用DIRECTORY_SEPARATOR来修正路径 支持多种格式 如windows上:c:\a\//\b.txt也能正确转换为c:\a\b.txt 详细请自己测试!-Because often deliver documents to Linux below often due to include a file path problem appear all sorts
3.1
- 最长公共子序列问题 最长公共子序列(动态规划) 实验数据:input.txt X={A,B,C,B,D,A,B} Y={B,D,C,A,B,A} ——要求给出X、Y的最长公共子序列Z,程序运行结束时,将计算结果输出到文件output.txt中。输出文件中包含问题的答案:找不到公共子序列时给出“null” 。 -Longest common subsequence problem LCS (dynamic programming) experimental data:
program
- 将文件a.txt中的第n个字符到第m个字符提取出来放到b.txt文件中-File a.txt in the first n characters to be extracted into m-character file b.txt
longest
- 求两个子序列是最长公共子序列并输出到文件中。input.txt中的格式为X={A,B,C,D},Y={B,D}。-Find two sub-series is the longest common subsequence and output to a file. input.txt in the form X = {A, B, C, D}, Y = {B, D}.
lab05
- 编写列主元消元法的通用程序。。。数组AX=B a和b的输入都是考修改外部txt文件-Write out principal component elimination method for general program. . . Array of AX = B a and b are the test input to modify the external txt file
we
- 在Linux环境下,实现文本单词的替换并通过Makefile实现自动编译。-Open a txt format file as input. You can create a simple testing file in English by yourself. Read each line in the file and do the following items at same time(case sensitivity). a) change al
02
- 编写递归函数,求n个元素集合的所有子集。 不妨令集合元素为小写字母,原集合为{ a , b , …, a + n - 1}。 输入:input.txt,仅包含整数n(1-26)。 输出:若输入合法,输出集合的所有子集;否则输出"WRONG"。-Write a recursive function, an n-element set of all subset of. May wish to make a collection of elements to lowercase le
3
- 3.1 最长公共子序列问题 最长公共子序列(动态规划) 实验数据:input.txt X={A,B,C,B,D,A,B} Y={B,D,C,A,B,A} ——要求给出X、Y的最长公共子序列Z,程序运行结束时,将计算结果输出到文件output.txt中。输出文件中包含问题的答案:找不到公共子序列时给出“null” 。-3.1 the longest common subsequence problems longest common subsequence (dynamic
3
- 3.1 最长公共子序列问题 最长公共子序列(动态规划) 实验数据:input.txt X={A,B,C,B,D,A,B} Y={B,D,C,A,B,A} ——要求给出X、Y的最长公共子序列Z,程序运行结束时,将计算结果输出到文件output.txt中。输出文件中包含问题的答案:找不到公共子序列时给出“null” 。 -3.1 the longest common subsequence problems longest common subsequence (dynam
11
- 编写递归函数,求n个元素集合的所有子集。不妨令集合元素为小写字母,原集合为{ a , b , …, a + n - 1}。 输入:input.txt,仅包含整数n(1-26)。 输出:若输入合法,输出集合的所有子集;否则输出"WRONG"。子集输出格式为每行一个子集,空集用空行表示,非空集合每个元素间用一个空格间隔,最后一个元素之后不能有空格。-Write a recursive function, an n-element set of all subset of. May wish
(stu)File1
- 打开一个文件,逐行读取生成一个英文字符的索引,产生一个文件保存输入文件中的字符出现的次数、个数和种类。 1、一次读取文件的一行;读取文件使用iostream; 2、除去行中所有的标点符号,利用附录A的程序代码; 3、对于每一行: a)在你构建的索引结构中查找单词; b)如果没有找到(出现新词)就将它插入索引; c)如果找到就更新该词的出现次数(次数加1)。 4、所有行都读入完成后,对索引结构按照字典顺序进行排序。每一行都应包括该单词本身、出现次数,如果有能力,程序还应
circle
- 把一副BMP图象的R,G,B 各个分量分别读出来,然后再对存入指定的txt文件中-Put a pair of BMP image of R, G, B each component were read out, and then again to deposit the specified TXT file
kde_bg_v1.0
- 基于核密度估计的背景减法算法,拥有命令行界面的C++源代码。-kernel density estimation based background subtraction algorithm [1] with a command line interface. this algorithm is a somewhat improved version of [2]. the kmovingobjdetector class within the project is originally w
Rectangle
- 根据输入的长宽,计算Rectangle面积周长等功能,并画出在txt文件中-Rectangle Create a class Rectangle with attributes length and width, each of which defaults to 1 a. Provide member functions that calculate the perimeter and the area of the rectangle. b. Also provide se
3
- 对一篇由英文字母、空格、标点符号构成的文档,进行Huffman编码 数据输入: 由文件input.txt给出输入数据。 输入文件示例 input.txt A priority queue is a queue where each element has a priority and the element with the highest priority is at the front of the queue and will be the first elemen
4
- 编程任务: 对于给定的树,以根结点为起点,对树实现非递归方式广度优先搜索,输出广度优 先搜索序列 数据输入: 由文件input.txt给出输入数据。第1行有1个正整数n,表示给定的二叉树有n个顶 点,编号为1,2,…,n。接下来的n行中,每行有3个正整数a,b,c,分别表示编号为a的结 点的左儿子结点编号为b,右儿子结点编号为c,0表示没有儿子。各结点信息按照层序列表 的顺序给出。-Programming tasks: For a given of t
producer-and-consumer
- 创建4个POSIX线程。其中2个线程(A和B)分别从2个数据文件(data1.txt和data2.txt)读取10个整数. 线程A和B把从文件中读取的逐一整数放入一个缓冲池. 缓冲池由n个缓冲区构成(n=5,并可以方便地调整为其他值),每个缓冲区可以存放一个整数。另外2个线程,C和D,各从缓冲池读取10数据。线程C、D每读出2个数据,分别求出它们的和或乘积,并打印输出。-Creating four POSIX threads. Where two threads (A and B) were r