_ LRUMap ã ãããããã£ã! ã§ã¾ã list ãå¿ è¦ãã¨ãã話㧠slist ãããã¡ãªã®ã ããã㨠kinaba ããã«èããã大ä¸å¤«ãããã¨ã®è¿çã®ããå¾ã« ãã£ã±ãã¡ãããã¨ã®ãã¨ã å¾ãåãã®ãªã³ã¯ãç¡ãã¨å¤ãã¤ã使ã£ãæ㫠移åã O(1) ã§ã§ããªããããã¼ã ãããã©ãããããªã¼ã¨èããã®ã¯ã slist ã¢ãããã¼ãæã¯ååããã¤ã³ã¿ã« |1 ããå¤ãå ¥ãã¦ãã ã ãããªã³ã¯ããã©ãæã¯å¿ ãä¸ä½ 1 bit ã¯è½ã¨ã ã§ã¾ãåãè¦ç´ ãæããã®ãæ«å°¾ã«ãã¤ãã å¤ãã¤ããååãã¦ãæä¸ã« (next&1)==1 ãªè¦ç´ ãè¦ã¤ãããããã®è¦ç´ ã¯æ¶ããªãã§æ¬¡ãæ¶ã ã¨ãã æ°ããè¦ç´ ã追å ãããã« åãè¦ç´ ãåç §ããã¾ãã£ããããã¨ããããã¡ã¢ãªã使ã£ã¦ãã¾ãã®ã§ã ãã¾ã« O(N) ã® GC ãèµ°ãããã¨ãããããããªãã ãªãããã£ã¨è³¢ããã£ã¦æ¬²ããããªã¼ (12:
{{#tags}}- {{label}}
{{/tags}}