原创 列出所有排列(字典順序)

  #include <stdio.h> #include <stdlib.h> #define  LOOP         1 #define 

原创 各種資源網址

結構之法、算法之道:http://blog.csdn.net/v_JULY_v 點贊 收藏 分享 文

原创 堆排序

 #include<iostream> using namespace std; void adjustHeap(int *a,int i,int

原创 快速排序

  #include<iostream> using namespace std; int part(int *a,int l,int r) {  

原创 列出所有子集(二進制遞增方式)

  #include  <stdio.h> #include  <stdlib.h> #define   MAXSIZE   20 #define

原创 列出所有子集(字典順序)

  #include  <stdio.h> #include  <stdlib.h> #define   MAXSIZE      20 #def

原创 安裝pthread的manpages(man 手冊)ubuntu 10.04

   由於學習多線程編程,所以用到pthread,但是man的時候卻發現沒有pthread函數庫的手冊頁,然後安裝 $sudo apt-get in

原创 希爾排序

  #include<iostream> using namespace std; void Shell(int a[],int n)  //She

原创 路由軟件Quagga安裝教程

  Quagga是一款功能比較強大的開源路由軟件,支持rip,ripng,ospfv2,ospfv3,bgp等協議。目前最新版本爲Quagga 0

原创 列出所有排列(旋轉法)

  #include  <stdio.h> #include  <stdlib.h> #define   MAXSIZE   20 #define

原创 匈牙利算法

 匈牙利算法: 格式說明 輸入格式: 第1行3個整數,V1,V2的節點數目n1,n2,G的邊數m 第2-m+1行,每行兩個整數t1,t2,代表V1中

原创 歸併排序

 #include<iostream> using namespace std; int b[1000]; void merge(int *a,in

原创 列出所有子集(格雷碼順序)

  #include  <stdio.h> #include  <stdlib.h> #define   MAXSIZE         20 #

原创 硬盤資料與知識大全

【硬盤資料與知識大全】 目錄: 一:淺談硬盤發展史                                                 二:硬盤“空間”與“文件大小”祕密           

原创 字符串匹配(模式匹配)KMP BM

 text字符串中找到pat模式串。 //KMP算法 #include  <string.h>    void setup(char pat[], int fail[]) {      int  length = strlen(pat);