搜索资源列表
ttt
- 介绍双数组逆波兰表达式法:-Introduced the dual-array expression Reverse Polish law:
reverse
- 三次反转算法 是一个线性时间算法 实现数组的反转 有详细的注释-Three inversion algorithm is a linear time algorithm inversion array detailed notes
daoxu
- 利用STL提供的容器和算法,对数组里的三个数倒序输出。-Provided by the use of STL containers and algorithms, of the array in reverse order of the three the number of output.
onoff
- f the input is a numeric array, it returns a cell array of strings of on or off depending on the logical outcome. Conversely, if the input is a cell array of strings of on or off , then it does the reverse, i.e. returns the logical matrix where
reverse.the.data.of.array
- 此为一个程序合集,里面含有对随机输入的一组存放在数组中的数据进行逆序排列算法,并输出,算法精简,复杂度低,另附最值精简程序和统计数目程序-This is a program collection, which contains a set of random input stored in the data array arranged in reverse algorithm, and output, arithmetic simplification, the complexity of l
SJJGPXBJ
- 数据结构的课程设计。10种内部排序算法的比较,有三种比较方式,随机数组比较,已排序数组升序比较,已排序数组逆序比较,只直观的给出了比较次数等,-Data structure course design. 10 kinds of internal sorting algorithms comparison, there are three more ways, more random array, the array has been sorted in ascending order of co
1000s--Factorial
- 输入不超过1000的正整数,输出n!=1X2X3....Xn的精确结果 1000!大约等于4*10^2567,因此可以用一个3000个元素的数组f保存,为了方便我们从低位起保存位数据,再倒序输出,即f[0]保存个位,其他类推 每次只需要模拟手算即可完成n!,输出时要忽略前导0-Enter a positive integer less than 1000, Output n! = 1X2X3 .... Xn accurate results 1000! Approximately equ
Job2
- 算法导论 思考题2-4逆序对问题:设A[1..n]是一个包含n个不同数的数组。如果在i<j的情况下,有A[i]>A[j],则称( i , j )就称为A中的一个逆序对(inversion)。给出一个算法,它能用Θ(nlgn)的最坏情况运行时间,确定n个元素的任何排列中逆序对的数目。(提示:修改合并算法)-Algorithm is graded 2-4 reverse introduction to question: set A [1.. n] is A contains n A d
7_5
- 将一个数组中的值按逆序重新排列。例如原来的是8,6,5,4,1.要求改为1,4,5,6,8.-The value of an array in reverse order to re-order. For example, the original is 8,6,5,4,1. Asked to 1,4,5,6,8.
ReverseArray
- ReverseArray模版,将数组反序-ReverseArray template, the array reverse order
array
- 矩阵的简单计算,包括加,减,乘,除。实现矩阵的代码操作-The algorithm has several optional matrices, and the image can be restored through reverse transform. Thus, it is very difficult to decode the hashing algorithm
youchengbianjiema
- 游程编码 输入一个一维数组,会将其内容进行编码,编码程序中包含十进制与二进制之间的相互转换。解码为其逆过程-RLE enter a one-dimensional array, its contents will be encoded, encoding process includes the interaction between decimal and binary conversion. Decode its reverse process
reverse
- Reverse a string or a character array.Its only function,Useful for people who learn C,for people who want to find job.
paixusuanfajiqiyingyong
- 这个文档里面含源代码和实现文档,主要包含以下几个功能:1.从键盘输入n个数,并按从小到大输出,并且可以多次进行。2.从一个.txt文件中读出数据,并且按从小到大输出 。 3.从键盘输入一个数组的值,将数组的值逆序并输出 4.输入一行字符,统计其中的英文字母,空格,数字,和其他字符的个数 等等,里面有实现6个功能-This document which contains the source code and implementation documentation, including the
paixu
- 使用简单数组实现下面各种排序算法,并进行比较。 排序算法: 1、插入排序 2、希尔排序 3、冒泡排序 4、快速排序 5、简单选择排序 6、堆排序 7、归并排序 8、基数排序 要求: 1、测试数据分成三类:正序、逆序、随机数据 2、对于这三类数据,比较上述排序算法中关键字的比较次数和移动次数(其中关键字交换计为3次移动)。 3、对于这三类数据,比较上述排序算法中不同算法的执行时间,精确到微秒-Using a simple ar
reverse
- 本实验设有一个线性表,分别实现数组结构存储的原地逆置。为数据结构课程必做实验。-This experiment has a linear form, respectively, to achieve the storage array structure in situ reverse home. For the data structure courses will do the experiment.
8-classical-algorithm-c-language
- 1.实现将输入的string字符串反序输出。 2.一个数如果恰好等于它的因子之和,这个数就称为"完数"。例如6 = 1+2+3找出10000以内的所有完数。 3.下面程序的功能是将一个4×4的数组进行逆时针旋转90度后输出,要求原始数组的数据随机输入,新数组以4行4列的方式输出 4.编程打印杨辉三角。 5.实现将输入的字符串反序输出 6.实现字符串拷贝函数strcopy(char*src,char* dest) 7.求近似Pi值。可以用公式(如:pi/2 = 1+1/3+
sensor
- 传感器 输入为拟合直线的正反行程数组;输出为线性度 -Sensor input for the fitted line array reverse stroke output linearity
reverse102
- 将一个数组中的值按逆序重新存放,然后输出。-Will be an array of values in the reverse re-stored, and then output.
verse K-th problem
- FancyCoder提出了一个叫做“反向第K个问题”的问题。描述也很简单:给定一个数组包含N个整数A [1],A [2],...,A [n]和一些查询的数组,每次查询要求找出符合第K大的数是X的连续子序列的数目。 第一行包含一个整数T(1 <= T <= 5),表示测试用例数。 对于每个测试用例:第一行包含两个整数N和Q(1 <= N <= 2,000,1 <= Q <= 2,000,000),表示阵列中有N个整数,Q次查询。 第二行包含1和N之间的N个