Algorithm
æ¯å¹´12æã«éå¬ããã¦ãã Advent of Code ã«ã2019å¹´ããåå ãã¦ããã éå»è¨äº: Advent of Code 2019 ã«ææ¦ãã¦ãã - ãããã¼ãã¡ã¢ Advent of Code 2020 å®çãã - ãããã¼ãã¡ã¢ Advent of Code 2022 ãå®èµ°ãã - ãããã¼ãã¡ã¢ Advent of Codeâ¦
ãã ããå±ã®ã²ã¾ã¤ã¶ããã¨ã¯ æé·æé ã®åé¡ã¯â¦ï¼ çµã¿åãããã°ã©ãåé¡ ããã°ã©ã ã§è§£ã ç¶æ ã®åæ ã°ã©ãã®æ§ç¯ æççµè·¯åé¡ã解ã WASMåãã¦ããã©ã¦ã¶ä¸ã§è§£ã ããããã¹ã¦ç°ãªãå£åã ã£ãã ããã«ä¸è¬åãã¦ãã㨠å°éå¯è½æ§ é ç¹æ° æ¬æ°ãâ¦
æ¯å¹´12æã«éå¬ããã¦ãã Advent of Code ã«ã2019å¹´ããåå ãã¦ããã éå»è¨äº: Advent of Code 2019 ã«ææ¦ãã¦ãã - ãããã¼ãã¡ã¢ Advent of Code 2020 å®çãã - ãããã¼ãã¡ã¢ Advent of Code 2022 ãå®èµ°ãã - ãããã¼ãã¡ã¢ 2023å¹´ã®Adventâ¦
æ¯å¹´12æã«éå¬ããã¦ãã Advent of Code ã«ã2019å¹´ããåå ãã¦ããã éå»è¨äº: Advent of Code 2019 ã«ææ¦ãã¦ãã - ãããã¼ãã¡ã¢ Advent of Code 2020 å®çãã - ãããã¼ãã¡ã¢ 2022å¹´ã®Advent of Codeã«ãææ¦ãã¦ãã¦ãå¹´ãæãã¦ãã¾ã£ããå â¦
tkihiraããã®åé¡ãé¢ç½ããã ã£ãã®ã§ææ¦ãã¦ã¿ãã 2023å¹´ã¯ã¤ãºï¼ä¸ã®ä¾ã®ããã«ãæ°åã®åéã«ååæ¼ç®ï¼ï¼âÃ÷ï¼ãæ¬å¼§ãå ¥ãããã¨ã§ã2023 ãä½ã£ã¦ãã ããã- æ°åã®éã«å¿ ãæ¼ç®åã 1 ã¤å ¥ãã¦ãã ãã- ãã ã 9 㨠8 ã®éã«ã¯æ¢ã« ÷ ãå ¥ã£ã¦â¦
åç½®ã é£ã³å©ãè¨ç®ãããã åºç¤ç¥è 縦åBitboardã§ã®é¦è»ã®å©ã è§è¡ã»é£è»ã®å©ã (Magic Bitboard / PEXT) Qugiyã®ææ³ Leading/Trailing Zerosã使ã å®é¨ã¨èå¯ åç½®ã Rustã§å°æ£ã®é«éåæ³æçæã©ã¤ãã©ãªãä½ãå§ãã¦ãã¦ã Rustã§ã¤ãã ããä¸â¦
ã¤ãã«ãã¨ãªã£ã¦å é±ããRustã§è©°å°æ£ã½ã«ããæ¸ãå§ãã¦ãã¾ããããããdf-pnã§ä½ããã®è§£çãåºããããã«ãªã£ãã¨ãããããããããã¡ãã£ã¨èª¿æ´ãã¦ããããã pic.twitter.com/XM9iPJqocvâ ãããã¼ã (@sugyan) November 2, 2021 ã¨ããããã§çªç¶Râ¦
SNSãªã©ã§è©±é¡ã«ãªã£ã¦ããã®ã§èª¿ã¹ã¦ã¿ããåå¼·ã«ãªã£ãã®ã§ã¡ã¢ã ç°å¢ Pythonã§ã®å®è£ ä¾ ä¾1 ä¾2 ä¾3 ã¨ã©ãã¹ããã¹ã®ç¯© Rustã§ã®å®è£ ä¾ è©¦ãå²ãæ³ ã¨ã©ãã¹ããã¹ã®ç¯© ã¢ããã³ã®ç¯© ãã¾ã: GMP Benchmark é«éåã®ãã¯ãã㯠ä¸éåæ°ãè¦ç©ãã Wheeâ¦