实验源代码 //Warshall.cpp #include<stdio.h> void warshall(int k,int n) { int i , j, t; int temp[20][20]; for(int a=0;a<k;a++) { printf("请输入矩阵第%d 行元素:",a); for(int b=0;b<n;b++) { scanf ("%d",&temp[a][b]); } } for(i=0;i<k;i++){ for( j=0;j<k;j++){ if(temp[ j][i]==1) { for(t=0;t<n;t++) { temp[ j][t]=temp[i][t]||temp[ j][t]; } } } } printf("可传递闭包关系矩阵是:\n"); for(i=0;i<k;i++) { for( j=0;j<n;j++) { printf("%d", temp[i][ j]); } printf("\n"); } } void main() { printf("利用 Warshall 算法求二元关系的可传递闭包\n"); void warshall(int,int); int k , n; printf("请输入矩阵的行数 i: "); scanf("%d",&k); 四川大学实验报告 printf("请输入矩阵的列数 j: "); scanf("%d",&n); warshall(k,n); }
上传时间: 2016-06-27
上传用户:梁雪文以
#include "iostream" using namespace std; class Matrix { private: double** A; //矩阵A double *b; //向量b public: int size; Matrix(int ); ~Matrix(); friend double* Dooli(Matrix& ); void Input(); void Disp(); }; Matrix::Matrix(int x) { size=x; //为向量b分配空间并初始化为0 b=new double [x]; for(int j=0;j<x;j++) b[j]=0; //为向量A分配空间并初始化为0 A=new double* [x]; for(int i=0;i<x;i++) A[i]=new double [x]; for(int m=0;m<x;m++) for(int n=0;n<x;n++) A[m][n]=0; } Matrix::~Matrix() { cout<<"正在析构中~~~~"<<endl; delete b; for(int i=0;i<size;i++) delete A[i]; delete A; } void Matrix::Disp() { for(int i=0;i<size;i++) { for(int j=0;j<size;j++) cout<<A[i][j]<<" "; cout<<endl; } } void Matrix::Input() { cout<<"请输入A:"<<endl; for(int i=0;i<size;i++) for(int j=0;j<size;j++){ cout<<"第"<<i+1<<"行"<<"第"<<j+1<<"列:"<<endl; cin>>A[i][j]; } cout<<"请输入b:"<<endl; for(int j=0;j<size;j++){ cout<<"第"<<j+1<<"个:"<<endl; cin>>b[j]; } } double* Dooli(Matrix& A) { double *Xn=new double [A.size]; Matrix L(A.size),U(A.size); //分别求得U,L的第一行与第一列 for(int i=0;i<A.size;i++) U.A[0][i]=A.A[0][i]; for(int j=1;j<A.size;j++) L.A[j][0]=A.A[j][0]/U.A[0][0]; //分别求得U,L的第r行,第r列 double temp1=0,temp2=0; for(int r=1;r<A.size;r++){ //U for(int i=r;i<A.size;i++){ for(int k=0;k<r-1;k++) temp1=temp1+L.A[r][k]*U.A[k][i]; U.A[r][i]=A.A[r][i]-temp1; } //L for(int i=r+1;i<A.size;i++){ for(int k=0;k<r-1;k++) temp2=temp2+L.A[i][k]*U.A[k][r]; L.A[i][r]=(A.A[i][r]-temp2)/U.A[r][r]; } } cout<<"计算U得:"<<endl; U.Disp(); cout<<"计算L的:"<<endl; L.Disp(); double *Y=new double [A.size]; Y[0]=A.b[0]; for(int i=1;i<A.size;i++ ){ double temp3=0; for(int k=0;k<i-1;k++) temp3=temp3+L.A[i][k]*Y[k]; Y[i]=A.b[i]-temp3; } Xn[A.size-1]=Y[A.size-1]/U.A[A.size-1][A.size-1]; for(int i=A.size-1;i>=0;i--){ double temp4=0; for(int k=i+1;k<A.size;k++) temp4=temp4+U.A[i][k]*Xn[k]; Xn[i]=(Y[i]-temp4)/U.A[i][i]; } return Xn; } int main() { Matrix B(4); B.Input(); double *X; X=Dooli(B); cout<<"~~~~解得:"<<endl; for(int i=0;i<B.size;i++) cout<<"X["<<i<<"]:"<<X[i]<<" "; cout<<endl<<"呵呵呵呵呵"; return 0; }
标签: 道理特分解法
上传时间: 2018-05-20
上传用户:Aa123456789
CC2530中文数据手册完全版,2.4GHz IEEE 802.15.4 榓ZigBeeR .梡揑 CC253X 曅忋宯.夝檙曽埬
上传时间: 2018-06-30
上传用户:yours777
Fundamentals of WiMAX was consciously written to appeal to a broad audience, and to be of value to anyone who is interested in the IEEE 802.16e standards or wireless broadband networks more generally. The book contains cutting-edge tutorials on the technical and theoretical under- pinnings to WiMAX that are not available anywhere else, while also providing high-level over- views that will be informative to the casual reader.
标签: Understanding Fundamentals WiMAX of
上传时间: 2020-05-27
上传用户:shancjb
This book presents millimeter wave communication system design and analysis at the level to produce an understanding of the interaction between a wireless system and its front end so that the overall performance can be predicted. Gigabit wireless commu- nications require a considerable amount of bandwidth, which can be supported by millimeter waves. Millimeter wave technology has come of age, and at the time of writing the standards of IEEE 802.15.3c, WiGig, Wireless HD TM , and the European Computer Manufacturers Association have recently been finalized.
标签: Communication Millimeter Systems Wave
上传时间: 2020-05-28
上传用户:shancjb
Wireless metropolitan area networks (WirelessMANs) is emerging as a promising broadband wireless access (BWA) technology to provide high-speed, high bandwidth efficiency and high-capacity multimedia services for residential as well as enterprise applications. It is observed that WirelessMAN (e.g., WiMAX) is even regarded as a 4G technology. For the success of the WirelessMANs, international standardization organiza- tions are very actively specifying the standards IEEE 802.16, ETSI HiperMAN and Korea WiBro.
标签: BroadbanMobile WiMAX Toward Broadband Wirelessd Wireless Mobile Toward WiMAX
上传时间: 2020-05-30
上传用户:shancjb
This book provides the essential design techniques for radio systems that operate at frequencies of 3 MHz to 100 GHz and which will be employed in the telecommunication service. We may also call these wireless systems, wireless being synonymous with radio, Telecommunications is a vibrant indus- try, particularly on the ‘‘radio side of the house.’’ The major supporter of this upsurge in radio has been the IEEE and its 802 committees. We now devote Ž . an entire chapter to wireless LANs WLANs detailed in IEEE 802.11. We also now have subsections on IEEE 802.15, 802.16, 802.20 and the wireless Ž . Ž metropolitan area network WMAN . WiFi, WiMax,, and UWB ultra wide- . band are described where these comparatively new radio specialties are demonstrating spectacular growth.
标签: Telecommunication Design System Radio for
上传时间: 2020-06-01
上传用户:shancjb
Wireless communications has become a field of enormous scientific and economic interest. Recent success stories include 2G and 3G cellular voice and data services (e.g., GSM and UMTS), wireless local area networks (WiFi/IEEE 802.11x), wireless broadband access (WiMAX/IEEE 802.16x), and digital broadcast systems (DVB, DAB, DRM). On the physical layer side, traditional designs typically assume that the radio channel remains constant for the duration of a data block. However, researchers and system designers are increasingly shifting their attention to channels that may vary within a block. In addition to time dispersion caused by multipath propagation, these rapidly time-varying channels feature frequency dispersion resulting from the Doppler effect. They are, thus, often referred to as being “doubly dispersive.”
标签: Time-Varying Channels
上传时间: 2020-06-01
上传用户:shancjb
Although the origins of radio frequency based wireless networking can be traced back to the University of Hawaii’s ALOHANET research project in the 1970s, the key events that led to wireless networking becoming one of the fastest growing technologies of the early 21st century have been the ratification of the IEEE 802.11 standard in 1997, and the subsequent development of interoperability certification by the Wi-Fi Alliance (formerly WECA).
标签: Networking Technology Wireless
上传时间: 2020-06-01
上传用户:shancjb
STM32F030C8T6 单片机+DM9051以太网RJ45模块ALTIUM设计硬件原理图+PCB+封装库文件,采用4层板设计,板子大小为5046x28mm,双面布局布线,包括完整的原理图和PCB文件,可以用Altium Designer(AD)软件打开或修改,可作为你产品设计的参考。DM9051NP SPI接口网卡芯片是为了方便MCU单片机系统进行以太网通信而开发出的解决方案。DM9051NP芯片是带有行业标准串列外设接口(Serial Peripheral Interface,SPI)的独立以太网控制器。DM9051NP符合IEEE 802.3 规范,它还支持以DMA 模式来传输,以实现资料传送快速。DM9051NP通过1个中断引脚和SPI接口来进行与主控制器/MCU单片机的通信,资料传输规格为10/100 M。
上传时间: 2022-01-21
上传用户: