首先,用前插法建立鏈表,在算法中以create函數表示;其次,定義mergeab函數,表示算法的歸并: 本算法的思路為:順次逐個將單鏈表的ha中的節點(P節點)在鏈表 hb中查找是否有重復的結點,若有,則不插入到鏈表hb中,將其從鏈表ha中刪除。若在鏈表hb中找到第一個大于P的節點的數據域值的節點(Q節點),則在Q節點之前插入P節點,否則將鏈表ha聯接到鏈表hb的表尾。為了實現方便在單連表hb之前附加一個表頭節點,帶歸并完成后,再歸還該表頭節點,返回歸并后連表的頭指針。 最后,定義Main函數,引用之前定義函數完成程序。
標簽:
上傳時間: 2015-11-04
上傳用戶:hongmo
首先,初始化將要排序的序列,以數組初始化。 第二,定義快速排序函數: 本算法思路為:在待排序的n個記錄中任取一個記錄r(通常取第一個記錄),以該記錄的關鍵字k為準,將所有剩下的n-1個記錄分割成兩個子序列。第一個子序列中的每個記錄關鍵子均小于或等于k,第二個子序列中的每個記錄關鍵字均大于或等于k,然后將k對應的記錄排在第一個子序列之后及第二個子序列之前。這個過程為一遍排序。之后分別對子序列1和子序列2重復上述過程,直至每個子序列只有一個記錄為止。 最后,定義Main函數,引用之前定義函數完成程序。
標簽:
上傳時間: 2014-01-05
上傳用戶:www240697738
<%@ LANGUAGE="VBSCRIPT" %> <!--#include file="util.asp" --> <% Head="您放入購物車的物品已經全數退回!" Session("ProductList") = "" %> <html> <head> <meta http-equiv="Content-Type" content="text/html charset=gb2312"> <STYLE type=text/css>.Main { FONT-SIZE: 9pt } .Main1 { FONT-SIZE: 14px } </STYLE> <title>清空購物車</title> </head> <body topmargin="5" bgcolor="#E6E4C4"> <diiv align="center"><center> <table width="100%" border="0" class="table1" bordercolor="#62ACFF" cellspacing="0" class=Main1> <tr> <td width="80%" valign="top"> <p align="center" class=Main1><%=Head%></p> <p align="center"> <br><input type="button" value="關閉" name="B2" onclick="window.close() " style="font-size: 9pt"></td> </tr> </table> </center></div> </body> </html>
標簽: lt LANGUAGE VBSCRIPT include
上傳時間: 2015-11-05
上傳用戶:zhaoq123
實用的簡繁體中文轉換成拼音全拼Java類,可以轉換GBK字符集中的所有漢字,使用非常簡單,只需按照Main()函數中的測試例子調用即可。目前,對于多音字的處理還有待完善。
上傳時間: 2013-12-17
上傳用戶:asdkin
FPgrowth的java算法,該算法主要是寫出了各個的功能函數,需自己寫Main()函數
上傳時間: 2014-01-05
上傳用戶:zhaoq123
UCOS/II for ICCAVR - The version of UCOS/II is 2.04 - the original port was done by Ole Saether for the IAR compiler. Jens E. Holtegaard ported one version using ICCAVR. Joerg Meyer did another port (using Jens port as a start?). This is basically Joerg s port plus a little bit of changes and documentation by me. - YOU MUST DOWNLOAD THE Main PART OF THE UCOS/II FROM THE UCOS/II WEBSITE http://www.ucos-ii.com . The supplied project file assumes the portable source is in the ..\source directory. - Joerg has written couple document showing the stack frames etc. but it is in German :-) They are included in this directory. - The Timer2 overflow interrupt is used for Timer Tick. If you want to change that, modify os_cpu_c.c and os_cpu_a.s - I have tested this using ATMega103 with and without external RAM using AVR Studio simulator. See test1.c test program. Both Code Compressed (PRO) and STD versions have been tested.
標簽: UCOS original Saether version
上傳時間: 2015-11-14
上傳用戶:ippler8
This document provides guidelines for integrating a discrete high speed USB host controller onto a fourlayer desktop motherboard. The material covered can be broken into three Main categories: Board design guidelines, EMI/ESD guidelines and front panel USB guidelines. Section 1.1 Background provides an explanation of the routing experiments and testing performed to validate the feasibility of 480 Megabits per second on an actual motherboard. Section 7 contains a design checklist that lists each design recommendation described in this document. High speed USB operation is described in the USB 2.0 Specification (http://www.usb.org/developers/docs.html).
標簽: integrating controller guidelines document
上傳時間: 2013-11-27
上傳用戶:電子世界
This document provides guidelines for integrating a discrete high speed USB host controller onto a fourlayer desktop motherboard. The material covered can be broken into three Main categories: Board design guidelines, EMI/ESD guidelines and front panel USB guidelines. Section 1.1 Background provides an explanation of the routing experiments and testing performed to validate the feasibility of 480 Megabits per second on an actual motherboard. Section 7 contains a design checklist that lists each design recommendation described in this document. High speed USB operation is described in the USB 2.0 Specification (http://www.usb.org/developers/docs.html).
標簽: integrating controller guidelines document
上傳時間: 2015-11-18
上傳用戶:xhz1993
1設計題目及要求 一、程序設計題目:學生成績管理程序設計 二、 程序設計功能及要求: 1.顯示學生各門成績,總分,和平均分. 2.按總分由高到的進行排列. 3.要求輸入一個學號.要求能找出一個學生的.姓名.各門功課的成績. 3 算法分析 1. 學生成績管理軟件的數據結構 2. 排序 3. 查找 4. 其它 4 主要流程圖 1寫程序結構及各模塊(輸入,顯示等等)結構圖 本程序用了c++語言里面的思想,比如用了cin 和 cout 函數.分了倆個類.一個是File類.一個是Link類. File類里面主要的是用于保存和導入數據. Link類主要是用于鏈表的操作…. 本程序分為幾個文件編寫有.file.cpp文件和file.h文件 Link.cpp文件和Link.h文件 manager..cpp文件和manager.h文件. 本程序的主體結構是鏈表.用鏈表操作.實現動態創建和銷毀. 主函數Main().是在Manger.cpp 里面.是程序的入口處 File.cpp 和 link.cpp 是存放file類.和 link類的源函數變量代碼. File.h 和Link.h 是存放file 類 和link 類的聲明
上傳時間: 2014-01-17
上傳用戶:古谷仁美
rs碼代碼,別人給我的,不過看不懂,Main函數太多
標簽: 代碼
上傳時間: 2014-01-18
上傳用戶:lo25643