搜索结果
找到约 553 项符合
J-Alice 的查询结果
源码 迷宫问题的求解
问题描述:以一个m*n的长方阵表示迷宫,0和1分别表示迷宫中的通路和障碍。设计一个程序,对任意设定的迷宫,求出一条从入口到出口的通路,或得出没有通路的结论。
1.基本要求
(1)首先实现一个以链表作存储结构的栈类型,然后编写一个求解迷宫的非递归程序。求得的通路以三元组(i,j,d)的形式输出。其中:(i, ...
其他 有限差分法
function [alpha,N,U]=youxianchafen2(r1,r2,up,under,num,deta)  
  
%[alpha,N,U]=youxianchafen2(a,r1,r2,up,under,num,deta)  
%该函数用有限差分法求解有两种介质的正方形区域的二维拉普拉斯方程的数值解  
%函数返回迭代因子、迭代次数 ...
习题答案 《算法设计与分析》实验指导书
设有n=2k个运动员要进行网球循环赛。现要设计一个满足以下要求的比赛日程表:⑴每个选手必须与其他n-1个选手各赛一次;⑵每个选手一天只能赛一次;⑶循环赛一共进行n-1天。按此要求可将比赛日程表设计-成有n行和n-l列的一个表。在表中第i行和第j列处填入第i个选手在第j天所遇到的选手。用分治法编写为该循环赛设计一张比 ...
源码 成绩查询系统
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define N 100
int iNumOfStu=0;
struct score
&nbsp;&nbsp;{
&nbsp;&nbsp;float math;
&nbsp;&nbsp;float english;
&nbsp;&nbsp;float computer;
&nbsp;&nbsp;};
struct student
&nbsp;&nbsp;{
&nbsp;&nbsp;int number ...
源码 学生成绩guanli
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define N 100
int iNumOfStu=0;
struct score
&nbsp;&nbsp;{
&nbsp;&nbsp;float math;
&nbsp;&nbsp;float english;
&nbsp;&nbsp;float computer;
&nbsp;&nbsp;};
struct student
&nbsp;&nbsp;{
&nbsp;&nbsp;int number ...
经验 win7操作说明
Windows7下IE&nbsp;8使用技巧5则
IE几乎是各位菜鸟、大虾上网时的首选浏览器,有关它的常规使用技巧,相信各位早已是耳熟能详了。只要你足够用心、细心,就一定会不断“挖掘”出IE新的使用技巧来。不信,就来看看下面的几则新鲜用法吧,相信会让各位有耳目一新之感!
1.寻找失落的IE启动按钮
正 ...
源码 C语言编写雅可比迭代
# include<stdio.h>
# include<math.h>
# define N 3
main(){
&nbsp;&nbsp; &nbsp;float NF2(float *x,float *y);
&nbsp;&nbsp; &nbsp;float A[N][N]={{10,-1,-2},{-1,10,-2},{-1,-1,5}};
&nbsp;&nbsp; &nbsp;float b[N]={7.2,8.3,4.2},sum=0;
&nbsp;&nbsp; &nbsp;float x[N]= {0,0,0},y[N]={0},x0[N]={};
&nbsp;&nbsp; &n ...
书籍 Proakis J.G. Digital Communications
In this book, we present the basic pinciples that underlie the analysis and design of digital communication system.The subject of digital communications involves the transmission of information in digital form from a source that generates the information to one or more destinations.
源码 lagr.m
function y=lagr(x0,y0,x)
%x0,y0为节点
%x是插值点
n=length(x0);
m=length(x);
for i=1:m
z=x(i);
s=0.0;
for k=1:n
p=1.0;
for j=1:n
if j~=k
p=p*(z-x0(j))/(x0(k)-x0(j));
end
end
s=p*y0(k)+s;
end
y(i)=s;
end
源码 数组子系统
#include <stdio.h>
#include <stdlib.h>
#define SMAX 100
typedef struct SPNode
{
int i,j,v;
}SPNode;
struct sparmatrix
{
int rows,cols,terms;
SPNode data [SMAX];
};
sparmatrix CreateSparmatrix()
{
sparmatrix A;
printf("\n\t\t请输入稀疏矩阵的行数,列数和非零元素个数(用逗号隔开):");
scanf("%d, ...