摘要:
#include <iostream>#include <cstdio> using namespace std; void traceBack(int i, int j, int **s){ if(i==j) //the function is used to record the optimal 阅读全文
摘要:
// 用分治法求众数 //参考:http://blog.csdn.net/core__code/article/details/47385045 #include #include using namespace std; void split(int s[], int n, int &l, int &r) //here should have a low limit, becau... 阅读全文
摘要:
1 #include 2 #include 3 #include 4 using namespace std; 5 6 void mergeLocal(int arr[], int low, int middle, int high) 7 { 8 int i, j, k; //i and j respectively represent the current ... 阅读全文
摘要:
#include #include #include using namespace std; void QSort(int a[], int low, int high) { if(low>=high) //关于这个终止条件, 在下边处理后,low可能会大于或等于high { return; } int first = low; int last = high; int key = a... 阅读全文
摘要:
#include using namespace std; void QSort(int a[], int low, int high) { if(low>=high) //关于这个终止条件, 在下边处理后,low可能会大于或等于high { return; } int first = low; int last = high; ... 阅读全文
摘要:
the source of the article:https://github.com/Fibird/Round-robin-schedule #include <iostream>#include <math.h> #define N 3 using namespace std; int mai 阅读全文
摘要:
#include <iostream>#include <string>#include <list> //we use the list container , because it is easy to sort and get the biggest number and smallest n 阅读全文