ã¤ã³ãããã¯ã·ã§ã³ ãããã©ã³ãã ãªæ°åã®ä¸¦ã³ã§ãããããã®æ°åãã¡ããã©ï¼åãã¤ããåºã¦ããªããã¨ããæ°åã欲ãããã¨ãããã¾ããä¾ãã°ãã«ã¼ãã®ã·ã£ããã«çãããã«ãããã¾ããããããæã¯é åã«æ°åãå ¥ãããã®é åã®è¦ç´ ãã·ã£ããã«ãã¦ç®çã®æ°åãå¾ãã®ãå®ç³ã§ãããã®ã·ã£ããã«ãã©ãããã®ãããã®ããã¨ããã®ãä»åã®è©±é¡ã§ãã ã¾ãæãã¤ããæ¹æ³ æç§ãæåã«èãã¤ããã®ã¯ãã©ã³ãã ã«ï¼ã¤ã®è¦ç´ ãé¸ã㧠swap ãããã¨ããæä½ãè¤æ°åç¹°ãè¿ãã¨ããæ¹æ³ã§ãããã³ã¼ãã£ã½ãæ¸ãã¨ã次ã®ãããªæãã«ãªãã¾ãã M = count_of_iteration; N = size_of_array; rand(x) = random_value_less_than_x; for(i = 0; i < M; i++){ a = rand(N); b = rand(N); swap(array
{{#tags}}- {{label}}
{{/tags}}