会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
闲来敲敲代码......
Click me!
有容乃大:好读书不求甚解
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
下一页
2014年9月13日
主方法
摘要: 设a>=1和b>1为常数,设f(n)为一函数,T(n)由递归式T(n)=aT(n/b)+f(n);对于非负整数定义,其中n/b指n/b上区间和下区间。那么T(n)可能有如下渐近界:1)若对于某常数e>0.f(n)=O(n^(logb(a)-e)),则T(n)=Q(n^logba);2)若f(n)=Q...
阅读全文
posted @ 2014-09-13 10:03 森语音
阅读(205)
评论(0)
推荐(0)
2014年6月21日
windows系统调用 遍历进程的虚拟地址
摘要: 1 #include "iostream" 2 #include "windows.h" 3 #include "shlwapi.h" 4 #include "iomanip" 5 #pragma comment(lib,"shlwapi.lib") 6 using namespac...
阅读全文
posted @ 2014-06-21 16:02 森语音
阅读(693)
评论(0)
推荐(0)
算法导论三剑客之 动态规划 01背包问题
摘要: 1 #include "iostream" 2 using namespace std; 3 4 float MAX(float m1,float m2){ 5 if(m1>=m2) 6 return m1; 7 else 8 return m2;...
阅读全文
posted @ 2014-06-21 06:58 森语音
阅读(311)
评论(0)
推荐(0)
2014年6月20日
windows系统调用 获取当前内存信息
摘要: 1 #include "iostream" 2 #include "windows.h" 3 #include "shlwapi.h" 4 #include "iomanip" 5 #pragma comment(lib,"shlwapi.lib") 6 using namespace std;...
阅读全文
posted @ 2014-06-20 10:10 森语音
阅读(1156)
评论(0)
推荐(0)
2014年6月17日
windows系统调用 semaphore信号量
摘要: 1 #include "iostream" 2 #include "windows.h" 3 #include "cstring" 4 using namespace std; 5 6 HANDLE g_hSemThreads=INVALID_HANDLE_VALUE; 7 8 static ...
阅读全文
posted @ 2014-06-17 08:01 森语音
阅读(1484)
评论(0)
推荐(0)
2014年6月16日
windows系统调用 临界区机制
摘要: 1 #include "iostream" 2 #include "windows.h" 3 #include "cstring" 4 using namespace std; 5 6 7 static int g_nIndex=0; 8 const int MAX_TIMES=10; 9 s...
阅读全文
posted @ 2014-06-16 19:55 森语音
阅读(297)
评论(0)
推荐(0)
算法导论三剑客之 分治算法 合并排序
摘要: 1 #include "iostream" 2 #include "windows.h" 3 #define MAX 0x7fffffff 4 using namespace std; 5 6 void merge(int s,int q,int e,int A[]){ 7 int i,...
阅读全文
posted @ 2014-06-16 07:23 森语音
阅读(259)
评论(0)
推荐(0)
2014年6月15日
windows系统调用 互斥体mutex
摘要: 1 #include "iostream" 2 #include "windows.h" 3 using namespace std; 4 5 class CCountUpDown{ 6 public: 7 CCountUpDown(int nAccesses): 8 m_hTh...
阅读全文
posted @ 2014-06-15 08:14 森语音
阅读(1675)
评论(0)
推荐(0)
2014年6月13日
windows系统调用 利用事件对象实现进程通信
摘要: 1 #include "iostream" 2 #include "windows.h" 3 #include "cstring" 4 using namespace std; 5 6 static LPCTSTR g_szContinueEvent="w2kdg.EventDemo.event...
阅读全文
posted @ 2014-06-13 19:03 森语音
阅读(713)
评论(0)
推荐(0)
2014年6月12日
windows系统调用 调度优先级
摘要: 1 #include "iostream" 2 #include "windows.h" 3 using namespace std; 4 5 class CWorkerThread{ 6 public: 7 CWorkerThread(LPCTSTR m_szName):m_szNam...
阅读全文
posted @ 2014-06-12 18:29 森语音
阅读(236)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页