用遞規子程序的方法實現HANOI塔問題.子程序模塊個數不限. 要求: 盤子個數可以輸入,第一個塔為A,第二個塔為B,第三個塔 的名稱為C.打印出移動過程.
上傳時間: 2013-12-17
上傳用戶:Yukiseop
DOS下查看磁盤扇區的程序, 按A,S,D,W,控制CHS增減,按E, 輸入CHS值,按Q,結束.
上傳時間: 2013-12-24
上傳用戶:tonyshao
acm HDOJ 1051WoodenSticks Description: There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in one by one fashion. It needs some time, called setup time, for the machine to prepare processing a stick. The setup times are associated with cleaning operations and changing tools and shapes in the machine. The setup times of the woodworking machine are given as follows: (a) The setup time for the first wooden stick is 1 minute. (b) Right after processing a stick of length l and weight w , the machine will need no setup time for a stick of length l and weight w if l<=l and w<=w . Otherwise, it will need 1 minute for setup.
標簽: WoodenSticks Description length wooden
上傳時間: 2014-03-08
上傳用戶:netwolf
本程序實現測量工頻頻率、功率因數、有功功率、無功功率、電壓、電流等功能
上傳時間: 2014-01-01
上傳用戶:huyiming139
企業物資管理系統 為了使物資管理部門的責、權、利得到落實, 以提高總體的經濟效益,采用J2EE 技術體系, 設計與實現了B/S 模式下的企業物資管理系統, 依據開發實例,分析了企業物資管理系統的業務需求和設計目標, 詳細討論了系統的實現技術、實現方案及安全設計
上傳時間: 2015-10-22
上傳用戶:liglechongchong
首先簡單介紹了GPS 接收機串口通信的基本概念, 然后通過實例詳細介紹了計算機與GPS 接收機進行 數據傳輸的兩種方法: 一種是使用W in32 A P I 通信函數的文件讀寫方式 另一種是通過VC+ + 6. 0 提供的 M SComm 控件實現。
上傳時間: 2015-10-23
上傳用戶:xuan‘nian
Verilog HDL: Magnitude For a vector (a,b), the magnitude representation is the following: A common approach to implementing these arithmetic functions is to use the Coordinate Rotation Digital Computer (CORDIC) algorithm. The CORDIC algorithm calculates the trigonometric functions of sine, cosine, magnitude, and phase using an iterative process. It is made up of a series of micro-rotations of the vector by a set of predetermined constants, which are powers of two. Using binary arithmetic, this algorithm essentially replaces multipliers with shift and add operations. In a Stratix™ device, it is possible to calculate some of these arithmetic functions directly, without having to implement the CORDIC algorithm.
標簽: representation Magnitude the magnitude
上傳時間: 2013-12-24
上傳用戶:金宜
一個旅行家想駕駛汽車從城市A到城市B(設出發時油箱是空的)。給定兩個城市之間的距離dis、汽車油箱的容量c、每升汽油能行駛的距離d、沿途油站數n、油站i離出發點的距離d[i]以及該站每升汽油的價格p[i],i=1,2,…,n。設d[1]=0<d[2]<…<d[n]。要花最少的油費從城市A到城市B,在每個加油站應加多少油,最少花費為多少?
上傳時間: 2013-12-31
上傳用戶:redmoons
代入法的啟發示搜索 我的代碼實現是:按照自然語言各字母出現頻率的大小從高到低(已經有人作國統計分析了)先生成一張字母出現頻率統計表(A)--------(e),(t,a,o,i,n,s,h,r),(d,l),(c,u,m,w,f,g,y,p,b),(v,k,j,x,q,z) ,再對密文字母計算頻率,并按頻率從高到低生成一張輸入密文字母的統計表(B),通過兩張表的對應關系,不斷用A中的字母去替換B中的字母,搜索不成功時就回退,在這里回朔是一個關鍵。
上傳時間: 2015-10-24
上傳用戶:wanqunsheng
b樣條曲線,有控制點的求法,還有用OPENGL顯示算法
標簽:
上傳時間: 2014-01-27
上傳用戶:evil