¹æ·¶»¯µÄC++±à³Ì·½·¨±¸Íü¼ C/C++ËãÊýÔËË㣺
ÒѾ֪µÀµÄ£¬²»ËµÁË...´ó¼Ò¶¼ÖªµÀµÄ£¬¿ÉÒÔÎÊÎÊ£¬²é²é×ÊÁÏ¡£ÕâÀïÓÖ·ÅЩ¸½¼Ó½¨Ò飺
1.»ù±¾ËãÊýÔËË㣺
¼ÈÈ»¼ÆËã»úÀïûÓÐÕæÕýµÄÕûÊý£¬ÄÇô¼ÆËã»úÀïҲûÓÐÕæÕýµÄËãÊýÔËËã¡£
È¡Öµ·¶Î§£º
ÉèaºÍbÊÇÁ½¸öÕ¼Ò»Ñùλ¿íµÄÎÞ·ûºÅÕûÊý£¬ÕâÖÖÕûÊý¿ÉÈ¡µ½×î´óÖµMAX£º
Èç¹ûf1ΪһԪÔËË㣬f2Ϊ¶þÔªÔËË㣬ÔòÏȽ«¼ÆËã»úÖеÄÕûÊýºÍÔËËãÀ©Õ¹µ½ {0}UZ+ Óò
ÓÐ
f1(a) = fz1(az) % MAXz,
f2(a, b) = fz2(az, bz) % MAXz.
ÆäÖÐMAXz=R(MAX) + 1.
ÕâЩ¶«Î÷¼ÆËã»úϵµÄÓ¦¸ÃÖªµÀµÄÀ²¡£¼´“ÓÐÒç³ö¿ÉÄܵÄÔËËã”»òÓÐÇîÓòµÄÈ¡ÖµÎÊÌâ
»¹ÓÐÒþʽת»»¡¢Ç¿ÖÆÀàÐÍת»»µÈ¡£ÒòΪ¿É²é£¬ÂÔ¹ý¡£
Êéд´úÂëʱºÜ¶àÊéÀィÒé......£¨ÕâÀïÖ÷Ҫ̸À¨ºÅµÄÎÊÌ⣩¡£¶ÔÓÚĬÈÏ˳Ðò£¬¸öÈËÈÏΪÓÐЩ½¨ÒéûÓбØÒª£º
ÒÑÖªµÄÏȳ˳ý£¬ºó¼Ó¼õ£»ÏÈËãÊý£¬ºóÂß¼¡£³õÖС¢¸ßÖеĶ«Î÷¡£ºÜ¶à½¨Ò齫ËãÊý¼ÓÀ¨ºÅ£¬¶à´ËÒ»¾Ù¡£×Ô¼º¸Ã²¹¿ÎÈ¥¡£µ«Èç¹û´úÂëºÜ³¤ÄǾÍÊÇÁíÍâÒ»»ØÊÂÁË¡£»¹ÓУ¬Î»ÔËËãÒ»¶¨Òª¼ÓÀ¨ºÅ¡£ÒòΪËüÃDz»ÊÇ»ù±¾´úÊýÔËËã¡£
¼Ó¡¢³Ë¡¢Óë¡¢»òÔËËãÒ²²»Âú×ã½»»»ÂÊ£¨ÓÈÆäÊǶÔÆäËûÏß³ÌÊý¾ÝµÄ¶ÁдÔËË㣩¡£
Èç¹ûijһС¿é´úÂëÇøÓò¼¯ÖÐÁË´óÁ¿µÄ´úÊýÔËË㣬¶øÉÏÃæÕâÀàÎÊÌâ¶Ô½á¹ûÓкܴóÓ°Ï죬½¨ÒéÓÃÀཫÕûÊý°üװһϣ¨µ«²»ÒªÌ«¸´ÔÓ£¬Ó°ÏìÐÔÄÜ£©£¬ÒÔ±ãÄÜÕýÈ·µØ´¦Àí½øλ½Ø¶ÏÎÊÌâ¡£
Èç¹û±í´ïʽÖÐÓг¬¹ýÒ»´¦Ê¹ÓÃͬһ±äÁ¿£¬¸Ã±äÁ¿ÊÇͬʱ±»¶à¸öÏ̴߳洢µÄ£¬ÒªÓñ¾µØÁÙʱ±äÁ¿¿½±´È¡´ú±í´ïʽÀïËùÓеÄÄǸö±äÁ¿£¬ÒÔ±ÜÃâ¼ÆËã³öĪÃûÆäÃîµÄÖµ¡£¼Çס²»ÒªÒÀÀµ±àÒëÆ÷ÓÅ»¯»úÖƵÄÒþº¬Ð޸ġ£
2.±È½ÏÔËË㣺
- ±È½Ï·ûºÅµÄ×óÓÒÁ½±ßÊý¾ÝÀàÐͱØÐëÏàͬ¡£Èç¹û²»Í¬£¬´úÂëÕÕ³£±àÒëͨ¹ý¡£µ«ÊÇÊý¾ÝÀàÐÍÒ»¶¨ÊÇÏàµÈµÄ£¬Ö»ÊÇͨ¹ýÁËÒþʽת»»£¬ÕâÖÖת»»ÓÐʱ»áÈÃÄãÔε¹...
ÕýÈ·µÄ´úÂë
ÒýÓÃ:
WORD a, b, c
...
if((WORD)(a+b) >= c) // Never thought that '(WORD)()' be unnecessary.
...
- ±È½Ï±ØÐëÍêÕû£¬²»
Ïà¹ØÎĵµ£º
http://www.trendcaller.com/2009/05/hadoop-should-target-cllvm-not-java.html
Sunday, May 10, 2009
Hadoop should target C++/LLVM, not Java (because of watts)
< type="text/javascript">
digg_url="http://www.trendcaller.com/2009/05/hadoop-should-target-cllvm-not-java.html";
Over the years, ......
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.spri ......
µÚ¶þÕ Êý¾ÝÀàÐÍ
Ò»¡¢Êý¾ÝÀàÐÍ·ÖÀà
1 ÁªºÏÀàÐÍ
2 º¯ÊýÀàÐÍ
3 ÊýÁ¿ÀàÐÍ
3.1ËãÊõÀàÐÍ
¢Ù »ù±¾Êý¾ÝÀàÐÍ
ÕûÐÍ£¨°üÀ¨char£©
¸¡µãÐÍ ......
×î½üÔÚÑо¿²Ù×÷ϵͳ£¬¡¶×Ô¼º¶¯ÊÖд²Ù×÷ϵͳ¡·ÉϵÚ5Õ½²ÁËasmºÍcº¯ÊýÖ®¼ä»¥µ÷Óã¬Ä¿µÄÊÇʹÓÃcÀ´Ð´²Ù×÷ϵͳÄں˵ĴúÂ룬±Ï¾¹Óûã±àд´úÂ뻹ÊǺܷÑʱ¼äµÄÊ¡£
ÅäÖÃLinux¿ª·¢»·¾³ÊµÔÚÊÇÌ«Âé·³£¬Òª×°ÐéÄâ»ú£¬»¹ÒªÅäÖÃÀÏ°ëÌì¡£ÓÚÊǾÍÏëÄܶ¼ÔÚwindows»·¾³ÏÂʵÏÖ»¥µ÷Ó㬺Ü×ÔÈ»µÄÏëµ½ÁËming ......
C++ newÓ÷¨Ïà¹Ø¾Ñé×ܽá
×÷Õß: ØýÃû, ¡¡³ö´¦:ITר¼ÒÍø,¡¡ÔðÈαà¼: лåûåû,¡¡2010-04-16 07:00
¡¡¡¡C++ ±à³ÌÓïÑÔÖÐÓÐÒ»ÖÖ½Ð×önewµÄÊõÓï¡£²»¹ýÕâÒ»¸ÅÄîÊDZȽÏÄ£ºýµÄ£¬ÓÐЩÈË°ÑËüÀí½âΪnewº¯Êý£¬µ«ÊÇÓеÄÈËÓÖ»á°ÑËüÀí½âΪnewÔËËã·û¡£ÄÇôËüµÄÕæÕýº¬ÒåÓÖÊÇÈçºÎµÄÄØ?ÔÚÕâÀïÎÒÃǽ«»áͨ¹ý¶ÔC++ newÓ÷¨µÄ½éÉÜ£¬°ïÖú´ó¼ÒÒ»Æð·ÖÎ ......