排序算法、字典和B-樹的C++語言實現 代碼內容 包括以下算法: qui.c sort: quicksort qsort.c sort: qsort ins.c sort: insert sort shl.c sort: shell sort has.c dictionary: hash tables bin.c dictionary: binary tree rbt.c dictionary: red-black trees skl.c dictionary: skip lists ext.c external sort btr.c btree 語言 C++ 編譯平臺 Visual C++ 作者 Thomas Niemann 備注 來自Sorting and Searching Algorithms:A Cookbook
標簽: sort qsort quicksort insert
上傳時間: 2013-12-15
上傳用戶:silenthink
【問題描述】已知線性方程組AX=B,求解該方程組。參考算法: 消去法:將列向量B加到矩陣A的最后一列,構成增廣矩陣AB。對AB進行下列三種初等變換,使原矩陣A的部分的主對角線上的元素均為1,其余元素均為0,則原列向量B的部分即為X的值: 1. 將矩陣的一行乘以一個不為0的數 2. 將矩陣的一行加上另一行的倍數 3. 交換矩陣中兩行的位置
上傳時間: 2015-06-18
上傳用戶:stvnash
原文書名: 《Writing Clean Code ── Microsoft Techniques for Developing Bug-free C Programs》 Steve maguire 著 Microsoft Press 出版 所據譯本: 《編程精粹 ── Microsoft 編寫優質無錯C 程序秘訣》 姜靜波、佟金榮 譯,麥中凡 校 電子工業出版社 出版 整理: Solmyr:序、某些背景、命名約定、引言、第1、2、3、8 章、后記、參考文獻 iliad: 第4、5 章 lavos: 第6 章、附錄A warz: 第7 章 chief: 附錄B、C
標簽: Developing Techniques Microsoft Bug-free
上傳時間: 2013-11-25
上傳用戶:stampede
剖析Intel IA32 架構下C 語言及CPU 浮點數機制 Version 0.01 哈爾濱工業大學 謝煜波 (email: xieyubo@126.com 網址:http://purec.binghua.com) (QQ:13916830 哈工大紫丁香BBSID:iamxiaohan) 前言 這兩天翻看一本C 語言書的時候,發現上面有一段這樣寫到 例:將同一實型數分別賦值給單精度實型和雙精度實型,然后打印輸出。 #include <stdio.h> main() { float a double b a = 123456.789e4 b = 123456.789e4 printf(“%f\n%f\n”,a,b) } 運行結果如下:
標簽: Version xieyubo Intel email
上傳時間: 2013-12-25
上傳用戶:徐孺
本書第一部分講述的是傳統的網絡接口N e t B I O S、重定向器以及通過重定向器進行的各類 網絡通信。盡管本書大部分內容均圍繞Wi n s o c k編程這一主題展開,但是, A P I比起Wi n s o c k 來,仍然具有某些獨到之處
上傳時間: 2015-07-08
上傳用戶:戀天使569
Program to simulate Rayleigh fading using a p-th order autoregressive model AR(p) according to % Baddour s work: "Autoregressive modeling for fading channel simulation"
標簽: autoregressive according simulate Rayleigh
上傳時間: 2013-12-02
上傳用戶:tb_6877751
1、 了解系統調用fork()、execl()、exit()、getpid()和waitpid()的功能和實現過程 2、 編寫一段程序實現以下功能: a) 使用系統調用fork()創建兩個子進程 b) 父進程重復顯示字符串”parent:”,并使用函數getpid()顯示自己的進程ID。 c) 兩個子進程分別重復顯示字符串”child:”,并使用函數getpid()顯示自己的進程ID 3、 編寫一段程序實現以下功能: a) 使用系統調用fork()創建一個子進程 b) 子進程顯示自己的進程ID和字符串": The child is calling an exec.\n",然后通過execl()調用系統命令ps顯示當前運行的進程情況,從而更換自己的執行代碼,最后調用exit()結束。 c) 父進程顯示自己的進程ID和字符串” ": The parent is waiting for child to exit.\n ",然后調用waitpid()等待子進程結束,并在子進程結束后顯示”The parent exit.\n
上傳時間: 2013-12-18
上傳用戶:葉山豪
This section contains a brief introduction to the C language. It is intended as a tutorial on the language, and aims at getting a reader new to C started as quickly as possible. It is certainly not intended as a substitute for any of the numerous textbooks on C. 2. write a recursive function FIB (n) to find out the nth element in theFibanocci sequence number which is 1,1,2,3,5,8,13,21,34,55,…3. write the prefix and postfix form of the following infix expressiona + b – c / d + e * f – g * h / i ^ j4. write a function to count the number of nodes in a binary tr
標簽: introduction the contains intended
上傳時間: 2013-12-23
上傳用戶:liansi
Implemented BFS, DFS and A* To compile this project, use the following command: g++ -o search main.cpp Then you can run it: ./search The input is loaded from a input file in.txt Here is the format of the input file: The first line of the input file shoud contain two chars indicate the source and destination city for breadth first and depth first algorithm. The second line of input file shoud be an integer m indicate the number of connections for the map. Following m lines describe the map, each line represents to one connection in this form: dist city1 city2, which means there is a connection between city1 and city2 with the distance dist. The following input are for A* The following line contains two chars indicate the source and destination city for A* algorithm. Then there is an integer h indicate the number of heuristic. The following h lines is in the form: city dist which means the straight-line distance from the city to B is dist.
標簽: Implemented following compile command
上傳時間: 2014-01-01
上傳用戶:lhc9102
OpenSG is a scenegraph system for realtime rendering, e.g. for Virtual Reality applications. It is just a library, not a full application. This documentation contains descriptions of the internal classes and concepts, as well as a tutorial that explains how to use the system.
標簽: e.g. applications scenegraph for
上傳時間: 2015-09-13
上傳用戶:bruce