虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

计算方法上机实习<b>题目</b>

  • 算法介绍 矩阵求逆在程序中很常见

    算法介绍 矩阵求逆在程序中很常见,主要应用于求Billboard矩阵。按照定义的计算方法乘法运算,严重影响了性能。在需要大量Billboard矩阵运算时,矩阵求逆的优化能极大提高性能。这里要介绍的矩阵求逆算法称为全选主元高斯-约旦法。 高斯-约旦法(全选主元)求逆的步骤如下: 首先,对于 k 从 0 到 n - 1 作如下几步: 从第 k 行、第 k 列开始的右下角子阵中选取绝对值最大的元素,并记住次元素所在的行号和列号,在通过行交换和列交换将它交换到主元素位置上。这一步称为全选主元。 m(k, k) = 1 / m(k, k) m(k, j) = m(k, j) * m(k, k),j = 0, 1, ..., n-1;j != k m(i, j) = m(i, j) - m(i, k) * m(k, j),i, j = 0, 1, ..., n-1;i, j != k m(i, k) = -m(i, k) * m(k, k),i = 0, 1, ..., n-1;i != k 最后,根据在全选主元过程中所记录的行、列交换的信息进行恢复,恢复的原则如下:在全选主元过程中,先交换的行(列)后进行恢复;原来的行(列)交换用列(行)交换来恢复。

    标签: 算法 矩阵求逆 程序

    上传时间: 2015-04-09

    上传用户:wang5829

  • 功能强大的时钟中断

    功能强大的时钟中断,单片机和FIFO的接口和操作,单片机串口编程问题,纯软件单片机串口,串口通信的单片机程序,程序的多任务和资源复用举例,采用软件定时的计算方法

    标签: 时钟中断

    上传时间: 2014-01-26

    上传用户:zgu489

  • C++常用算法

    C++常用算法,给计算方法中各种基本应用提供参考

    标签: 算法

    上传时间: 2013-12-07

    上传用户:songyue1991

  • 这里所说的改进

    这里所说的改进,主要是指中值计算方法的改进,求出中值以后,仍按原来的方法进行图像处理

    标签:

    上传时间: 2013-12-12

    上传用户:fandeshun

  • 在MATLAB中编写实现图像的不同级别小波分解算法;2选择合适的小波基;3对经典的几幅黑白和彩色图像进行DWT变换;4实现零树、基于塔式网格矢量量化、基于LBG算法、基于标量量化等小波变换编码;5得到

    在MATLAB中编写实现图像的不同级别小波分解算法;2选择合适的小波基;3对经典的几幅黑白和彩色图像进行DWT变换;4实现零树、基于塔式网格矢量量化、基于LBG算法、基于标量量化等小波变换编码;5得到分析比较结果。达到的目的:1综合训练学生编程的能力;2对高数、计算方法、程序设计、数据结构、算法、数字图像处理等课程的复习和运用;3可培养学生的算法设计和分析能力。

    标签: MATLAB DWT LBG 算法

    上传时间: 2013-12-27

    上传用户:chenlong

  • 数字运算

    数字运算,判断一个数是否接近素数 A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in base b is a Niven number if the sum of its digits divides its value. Given b (2 <= b <= 10) and a number in base b, determine whether it is a Niven number or not. Input Each line of input contains the base b, followed by a string of digits representing a positive integer in that base. There are no leading zeroes. The input is terminated by a line consisting of 0 alone. Output For each case, print "yes" on a line if the given number is a Niven number, and "no" otherwise. Sample Input 10 111 2 110 10 123 6 1000 8 2314 0 Sample Output yes yes no yes no

    标签: 数字 运算

    上传时间: 2015-05-21

    上传用户:daguda

  • The government of a small but important country has decided that the alphabet needs to be streamline

    The government of a small but important country has decided that the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first character in the decree specifies whether a must come ( B )Before b in the new alphabet or ( A )After b . The second character determines the relative placement of b and c , etc. So, for example, "BAA" means that a must come Before b , b must come After c , and c must come After d . Any letters beyond these requirements are to be excluded, so if the decree specifies k comparisons then the new alphabet will contain the first k+1 lowercase letters of the current alphabet. Create a class Alphabet that contains the method choices that takes the decree as input and returns the number of possible new alphabets that conform to the decree. If more than 1,000,000,000 are possible, return -1. Definition

    标签: government streamline important alphabet

    上传时间: 2015-06-09

    上传用户:weixiao99

  • 3。《遗传算法与工程设计》

    3。《遗传算法与工程设计》,[日]玄光男着,程润伟着 科学出版社 2000年第一版 本书着重从计算方法和应用技术的角度对遗传算法作了深入浅出的讨论。书中介绍了遗传算法的基本概念和结构,解决约束优化和组合优化问题的方法,以及遗传算法在生产调度、可靠性设计、交通运输、设备布局等一系列工业工程问题中的应用。本书可作为高等院校的工业工程、管理科学、运等学、计算机科学和人工智能专业的本科生和研究生的教科书。对于系统分析员、运行研究员、管理科学家以及在工业工程与运筹学领域里从事最优化问题研究和应用的专业技术人员,本书也不失为一本内容丰富且实用性较强的参考书。

    标签: 算法 工程设计

    上传时间: 2015-07-01

    上传用户:梧桐

  • Fortran常用算法程序集-徐士良(著)

    Fortran常用算法程序集-徐士良(著),本书讲解了各种数值计算方法及其程序实现,此为程序第一部分。

    标签: Fortran 算法 程序

    上传时间: 2015-08-12

    上传用户:lxm

  • 光纤导波技术中的BPM算法

    光纤导波技术中的BPM算法,非常实用的计算方法

    标签: BPM 光纤 导波 算法

    上传时间: 2013-12-25

    上传用户:sjyy1001