搜索资源列表
Projectjohu123006
- crc任意位生成多项式 任意位运算 自适应算法 循环冗余校验码(CRC,Cyclic Redundancy Code)是采用多项式的 编码方式,这种方法把要发送的数据看成是一个多项式的系数 ,数据为bn-1bn-2…b1b0 (其中为0或1),则其对应的多项式为: bn-1Xn-1+bn-2Xn-2+…+b1X+b0 例如:数据“10010101”可以写为多项式 X7+X4+X2+1。 循环冗余校验CRC 循环冗余校验方法的原理如下:
矩阵的运算算法
- 这里有加减乘和转置 用C语言编的 注意输入 算法用于稀疏矩阵 首先输入行,列,元素数目 再输入标志位 即每一列的第一个元素是矩阵中的第几个元素 再输入矩阵的元素 再选择符号-here and to take home series with C language to the attention of the importation of sparse matrix algorithm for the importation of the first rows and columns, the
src
- 基于位运算的求解NQueen问题的一个实例。 提供了基于单线程和多线程两种方式计算的代码,分别见NQueen.java和MultiThreadNQueen.java
tdzl1.3
- 高效整数开平方 我能实现的最高效率的函数,用于将一个unsigned int数开平方。如果被求的数不是完全平方数,求出它的平方根的整数部分。尽你所可能的优化它的效率,并用文字证明你优化策略有效。 函数的声明为: unsigned short work(unsigned int n) 用到了位运算
高精度整数运算
- 练习程序,问题如下:进行高精度整数的加、减、乘运算。输入两个十进制大整数M和N(M、N最长可达50位),计算运算结果并输出。【输入形式】标准输入上依次分行输入以下内容:1.第一行输入第一个大整数M。M可能带有负号,后面是最长可达50位的数字序列。2.第二行只有一个字符,可以是“+”、“-”、“*”,分别代表加、减、乘三种运算符。3. 第三行输入大整数N,格式与M相同M、N均不带有前缀的多余的0【输出形式】在标准输出上打印运算结果,输出一行字符序列,是大整数M和N和运算结果。如果该运算结果是正数,
定点运算器.rar
- 实现二进制定点运算: 1.定点整数补码加法 2.定点整数补码减法 3.定点小数Booth补码一位乘法 4.定点小数原码一位除法(加减交替法) 5.定点小数补码一位除法(加减交替法) 6.定点小数原码一位乘法 7.定点小数原码两位乘法 8.定点整数原码乘法 9.定点整数原码除法,achieve binary fixed point operations : 1. Sentinel integral complement Adder 2. Sentinel integral
cint96
- 96位大数运算实现-96 big number operation realizes
odd
- 很高效的判断组合数C(n,k)的奇偶性。 巧妙的使用了位运算。时间复杂度为O(1). 避免使用大数类。-Very efficient to determine the number of combinations C (n, k) parity. Clever use of digital computing. Time complexity is O (1). To avoid the use of large numbers type.
DataStructure
- 展示数据结构的一些实用技巧. 包含: 1.运用kmp算法计算无穷概率 2.矩阵乘法的十种经典运算技巧 3.位运算的实用技巧(1) (2) (3)-Data structure to display a number of practical skills. Includes: 1. The use of KMP algorithm infinite probability 2. 10 kinds of classical matrix multiplication comp
BigNum
- 构造大数运算类 +;-;*;/ 并测试。<br>1. 不考虑括号 <br>2. 输入数据最大长度为40 位,要捕获异常 <br>3. 不考虑输入小数部分,<br>4. 测试要完整,先输入两个数,可输出上面两个数的运算结果 <br>5. 需要输出商和余数-Construction of large numbers+-*/computing and test category. <br> 1. Not consider brac
6.1
- usacoCHAPTER6程序,非常恶心的动态规划转移方程,位运算-usacoCHAPTER6 procedures, very nausea transfer equation of dynamic programming, digital computing, etc.
weichu
- 用位运算的方法实现无符号整数的除法程序 -The method used to achieve bit unsigned integer division procedure
count
- 可以实现加减乘运算的大数运算器,操作数可长达10000位,使用作为文件输入输出-Addition and subtraction operations can be achieved by large numbers calculator, operands of up to 10000, using as a file input and output
2965
- poj上的第2965题,用广度优先算法加上位运算实现,语言是C-poj the first 2965 title, with added-bit computing breadth-first algorithm implementation language is C++
9
- 计算大数整小数乘法9位运算 也就是含小数的大数乘法 其中运算时 采用9位9位的进行运算 大大的提高了运算速度-Calculate the multiplication of large numbers the whole nine decimal operation is the multiplication of large numbers with decimal operation which used 9 9 computing greatly improve the conduct o
test9_1007
- 计算100的阶乘的具体数字 关于数学计算 位运算-the actual result for 100!
bit_calculation
- 介绍c++中位运算的概念,并提供了典型事例辅助理解。-C++ introduced the concept of bit operation, and provides a typical example of supporting understanding.
Huffman
- 哈弗曼树,其中有二叉树,位运算还压缩算法-Huffman trees, including binary, bit operations but also compression algorithm
bits
- CS:APP 实验。通过位运算实现很多函数。 位运算练习。-CS:APP lab. Bit operation exercise
NQueen_bit
- N皇后问题的一种简单解法,利用位运算来解决,当N较大时,能有效算出解法的种数。-N-Queens problem is a simple solution, the use of bit operations to solve, when N is large, it can effectively calculate the solution of the species.