C/C++
文章平均质量分 78
williamcs
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
QuickSort two way, three way partition and many other implementations
Quicksort is so famous which was honored as one of the top 10 algorithms of 20th century in science and engineer. It is use the divide and conquer strategy. Divde the array into two subarray and recu原创 2013-01-08 15:19:26 · 3656 阅读 · 0 评论 -
Parallel array summation
C++ code: #include #include #include #define NUM_THREADS 4 int N; int *X; int gSum[NUM_THREADS]; //pthread_mutex_t sum_mutex = PTHREAD_MUTEX_INITIALIZER; // do sum void *summation(void *p原创 2013-02-13 21:45:49 · 552 阅读 · 0 评论 -
k Means clustering c++ implementation
KMeans is very common unsupervised learning algorithms, below is the algorithm. c++ implementation: #include #include #include #include #include using namespace std; // get the all the li原创 2014-01-03 18:25:02 · 1618 阅读 · 0 评论 -
Higher order functions
Higher order function is great concept in原创 2014-06-27 17:47:08 · 721 阅读 · 0 评论 -
Lowest common ancestor in binary search tree
This is a very common question原创 2014-09-01 16:20:40 · 549 阅读 · 0 评论
分享