s1.c是server,c.c是client, server負責接收client傳的數字進行運算並回傳,運用了同步的機制。編譯須加 -lsocket -lpthread -lrt
標簽: server
上傳時間: 2014-01-02
上傳用戶:athjac
功能:編寫的計算皮亞諾相關系數 開發語言:ruby 調用:correlate(x,y) 其中,x,y為需要計算相關度的向量 調用示例: a = [3, 6, 9, 12, 15, 18, 21] b = [1.1, 2.1, 3.4, 4.8, 5.6] c = [1.9, 1.0, 3.9, 3.1, 6.9] c1 = correlate(a,a) # 1.0 c2 = correlate(a,a.reverse) # -1.0 c3 = correlate(b,c) # 0.8221970228 puts c1#,c2,c3
上傳時間: 2013-12-18
上傳用戶:skfreeman
摘 要 1 前 言 2 正 文 4 1. 采用類C語言定義相關的數據類型 4 2. 各模塊的偽碼算法 5 3. 函數的調用關系圖 7 4. 調試分析 8 5. 測試結果 9 6. 源程序(帶注釋) 10 總結 29 參考文獻 30 致謝 31 摘 要 哈夫曼編碼(Huffman Coding)是一種編碼方式,以哈夫曼樹—即最優二叉樹,帶權路徑長度最小的二叉樹,經常應用于數據壓縮。在計算機信息處理中,“哈夫曼編碼”是一種一致性編碼法(又稱"熵編碼法"),用于數據的無損耗壓縮。這一術語是指使用一張特殊的編碼表將源字符(例如某文件中的一個符號)進行編碼。 關鍵詞:哈夫曼;編碼;譯碼,通信
上傳時間: 2013-12-19
上傳用戶:kristycreasy
這是一個用C++實現的0/1背包問題,它是用貪心法實現的。
標簽: 背包問題
上傳時間: 2016-03-16
上傳用戶:Zxcvbnm
冒泡法是數據排序的一種基本算法,它的基本方法是:相鄰兩元素進行比較,如有需要則進行交換, 每完成一次循環就將最小元素排在最后(如從大到小排序),下一次循環是將其他的數進行類似操作? 如將N 個數按從大到小排序,Turbo C語言程序函數
上傳時間: 2016-03-20
上傳用戶:趙云興
鮑威爾法無約束優化程序,程序用在vc6.00++環境用c語言編寫絕對好用!
標簽: 程序
上傳時間: 2016-03-21
上傳用戶:Altman
用C實現多級反饋調度算法。在隊列中使用FCFS,隊列間使用時間片法
上傳時間: 2016-03-23
上傳用戶:Ants
C#平臺下的隨機一致性指標RI計算,主要是對大學數學建模層次分析法章節RI計算部分內容的實現。
上傳時間: 2016-03-23
上傳用戶:csgcd001
C語言精彩百例第71-93例 第三篇 常用算法篇 實例71 鏈表的建立 實例72 鏈表的基本操作 實例73 隊列的應用 實例74 堆棧的應用 實例75 串的應用 實???76 樹的基本操作 實例77 冒泡排序法 實例78 堆排序 實例79 歸并排序 實例80 磁盤文件排序 實例81 順序查找 實例82 二分法查找 實例83 樹的動態查找 實例84 二分法求解方程 實例85 牛頓迭代法求解方程 實例86 弦截法求解方程 實例87 拉格朗日插值 實例88 最小二乘法擬合 實例89 辛普生數值積分 實例90 改進歐拉法 實例91 龍格-庫塔法 實例92 高斯消去法 實例93 正定矩陣求逆
上傳時間: 2016-03-24
上傳用戶:thinode
Intro/: Directory containing introductory examples. HelloWorld.c A simple program that draws a box and writes "Hello World" in HelloWorld.f it. data The data file for the introductory progressive example. Lines.c Reads the data from file "data" and plots just the curve with Lines.f no labels, viewport or anything indicating quantity or units. Viewport.c Restricts the graph to a viewport and frames the viewport, Viewport.f leaving the remainder of the area for labels, etc. CharLbls.c Adds labels for the chart title, X-axis title, and Y-axis CharLbls.f title. Tics.c Adds tic marks to the viewport edges, but since clipping was Tics.f not set correctly, tics extend outside the viewport. Clip.c Sets clipping such that tic marks are clipped at the viewport Clip.f boundaries. TicLabels.c Adds numeric tic labels to the graph this is the final TicLabels.f installment of the progressive example.
標簽: introductory HelloWorld containing Directory
上傳時間: 2016-03-29
上傳用戶:exxxds