圖的深度遍歷,輸出結(jié)果為(紅色為鍵盤輸入的數(shù)據(jù),權(quán)值都置為1): 輸入頂點(diǎn)數(shù)和弧數(shù):8 9 輸入8個(gè)頂點(diǎn). 輸入頂點(diǎn)0:a 輸入頂點(diǎn)1:b 輸入頂點(diǎn)2:c 輸入頂點(diǎn)3:d 輸入頂點(diǎn)4:e 輸入頂點(diǎn)5:f 輸入頂點(diǎn)6:g 輸入頂點(diǎn)7:h 輸入9條弧. 輸入弧0:a b 1 輸入弧1:b d 1 輸入弧2:b e 1 輸入弧3:d h 1 輸入弧4:e h 1 輸入弧5:a c 1 輸入弧6:c f 1 輸入弧7:c g 1 輸入弧8:f g 1 深度優(yōu)先遍歷: a b d h e c f g 程序結(jié)束.
標(biāo)簽:
上傳時(shí)間: 2016-04-04
上傳用戶:lht618
Enclosed in this distribution are four projects: MD5DLLTest: Visual basic project which runs the MD5 test suite against a MD5 DLL (see below). VbMD5: A Visual Basic native MD5 message digest class based on the RSA reference implementation. md5DLL: A C project which generates a simple Win32 DLL with the MD5 message digest routines using the RSA reference implementation. MD5Java: A Java implementation of the MD5 message digest algorithm based on the RSA reference implmentation. Let me know if this has any use! Robert M. Hubley hubley@u.washington.edu
標(biāo)簽: distribution MD5DLLTest Enclosed projects
上傳時(shí)間: 2016-06-08
上傳用戶:com1com2
0-1背包問(wèn)題(0-1 Knapsack Problem)的定義為:設(shè)集合 代表m件物品,正整數(shù) 分別表示第 件物品的價(jià)值與重量,那么0-1背包問(wèn)題KNAP(A,c)定義為,求A的子集,使得重量之和小于背包的容量c,并使得價(jià)值和最大。
標(biāo)簽: Knapsack Problem 背包問(wèn)題 定義
上傳時(shí)間: 2013-11-27
上傳用戶:yy541071797
This book is for you if You re no "dummy," and you need to get quickly up to speed in intermediate to advanced C++ You ve had some experience in C++ programming, but reading intermediate and advanced C++ books is slow-going You ve had an introductory C++ course, but you ve found that you still can t follow your colleagues when they re describing their C++ designs and code You re an experienced C or Java programmer, but you don t yet have the experience to develop nuanced C++ code and designs You re a C++ expert, and you re looking for an alternative to answering the same questions from your less-experienced colleagues over and over again C++ Common Knowledge covers essential but commonly misunderstood topics in C++ programming and design while filtering out needless complexity in the discussion of each topic. What remains is a clear distillation of the essentials required for production C++ programming, presented in the author s trademark incisive, engaging style.
標(biāo)簽: intermediate you quickly dummy
上傳時(shí)間: 2014-01-09
上傳用戶:wpwpwlxwlx
一個(gè)基于GTK+的單詞數(shù)值計(jì)算器,1、 按照規(guī)則計(jì)算單詞的值,如果 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 26個(gè)字母(全部用大寫(xiě))的值分別為 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26,如: WINJACK這個(gè)單詞的值就為:W+I+N+J+A+C+K=23+9+14+1+3+11=71% HARDWORK=H+A+R+D+W+O+R+D=8+1+18+4+23+15+18+11=98% LOVE=L+O+V+E=12+15+22+5=54% LUCK=L+U+C+K=12+21+3+11=47% ATTITUDE= A+T+T+I+T+U+D+E=1+20+20+9+20+24+4+5=100% 2、對(duì)程序的界面布局參考如下圖所示,在第一個(gè)單行文本框輸入一個(gè)單詞,點(diǎn)擊“計(jì)算”按鈕,按照以上算法計(jì)算出該單詞的值。 3、如果在最下面的單行文本框輸入一個(gè)文件路徑,此文件每行記錄一個(gè)單詞,那么經(jīng)過(guò)程序計(jì)算出各個(gè)單詞的值,并把結(jié)果輸出到當(dāng)前目錄下result.txt文件中。如果文件不存在,應(yīng)該提示錯(cuò)誤。
上傳時(shí)間: 2014-01-11
上傳用戶:康郎
漢諾塔!!! Simulate the movement of the Towers of Hanoi puzzle Bonus is possible for using animation eg. if n = 2 A→B A→C B→C if n = 3 A→C A→B C→B A→C B→A B→C A→C
標(biāo)簽: the animation Simulate movement
上傳時(shí)間: 2017-02-11
上傳用戶:waizhang
一道程序編譯順序的考題,涉及到函數(shù)調(diào)用的先后順序及運(yùn)算符號(hào)的優(yōu)先級(jí)等問(wèn)題。下面我展開(kāi)給你講。 C的程序編譯總是從main函數(shù)開(kāi)始的,這道題的重點(diǎn)在“fun((int)fun(a+c,b),A-C)) ”語(yǔ)句。 系統(tǒng)首先要確定最外層 fun()函數(shù)的實(shí)參,第一個(gè)參數(shù)的確定需要遞歸調(diào)用fun()函數(shù)(不妨稱其為內(nèi)層函數(shù))。內(nèi)層函數(shù)的兩個(gè)參數(shù)分別為x=a+b=2+8=10、y=b=5,執(zhí)行函數(shù)體x+y=10+5=15,于是得外層函數(shù)的參數(shù)x=15。其另一個(gè)參數(shù)y=A-C=2-b=-6,再次執(zhí)行函數(shù)體,得最終返回值x+y=15+(-6)=9。
標(biāo)簽: 程序編譯
上傳時(shí)間: 2014-12-03
上傳用戶:徐孺
Asp.Net探針0.90源碼(Asp.net2.0版) 探測(cè)信息如下: 服務(wù)器計(jì)算機(jī)名 http://localhost/ 服務(wù)器IP地址 127.0.0.1 服務(wù)器域名 localhost 服務(wù)器端口 80 服務(wù)器IIS版本 Microsoft-IIS/6.0 本文件所在文件夾 E:\downCode\ServerInfo\ 服務(wù)器操作系統(tǒng) Microsoft Windows NT 5.2.3790 Service Pack 1 系統(tǒng)所在文件夾 C:\WINDOWS\system32 服務(wù)器腳本超時(shí)時(shí)間 30000秒 服務(wù)器的語(yǔ)言種類 Chinese (People s Republic of China) .NET Framework 版本 2.050727.42 服務(wù)器當(dāng)前時(shí)間 2007-5-25 9:18:18 服務(wù)器IE版本 7.0000 服務(wù)器上次啟動(dòng)到現(xiàn)在已運(yùn)行 51分鐘 邏輯驅(qū)動(dòng)器 A:\C:\D:\E:\F:\G:\H:\I:\ CPU 總數(shù) 2 CPU 類型 x86 Family 15 Model 3 Stepping 4, GenuineIntel 虛擬內(nèi)存 61776M 當(dāng)前程序占用內(nèi)存 6.03M Asp.net所占內(nèi)存 60.48M Asp.net所占CPU 4 當(dāng)前Session數(shù)量 0 當(dāng)前SessionID t4at4w45uh5pr455cq42gq55 當(dāng)前系統(tǒng)用戶名 NETWORK SERVICE 注意:當(dāng)前版本只支持Asp.net2.0環(huán)境
標(biāo)簽: Asp localhost 0.90 http
上傳時(shí)間: 2013-12-30
上傳用戶:evil
第二章 解線性方程組的直接法 第三章 解線性方程的迭代法 第四章 插值法 第五章 數(shù)據(jù)擬合 第六章 數(shù)值微分和積分 第七章 矩陣特征值問(wèn)題 第八章 非線性方程數(shù)值解法 第九章 非線性方程組的撫今迭代解法 第十章 常微分方程初值問(wèn)題的數(shù)值解法 第十一章 常微分方程邊值問(wèn)題的數(shù)值解法 附錄A C語(yǔ)言屏幕繪圖
上傳時(shí)間: 2013-12-08
上傳用戶:磊子226
本論文研究了開(kāi)源路由器的實(shí)現(xiàn)方法,通過(guò)具體的實(shí)驗(yàn)在X O R P 上實(shí)現(xiàn)了R I P , O S P F , B G P 等一系列協(xié)議,在P A C K E T T R A C E R 上進(jìn)行了仿真,并對(duì)開(kāi)源路由器進(jìn)行了性能評(píng)價(jià)。
標(biāo)簽: 開(kāi)源路由器
上傳時(shí)間: 2015-02-21
上傳用戶:13666909595
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1