å¾ æã®C/C++ IDEãCLionã¨ãã¦å ¬éè´ãã¾ãï¼ JetBrainsã¯ã½ããã¦ã§ã¢éçºãçç£çã§æ¥½ãããã®ã«ãããã常ã«æ³¨åãã¦ãã¾ããJavaã®ã·ã³ãã«ãªãªãã¡ã¯ã¿ãªã³ã°ãã¼ã«ã«å§ã¾ããJavaã.NETãPythonãRuby/Ruby on RailsãPHPãJavaScriptãHTMLãObjective-Cãªã©æ§ã ãªè¨èªããã©ãããã©ã¼ã ã«å¯¾å¿ãã¦ãã¾ããã JetBrainsã®ã¹ãã¼ããªãã¼ã«ç¾¤ã¯ã³ã¼ãã®å質ãé«ããããå¹çè¯ããªãã¡ã¯ã¿ãªã³ã°ãããã³ã¼ãã£ã³ã°åºæ¥ããã¨ã§åºãç¥ããã¦ãã¾ãã Cã¨C++ã¯ããã°ã©ãã³ã°è¨èªã®ä¸ã§ãç¹ã«æ´å²ãé·ããåå§ã¹ã¼ã(primordial soup)ã®ä¸ã§ãæ ¹å¼·ãçãæ®ã£ã¦ããã®è¨èªã¨ãã¦èªèããã¦ãã¾ããããã§JetBrainsã¯ä¿¡å¿µã«åºã¥ããC/C++ãããããã®ä½æ¥ãããå¹ççãªãã®ã¨ããããå°ç¨ã®IDEããªãªã¼ã¹ãã
åç« ã§ãã£ãã®ã¯ãJavaããã°ã©ã å ãããdllå ã®é¢æ°ï¼ãã¤ãã£ãã¡ã½ããï¼ãå¼ã³åºãæ¹æ³ã¨ãªãã¾ãã ãããå©ç¨ããäºã§ãOSä¾åã®ãã¤ãã£ãAPIãJavaãã使ç¨ããäºãå¯è½ã«ãªãã¾ãã ä»åº¦ã¯éã«ãWindowsã¢ããªã±ã¼ã·ã§ã³ã®ä¸ãããJavaã®ã¡ã½ãããå¼ã³åºãã¨ããæ¹æ³ãç´¹ä»ãã¾ãã Javaã®ã¡ã½ãããå¼ã³åºãããã§ãããæ£ç¢ºã«è¨è¿°ããã¨JavaVMãèµ·åããJavaVMä¸ã§Javaã®ã¡ã½ãããå®è¡ããããã¨ã«ãªãã¾ãã å¼ã³åºãããJavaã½ã¼ã¹ public class JNIHello2 { public static String getMessage(){ return "Hello World"; } } å¼ã³åºãããJavaã½ã¼ã¹ãã¡ã¤ã«ã¯ãç¹ã«å¼ã³åºãããäºãæèããå¿ è¦ã¯ãªãã¦ãæ®éã«ä½æããã°ããã§ãã ä»åã¯ããã¤ãã£ãå´ããåã«é¢æ°ãå¼ã³åºãã ã
ãã¯ããã /com/android/sdklib/ISdkLog=ã³ãã³ãããã³ããã§eclipse -clean (ç«å ´ãå¤ãã£ã¦ãâ¦) ãã¯ããã /com/android/sdklib/ISdkLog=ã³ãã³ãããã³ããã§eclipse -clean (ç«å ´ãå¤ãã£ã¦ãâ¦) âèé士æç¢Î©ç¬¬1話æç¢ãæã£ãå½!ç¦ãèé... (ãºããºããã£ã³ãã£ã¼) é岡ï¼æ·¡å³¶ãªã¾ã¼ãã¨ã·ããã¯ã¹ã¨âã¦ãããçºä½âã®å½¼å¥³ (è³æ«å·ã«ããè¦ããªãé害ã¨éããªãã) è¤æ°ã®ãã¿ã³ã®åä½ãè¨å®ãã (åå¿è ã®åå¿è ã®ããã®Androidã¢ããªéçºï¼) ãªã¼ãã³ã½ã¼ã¹ãã¬ãã¸ãã¼ã¹ : Opensource Knowlege Base (ãªã¼ãã³ã½ã¼ã¹ãã¬ãã¸ãã¼ã¹ : Opensource Knowlege Base) å·å´ï¼ç¸å¤ãããã®âåè² å¼±ãâ/ç£ç°æ¦ãã (ãµãã«ã¼ã¯ã¨ã³ã¿ã¼ãã¤ã³ã¡ã³ãã ï¼)
[ããã°ã©ãã³ã°] [Java] [Cè¨èª] /opt/blackdown-jdk-1.4.2以ä¸ã«Javaãã¤ã³ã¹ãã¼ã«ãã¦ããå ´åã§ãï¼ linuxããã³ï¼linuxã¨ãã¥ã¬ã¼ã¿ãå°å ¥ãã¦ããFreeBSDã§ãå®è¡ã§ãããã¨ã確èªãã¾ããï¼ãã ãï¼ãã®å ´åã¯ï¼linuxçã®gccã§ã³ã³ãã¤ã«ãããã¨ãå¿ è¦ã§ãï¼ ãµã³ãã«ã³ã¼ã 以ä¸ã®Test.javaãå¼ã³ã ãCè¨èªã®ã³ã¼ããæ¸ããã¨ã«ããï¼ public class Test{ public static void testmethod(){ System.out.println("succeseed of calling."); } public int sumation(int a, int b){ return a+b; } } Cè¨èªå´ã®ã³ã¼ã #include <jni.h> #include <stdio.h> #inc
Javaã®ã©ã¤ãã©ãªãC/C++ããå¼ã¶æ¹æ³ã®ã¡ã¢. ãã«ã®ã½ã¼ã¹ã³ã¼ãã¯ãã¡ã åèã«ãããã¼ã¸: ã·ã³ãã«ãª Cè¨èªããJavaè¨èªãå¼ã³åºãJNIãµã³ãã« ããã§ã¯ä»¥ä¸ã®ãããªJavaã®ã¯ã©ã¹ãC++ããå©ç¨ãããã¨ãæ³å®ãã. package my.hoge; public class Hoge { public Hoge() { } public void printHoge(){ System.out.println("Hoge!"); } public String getHoge(){ return new String("Hoge"); } public int add(int i, int j) { return i + j; } public String getMsg(String msg){ return new String("Hoget is " + msg)
35. local datas = { { name = 'base_ui', visible = 1, z = 10, elements = { { name = 'bg_gacha_body', x = 0, y = 166, width = 640, height = 440, z = 10, style = 'normal', visible = true, }, local scene = CCScene:create() local layer = CCLayer:create() scene.layer = layer -- dynamic scene.onTouch = function (eventType, x, y) .... end { name = 'bg_gacha_head', x = 0, y = 0, width = 640, height = 166,
æå°å ¨åæ¨åé¡ã解ãããã®ã¢ã«ã´ãªãºã ãã¯ã©ã¹ã«ã«æ³ãã¨ãããªã æ³ãã使ã£ã¦ã¿ãï¼ æå°å ¨åæ¨ã«ã¤ã㦠ã¯ã©ã¹ã«ã«æ³ ããªã æ³ PKUã®åé¡ ã¯ã©ã¹ã«ã«æ³ã«ãã解ç ããªã æ³ã«ãã解ç ã¡ã¢ãªä½¿ç¨éã¨å®è¡æéã®æ¯è¼ æå°å ¨åæ¨ã«ã¤ã㦠ã¾ãï¼å ¨åæ¨(Spanning tree)ã¨ã¯é£çµã°ã©ãã®å ¨ã¦ã®é ç¹ã¨ãã®ã°ã©ããæ§æãã辺ã®ä¸é¨åã®ã¿ã§æ§æãããæ¨ã®ãã¨ï¼ã¤ã¾ãï¼é£çµã°ã©ãããé©å½ãªè¾ºãåãé¤ãã¦ããï¼éè·¯ããããªãæ¨ã®å½¢ã«ãããã®ãå ¨åæ¨ã¨ãªãï¼ããã§ï¼ã°ã©ãã®å辺ã«éã¿ãããå ´åï¼éã¿ã®ç·åãæå°ã«ãªãããã«è¾ºãé¸ãã§ä½ã£ãå ¨åæ¨ã®ãã¨ãæå°å ¨åæ¨(Minimum spanning tree)ã¨ããï¼ æå°å ¨åæ¨ãæ±ããã¢ã«ã´ãªãºã ã¨ãã¦ã¯ä»¥ä¸ã®äºã¤ãæåã§ããï¼ ã¯ã©ã¹ã«ã«æ³ (Kruskal's algorithm) ããªã æ³ (Prim's algorithm) ãããã貪欲
C/C++ã§ãã¤ã³ã¿å¤æ°ã宣è¨ããã¨ãã®*è¨å·ãint* a;ã®ããã«å·¦å¯ãã§æ¸ãããint *a;ã®ããã«å³å¯ãã§æ¸ããã å³å¯ãã§æ¸ãå ´åããCã§ã¯å®£è¨ã¨ä½¿ç¨ã®ææ³ãä¸è´ããããã¨ããè¦åããèããã°ç´ ç´ã«è§£éã§ããã¨ãã話ã
ããæ°æ¥ãGoogle NaClã使ã£ã¦C++ã³ã¼ããwebä¸ã§å®è¡ã§ããããã«ããã¨ãããã¨ã試ãã¦ãã¾ãã(ã§ããã®ã¯ããã§ã)ã使ã£ã¦ã¿ãææ³ã¨ãã¦ã¯ããã®ä»çµã¿ãwebãµã¼ãã¹ã¨ãã¦ä½¿ãããããã«ãªããã¯åããã¾ããããC/C++ã³ã¼ãã§æ¸ãããã¢ããªã±ã¼ã·ã§ã³ãå®è¡ã§ããç¶æ ã§è¦ããã¨ãã£ãç¨éã§ã¯ãç¾æ®µéã§ãååã«ä½¿ããããããªããã¨ãããã®ã§ããã Google NaClã使ãã¨ãC/C++ã³ã¼ããwebä¸ã§åãããã¨ãã§ãã¾ããã¡ããã©ãruby, pythonãªã©ã®C APIã使ã£ãæ¡å¼µã¢ã¸ã¥ã¼ã«ã®ãããªãã¨ããã©ã¦ã¶ä¸ã§åãJavaScriptã§ãã§ããããã«ãªã£ããããªãã®ã ã¨æã£ã¦ãã ããã(ãã ããNaClãã©ã°ã¤ã³ãåãã®ã¯ç¾å¨ã®ã¨ããGoogle Chromeã ãã§ã) ã¨ããã®ããC/C++ã§æ¸ãããããã°ã©ã ãå®è¡ãããã¨æã£ãããã¾ãèªå以å¤ã®ç°å¢ã§ãã
Suffix Array (Larsson-Sadakane) 説æ Suffix Arrayã¨ã¯ï¼ä¸ããããæååã®æ¥å°¾è¾ã®éåãè¾æ¸é ã½ã¼ããããã®ã§ããï¼è¿å¹´ï¼ãããç¨ãããã¨ã«ãã£ã¦å¤ãã®æååã®åé¡ã解ããããã¨ãããã£ã¦ããï¼ Larsson-Sadakane 㯠Suffix Array ã O(n (log n)^2) æéã§æ§æããã¢ã«ã´ãªãºã ã§ããï¼Mamber-Myers ã¨åæ§ã®ã¢ã¤ãã¢ã«ãã£ã¦æååé·ãåå ããï¼O(log n) åã® multikey quicksort ãè¡ããã¨ã«ããï¼å ¨ä½ã§ O(n (log n)^2) ã®è¨ç®éãéæããï¼è©³ããã¯é©å½ãªæç®ãåç §ï¼ Suffix Array ãç¨ãã¦è§£ãããã£ã¨ãå ¸åçãªåé¡ã¯ï¼æååã®æ¤ç´¢ã§ããï¼Suffix Array ä¸ã§äºåæ¢ç´¢ãè¡ãã°ï¼O(m log n) ã§ãã¿ã¼ã³ã®æ¤ç´¢ãã§ããï¼ã¾ãï¼Suf
ãKyoto Tycoonã®è¨è¨ ãã®åãæ¹ãã50è¡ã§Webãµã¼ããæ¸ãæ¹æ³ã解説ãããååå®è£ ãããå¤éI/Oãã«ãã¹ã¬ããæ±ç¨TCPãµã¼ããã®ä¸ã«HTTPã®å¦çãè¡ã層ãã¤ãã¦ããå¤éI/Oãã«ãã¹ã¬ããæ±ç¨HTTPãµã¼ãããå¸ãã¯ã©ã¹ãå®è£ ãã¦ã¿ãã®ã§ãããã使ã£ã¦ã¡ãã¡ããã¨ããã URLã¯ã©ã¹ HTTPã¨è¨ãã°URLã使ããªãã¨æå³ããªããURLã¯åãªãæååã¨ãã¦æ±ã£ã¦ãããã®ã ããæ§ã ãªã·ã¼ã³ã§å解ãå å·¥ãå¿ è¦ã«ãªãããã®å¦çã¯ãªã«ãã«è¤éã§é¢åãªã®ã§ãäºãã¯ã©ã¹ã¨ãã¦å°åºãã¦ãããæ¹ãããã ããã class URL { public: // æååã®URLã解æãã¦å é¨æ§é ãä½ã void set_expression(const std::string& expr); // ã¹ãã¼ã è¦ç´ ãè¨å®ãã void set_scheme(const std::string&
大è¦æ¨¡çè¡ååãã®è¡åå解ã©ã¤ãã©ãªredsvdãå ¬éãã¾ããï¼ redsvd 大è¦æ¨¡çè¡ååãã®ç¹ç°å¤å解ã主æååæï¼åºæå¤å解ãè¡ãã©ã¤ãã©ãªredsvdãå ¬éãã¾ããï¼ ä¿®æ£BSDã©ã¤ã»ã³ã¹ã§å ¬éãã¦ããï¼ã³ãã³ãã©ã¤ã³ãã使ããä»ï¼C++ã©ã¤ãã©ãªãç¨æããã¦ãã¾ãï¼ ä¾ãã°ï¼è¡ã¨åæ°ããããã10ä¸ï¼éé¶ã®è¦ç´ ã1000ä¸ãããªãçè¡åã«å¯¾ããä¸ä½20ä½ã¾ã§ã®ç¹ç°å¤å解ãç´2ç§ã§å¦çãã¾ãï¼ ç¹ç°å¤å解ã¨ãï¼ä½¿ã£ã¦ããæè¡ã®è©³ç´°ã¨ãå¿ç¨äºä¾ã以ä¸ã«ç°¡åã«ç´¹ä»ãã¾ããã®ã§ï¼èå³ã®ããæ¹ã¯åèã«ãã¦ãã ããï¼ ç¹ç°å¤å解ã¨ã¯ ã¾ãè¡åãé©å½ã«å¾©ç¿ãã¾ãï¼è¡åXã®è»¢ç½®ãX^tã¨è¡¨ããã¨ã«ãã¾ãï¼ã¾ãIãåä½è¡åã¨ãï¼Oãå ¨ã¦ã®æåã0ã§ããé¶è¡åã¨ãã¾ãï¼ã¾ãï¼è¡åXX^t=Iã§ãããããªXãç´äº¤è¡åã¨å¼ã³ã¾ãï¼Xãç´äº¤è¡åã®æï¼Xvã¯ãã¯ãã«vãé·ããå¤ããã«å転ããã¾ãï¼ããã§ã¯
ãã«ã¿ã¤ã ã§åãã¯ããã¦4ã¶æã ããããªãã¨ãããã¾ããã ä»æ¥ã¯ã¤ã³ã¿ã¼ã³ãæ¥ã¦ããã¨ãããã¨ãããæ¥é ã®C++ã³ã¼ãã£ã³ã°ã©ã¤ãã®ä¸ã§å¤§å¤éç¨ãã¦ãããã¼ã«ãç´¹ä»ãã¾ããã¨ãã£ã¦ãã©ããæåãªãã¼ã«ã§ã°ã°ãã°è§£èª¬ãã§ã¦ããã¨ã¯æãã¾ãã®ã§ãä¸è¨ãã¤ã ãç´¹ä»ãã¦ã¿ã¾ããã¿ãªãããä½ãããããªã©ã¤ãã©ãªã»ãã¼ã«ãããã¾ãããæãã¦ãã ããã - valgrind/callgrind/cachegrind ããã°ã©ã ã®å®è¡çµæã解æãããã¼ã«ç¾¤ãã¾ããçéã§ããã¦ç´¹ä»ããå¿ è¦ã¯ãªãããããã¾ããã.ãvalgrindã¯ããã°ã©ã ã®ã©ããã§ã¡ã¢ãªãæ¼ãã¦ãããã©ããã®ãã§ãã¯ã«ä½¿ãã¾ãï¼ã³ã¼ãã®ã©ã®é¨åã§ç¢ºä¿ããé åãã©ãã§æ¼ãã¦ãããã¾ã§è¿½è·¡ãããã¨ãã§ãã¾ã valgrind --leak-check=full command ããã°ã©ã ã®ã©ã®ãè¨ç®éçã«ããã«ããã¯ã«ãªã£ã¦ãããã調ã¹
以åãã©ã¤ï¼ããã«é åï¼ç°¡æ½ãã¼ã¿æ§é ï¼ã¨ STL ã³ã³ãã - ny23ã®æ¥è¨ã§æ¯è¼ã«ä½¿ã£ãèªä½ã®ã¬ã³ã¼ãä»ãåçããã«é å (dda) ã®å®è£ ãå ¬éï¼ä»¥ä¸ã®è«æã®ã¢ã«ã´ãªãºã ãå®è£ ãããã®ï¼ ç¢ç°æ, ç°æé 浩, 森ç°åå®, æ³ç°æ£é, éæ±é ä¸ï¼ããã«é åã«ããåçè¾æ¸ã®æ§æã¨è©ä¾¡, æ å ±å¦çå¦ä¼ç¬¬71åå ¨å½å¤§ä¼, 1-263-1-264é , 2009å¹´3æ. ã¬ã³ã¼ãä»ãåçããã«é å - ny23ã®æ¥è¨ããå§ã¾ãï¼ã¬ã³ã¼ãä»ãåçããã«é å - ny23ã®æ¥è¨, ã¬ã³ã¼ãä»ãåçããã«é å - ny23ã®æ¥è¨, ã¬ã³ã¼ãä»ãåçããã«é å - ny23ã®æ¥è¨ ã¨äºé±éããã£ã¦æ¸ããå ã360è¡ã® c++ ããããã¡ã¤ã«ï¼åçããã«é åã¯ä¸ã®åé¡å¨ã®å¦ç¿ææ³ã§ç´ æ§ã®éã¿ã®ç®¡çã«ä½¿ã£ã¦ããã®ã§ï¼å¦ç¿ææ³ã®å®è£ ã«å梱ããï¼std::tr1::unordered_map ãã¼ã¹ã®ãã©ã¤ã«
SACHICA(é¡ä¼¼æåååæã¢ã«ã´ãªãºã )ã®C++ã«ããå®è£ ãå ¬éãã¾ããã http://sites.google.com/site/yasuotabei/sachica sachicaã¯ãåãé·ãã®æååéåãå ¥åã¨ãã¦ãããã³ã°è·é¢ãããé¾å¤ä»¥ä¸ã®ãã¹ã¦ã®ãã¢ã¼ãè¶ é«éã«åºåãã¾ãããã¢ã«ã´ãªãºã ã¯ããã«ãã½ã¼ãã£ã³ã°ã¨ããææ³ã«åºã¥ãã¾ãã 詳ããã¯ãããã³ã°è·é¢ãd以å ã§é·ããmã®æååéåããã£ãã¨ãã¾ããåãã«ãåæååãk (> d)ã®é¨åæååã®ãããã¯ã«åå²ãã¾ãã ä»ãããã³ã°è·é¢ãd以å ã®æååã®ãã¢ã¼ãæ±ãããã®ã§ããããããã³ã°è·é¢ãd以å ã®æååã®ãã¢ã¼ãåå¨ããã°ã鳩ã®å·£åçã«ããããããã«ã¯k - dåã®å®å ¨ä¸è´ãããããã¯ãåå¨ãã¾ãããã®åçã«åºã¥ããsachicaã¯combination(k, k-d)ã®ãã¹ã¦ã®çµã¿åããã®ãããã¯ãã©ãã£ãã¯ã¹ã½
ã©ã®ãããªã¨ãã«Aho Corasickæ³ãå¿ è¦ãè¾æ¸æ§ç¯ããå¾ã®å¿ç¨å (?)ã®ä¸ã¤ã¨ãã¦ãè¾æ¸ãå ã«ãã転置ã¤ã³ããã¯ã¹ãä½ããã¨ããããããããã©ã®ãã¼ã¯ã¼ããã©ã®æç« ã«ç»å ´ãããããä¸çªç°¡åãªè»¢ç½®ã¤ã³ããã¯ã¹ã ã¨æããã ãã©ãä»åã¯ç»å ´ããæç« ã®ã©ã®ä½ç½®ã«ãã£ããã¾ã§è¨é²ããã(ä¾ãã°ãªã³ã¯ãå¼µãæã«ä½¿ããããã)ã転置ã¤ã³ããã¯ã¹ä½ãã¨ãã¯ãé常 å½¢æ ç´ è§£æãã¼ã¹ N-gramãã¼ã¹ ã®2種é¡ã主ãªææ³ã ã¨æããã ãã©ãä»åã¯ãã£ããæ§ç¯ããè¾æ¸ããã¨ã«è»¢ç½®ã¤ã³ããã¯ã¹ãä½ãããã®ã§ãä¸ã®2ã¤ã§ã¯ãã¾ãã§ããªãããã¨ãã£ã¦ãæç« ã¨ãã¼ã¯ã¼ãç·å½ããã¨ããã£ã¦ãããæ»ã¬ã®ã§ãå¹çã®ããæ¹æ³ãå¿ è¦ãããã§Aho Corasickæ³ã§ããã奥ãããã¯ã¦ãªãã¼ã¯ã¼ãã¸ã®ãªã³ã¯å¦çã¨ãã«ä½¿ãããããã¾ãã å ¥åã¨åºåå ¥åã¨åºåãå ã«ç´¹ä»ããããå ¥åã¯è¾æ¸ã¨ãããªæãã®æç« ã <ç·èª¬èªå>èç½
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}