摘要:
據說小学生几秒就做出;高中生几分钟;大学生半小时以上;博士可能要一辈子......What takes an elementary school student just seconds to do; takes a high school student several minutes; take... 阅读全文
摘要:
/* * remember the 100-steps ladder at the university of my graduation. * it's an unforgotable place. * these steps in hurry to another classroom, * sometimes one by one step, sometimes three into two steps and even one step. * nerver thoungh of the process thought the ladder. How may ways to pas 阅读全文
摘要:
WPA implements a new key handshake (4-Way Handshake and Group Key Handshake) for generating and exchanging data encryption keys between the Authenticator and Supplicant. This handshake is also used to verify that both Authenticator and Supplicant know the master session key. These handshakes are ide 阅读全文
摘要:
OCS Inventory-NG(Open Computer and Software Inventory Next Generation)是一款开源的用于帮助网络或系统管理员来跟踪网络中计算机配置与软件安装情况的应用程序。相關資料:http://www.ocsinventory-ng.org/en/http://en.wikipedia.org/wiki/OCS_Inventoryhttp://viong.blog.51cto.com/844766/503463/http://linux.chinaunix.net/techdoc/system/2008/11/28/1048784.shtm 阅读全文
摘要:
The FBI has surrounded the headquarters of the Norne corporation. There are n people in the building. Each person is either an engineer or a manager. All computer files have been deleted, and all documents have been shredded by the managers. The problem confronting the FBI interrogation team is to s 阅读全文
摘要:
c/c++ 在 main 函數之前和之後發生的那些事。#include <stdio.h>#include <stdlib.h>#include <iostream>void foo(){ printf("call back atexit, C can do it after main.\n");}int bar(){ printf("global variable initialized, C can do it before main.\n"); atexit(foo); return 0;}int x = bar 阅读全文
摘要:
/* * 返回数组A[p...r]中第i个小的元素, O(n), * 使用快速排序的思想。 * */int randomized_select(int A[], int p, int r, int i){ if (p==r) return A[p]; int q = randomized_partition(A, p, r); int k = q-p+1; if (i<=k) return randomized_select(A, p, q, i); else return randomized_select(A, q+1, r, i-... 阅读全文
摘要:
meta function,boost mpl,boost::common_factor库,compile time:template <unsigned int x, unsigned int y, bool is_ordered = (x >= y)>struct static_gcd{ static int const value = static_gcd<y, x % y>::value;};template <unsigned int x, unsigned int y>struct static_gcd<x, y, false> 阅读全文