C++ å¯ç¨¿è¨äº εÏιÏÏημη æ°ããå¯ç¨¿ãã¦ããã ãããéçºè ã®æ¹ã ã«ãå½¹ã«ç«ã¤ãã¯ãã«ã«ããã¥ã¡ã³ãã§ããArticlesãReferencesãMiscelaneousã«åããã¦èª¬æãã¦ãã¾ããåå¿è ã®æ¹ããããã®æ¹ã¾ã§å½¹ã«ç«ã¤èªã¿ç©ã¨è³æéã§ããæ¯éãéçºã®ãå½¹ã«ãç«ã¦ä¸ããã Articles: èªã¿ç© References: è³æé Miscelaneous: çªå¤ç·¨
ãµã¼ãã¹çµäºã®ãç¥ãã ãã¤ãYahoo! JAPANã®ãµã¼ãã¹ããå©ç¨ããã ãèª ã«ãããã¨ããããã¾ãã ã客æ§ãã¢ã¯ã»ã¹ããããµã¼ãã¹ã¯æ¬æ¥ã¾ã§ã«ãµã¼ãã¹ãçµäºãããã¾ããã ä»å¾ã¨ãYahoo! JAPANã®ãµã¼ãã¹ããæ顧ãã ããã¾ãããããããããé¡ããããã¾ãã
è§ã®ãã¼ã¸ã¸æ»ã STL(Standard Template Library) C++ã®æ¨æºãã³ãã¬ã¼ãã©ã¤ãã©ãªãSTLã®ãã¼ã¸ã§ãã 2003/6/7 ã³ã³ããå ¨ãã¼ã¸æ¨æºã«åããã¦ä¿®æ£ ç®æ¬¡(ã¨äºå®) æ´æ°å±¥æ´ ã¯ããã« STLã¨ã¯? '99 11/07 ä½æ ãã®åã«C++ã§ç¥ã£ã¦ãããªããã°ãªããªãã㨠馴æã¿ããªã(ãããããªã)åèª '99 9/23 ãããã«ä¿®æ£ ãã³ãã¬ã¼ã(template<>) 2001 1/31 æ´æ° ç°å¢ '99 2/20 VCã§SGI_STLã使ããBeOSãegcsç 使ãæ¹ ã¤ãã¬ã¼ã¿(å復å)ã®ä½¿ãæ¹ '99 6/19 æ´æ° é¢æ°ãªãã¸ã§ã¯ãã®ä½¿ãæ¹ '99 7/4 mem_fun()ã®ä½¿ãæ¹è¿½å æ©è¦è¡¨ STLã§ä½¿ã主ãªã¯ã©ã¹ '99 6/13 åã¯ã©ã¹ã®èª¬æãããããã¾ã¨ãã STLã§ä½¿ãããåå '99 6/13 å¾®å¦ã«æ´
ç®æãããã°ã©ãã¼ï¼ã«ããããã å½ãµã¤ãã¯ãã¡ãã«å¼ã£è¶ãã¾ããã ãææ°ãããããã¾ãããä¸è¨ãµã¤ãã¸ã移åãã ããã¾ãã
åçé åã¸ã®è¿½å ã³ã¹ã㯠O(1) ã£ã¦ã®ã¯è¦ãã¦ããã°ããã ãã®è©±ã§ããï¼ã©ããã¦ãã¨è¨ãããã¨æå¤ã¨é£ãããã®ã§ãï¼ ã¨ããã®ã, ãã®O(1)ã£ã¦ã®ã¯åçé åã®å®è£ æ¹æ³ã«å¼·ãä¾åãã¦ããããã§ãï¼å®è£ ãç¥ã£ã¦ããªãã¨çãããã¾ããï¼ ä¸è¬è«ã¨ãã¦ï¼1ã¤è¦ç´ ã追å ããã¨ãï¼é åã«ç©ºãããªãã£ããæ°ããé åãä½ãç´ãã¦å ¨è¦ç´ ãã³ãã¼ããå¿ è¦ãããã¾ãï¼ã³ãã¼ã®ã³ã¹ã㯠O(n) ã ããï¼è¿½å ã³ã¹ãã O(n) ã«ãªãã¨ããè°è«ãæ··ä¹±ã®å ã«ãªã£ã¦ãã¾ãï¼ ããããã¨ãã¯ï¼è¦ç´ 追å ã n åç¹°ãè¿ããã¨ãã®è¨ç®éã n ã§å²ã£ãå¹³åãã¨ãã¨ãã解ææ¹æ³ã使ãããããã§ãï¼ä¸è¬ã«, ãã operation C ã®è¨ç®éã C ã n åè¡ã£ãã¨ãã®è¨ç®é O(n) ã n ã§å²ã£ãå¤ O(n)/n ã§è©ä¾¡ããææ³ããªãã解æ (amortized analysis)ã¨è¨ãããã§ãï¼ ãã¦ï¼s
ãµã¼ãã¹çµäºã®ãç¥ãã ãã¤ãYahoo! JAPANã®ãµã¼ãã¹ããå©ç¨ããã ãèª ã«ãããã¨ããããã¾ãã ã客æ§ãã¢ã¯ã»ã¹ããããµã¼ãã¹ã¯æ¬æ¥ã¾ã§ã«ãµã¼ãã¹ãçµäºãããã¾ããã ä»å¾ã¨ãYahoo! JAPANã®ãµã¼ãã¹ããæ顧ãã ããã¾ãããããããããé¡ããããã¾ãã
é害
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}