资源列表
[数据结构常用算法] CQueen
说明://八皇后问题:在国际象棋中,能否在空格棋盘上摆放八个皇后,并使其中任意两个皇后不能在同一行或同一列或同一对角线上,编写完整的摆放八皇后问题的程序。要求:第一个皇后的起始位置由键盘输入,国际象棋的棋盘为8*8的方格。-//Eight queens problem: In chess, can be placed in the space of eight on board the Queen, the Queen can not make any two of them in the same<赵汉卿> 在 2025-06-10 上传 | 大小:1kb | 下载:0
[数据结构常用算法] diedaifa
说明:// 编程序 用迭代法求a的立方根,求立方根的迭代公式为 ::Xi+1=(2*Xi)/3+a/(3*Xi*Xi) 假定X的初值为a,迭代到|Xi+1-Xi|<10的-5次方为止. 显示a=3,27的值,并通过调用pow(a,1.0/3)函数加以验证.。-//Compile a program with Iteration Method and the cube root, find the cube root of the iteration formula is:: Xi+1 = (2*<赵汉卿> 在 2025-06-10 上传 | 大小:1kb | 下载:0
[数据结构常用算法] LCS68765873568
说明:求解序列的最长公共子序列问题,使用滚动数组的方法-Solve the sequence of the longest common subsequence problem, use the scroll method for array<李延明> 在 2025-06-10 上传 | 大小:1kb | 下载:0
[数据结构常用算法] exp1_1
说明:数据结构实验之“输入的两个多项式,将其进行之加”-The input data structure experiment of adding the two polynomials<zhoudanfeng1991> 在 2025-06-10 上传 | 大小:1kb | 下载:0
[数据结构常用算法] 1945_N_Queens_Question
说明:在NXN格的国际象棋棋盘上摆放N个皇后,使其不能互相攻击,即任意两个皇后都不能处于同一行、同一列或同一斜线上,问有多少种摆法。 第一行为一个整数T,表示有T组数据。 以下T行,每行有一个整数n(0<n<=11),如上所述。 对于每组数据输出一行,即问题的答案。 -In NXN chess board grid placing N queens on, it can not attack each other, that any two of the Queen can<yu> 在 2025-06-10 上传 | 大小:1kb | 下载:0