RE:æŸå°æ§ç©è³ªãå«ãåœé é貚ã®ç¹å®ïŒæè¡è ãšã¬ã€ã¬ãŒã«ãŠã³ã¿ãŒã«ãã枬å®æŠç¥
ããã®ã¹ã¬ããã«ã¯ãã以äžè¿ä¿¡ã§ããŸãããããšãªããŸããŠããããããªãæ°èŠã¹ã¬ããã§ãã
No.2173 DD++ãã 9æ16æ¥ 16:55 ã®ãæçš¿ã«ã€ããŠè¿ä¿¡ã§ãã
éœæ§å ±åã®æ°ã 6 ãš 2 ãšã§ã¯ãªããšããªããŸããã4 ã§ã¯æŽçãã€ããã«é·ãåæã«ãªã£ãŠããŸããŸããé°æ§ 3 ãšèªã¿æ¿ããŠãããŸããããã
ã¹ã«ããšãã蚌æããæ瀺é¡ããã°å¹žãã§ãã
===
çæ§ãžã
æ©æ¢°ã«å
šæ°æ€æ»ãããŠããããŸãããšããããã ãã®äºæ³ã¯çã®ããã§ãã
äžèšã§ true ãåºåããŠããŸããã(JavaScriptã«ããããã°ã©ã ã§ãã)
jslintçã«ã¯è¶
ã€ããã§ããç³ãèš³ãããŸããã
function hammingDistance(str1, str2) {
// ããã³ã°è·é¢ãèšç®ããé¢æ°
let distance = 0;
for (let i = 0; i < str1.length; i++) {
if (str1[i] !== str2[i]) {
distance++;
}
}
return distance;
}
function checkCondition(sequences) {
// æ¡ä»¶ãæºããããã§ãã¯ããé¢æ°
for (let i = 0; i < sequences.length; i++) {
const originalSeq = sequences[i];
// 2ããããå転ããããã¹ãŠã®çµã¿åãã
for (let j = 0; j < originalSeq.length; j++) {
for (let k = j + 1; k < originalSeq.length; k++) {
const newSeq = originalSeq.split('');
newSeq[j] = newSeq[j] === '0' ? '1' : '0';
newSeq[k] = newSeq[k] === '0' ? '1' : '0';
const z = newSeq.join('');
let count = 0;
for (const seq of sequences) {
if (hammingDistance(z, seq) === 2) {
count++;
}
}
// ããã³ã°è·é¢ã2ã§ããã·ãŒã±ã³ã¹ãåžžã«3ã€ã§ãªããã°falseãè¿ã
if (count !== 3) {
return false;
}
}
}
}
return true;
}
// äžããããã·ãŒã±ã³ã¹
const sequences = ['0000000', '0010111', '1001011', '1100101', '1110010', '0111001', '1011100', '0101110'];
const result = checkCondition(sequences);
console.log(result); // true or falseãåºåããã
=====
ãšããã§ããã®äœæŠãããŸãããã®ã§ãããªãã°ã
ïŒåã®åã€ãæè¡è
ãåžžã«åã®å ±åãããŠããã®ã§ãããªãã°ã
ïŒæäžã®ïŒæã§ã¯ãªã
ïŒæäžã®ïŒæã®åœé貚ãç¹å®ã§ããã®ã§ããïŒ
0çªãã7çªã®é貚ã«ã€ããŠã®åŠçã®ã€ããã§ä»ãŸã§ã¯ã話ãããŠããŸãããã
ã0çªã«ã¯2æãå²ãåœãŠããããšãšããŸãã
åŸåã®â ããâ¢ã®ã±ãŒã¹ã§â ã«ã¯å€æŽãªãã
â¡ã§ã¯ãå€æŽãããããã¯åã€ããªãã®ã±ãŒã¹ã§ãããïŒçªã³ã€ã³ããïŒçªãŸã§ã®ã©ããã«ãããããªããã°ã第äºæ®µéã§ã2æã®0çªã®ãã¡ã©ã¡ããåœã³ã€ã³ãªã®ãããïŒåã®åã€ãã«å€å®ããŠãããããšãšãªããŸãã
â¢ã§ã¯ãåœæž¬å®å€ãïŒåå«ãïŒåã®ããŒã¿ãåŸããããšãã«ãåœé貚ã®åè£ã¯ããã€ããïŒæã§ãããã§ã¯ãªãã0çªãåè£ã«ãªããšãã«ã¯4æãåœé貚ã®åè£ãšãªããŸãã
第äºæ®µéã§ã¯ãæ£çŽè
ã®æè¡è
ã2åæ®ã£ãŠããŸãã®ã§åœé貚ã®ç¹å®ã¯å¯èœã§ãã
ãããŒãïŒã
泚ç®ãã¹ãã¯ãé°æ§å ±åãããŠãã 3 人ããã枬å®ã«ãããªãã£ããæ¹ã®ã³ã€ã³ã§ããã
ããšã¯ãã«ãŒã¯ãã³ã®çµåãåé¡ã¯ïŒå€åãã¡ãå¹³é¢ã§èããå Žåã§ãïŒïŒãä»»æã® 2 ã€ã®çµã®éã«å¿
ãå
±é人ç©ã 1 人ã ãååšããããšã泚ç®ã«å€ããŸãã
DD++ ããã
ãã³ãã³ã®ãã³ããæé£ãããããŸãã
ãããããŸã§
åœã³ã€ã³åè£ããïŒå以äžãã§ãããšã¯ç€ºããŸããã
ããããªããäžåºŠïŒåãããšãããšãããŸã§ã¯ãŸã ããã€ããŠãããŸããã
ãªã«ãåçŽãªããšãèŠèœãšããŠããã«ã¡ãããããŸããã
ããå°ãã ãèããŠã¿ãŸãã
éœæ§å ±åæ° 4 ã ãã©ççŸãå«ãŸããŠããå Žåã®è©±ã§ãããïŒ
é°æ§å ±åããã 3 人ã A, B, C ãšããŸãã
A ãåã€ãã ãšä»®å®ãããšãA ã枬å®ã«ãããŠããŠãB ãš C ã枬å®ã«ãããŠããªãã³ã€ã³ã¯æ¬ç©åè£ã«ãªããŸãã
ããŠããã®ãããªã³ã€ã³ã¯äœæååšããã§ããããïŒ
DD++ ããã
ãã£ãããéãã§ããïŒïŒïŒ
æ倧ã®ãã³ãããŸããšã«ããããšãããããŸãïŒïŒïŒ
çæ§ãžã
ããšã§ãããããšèšŒæã®ã¢ãŠãã©ã€ã³ãæžããŠããæåã§ãã
ãã£ãã DD++ ããã«ãã³ããããã ããŠãããŸãã®ã«ããäžåºŠïŒåã§ãããã»ãã®èšŒæããŸã æžãäžããŠãããŸããããã³ãçµµã«ã€ããŠã¯æŒžãåºæ¥äžãããŸããããã©ããç³ãèš³ãªãããšã§ãã
[2191]ã®æçš¿ã§ç§ã¯ãïŒå以äžãã®èšŒæãªãåºæ¥ããšç³ããŠãããŸããã
ä»æ¥ã¯ãã¡ãã®ã»ãã®ã¡ã¢æžããäžèšã«æçš¿ããããŸãã
é貚ã®ååã
z, a, b, c, d, e, f, g
ãšããŸãã
æè¡è
ïŒåã«ã¯æ·»ãåãšã㊠1 ãã 7 ãäžããŸãã
ã¬ã€ã¬ãŒã«ãŠã³ã¿ãŒã«ãã
æ€æ»çµæã
q ãšããŸãã
q ã¯ã7åã®æè¡è
ã«ããé°æ§(0)ãéœæ§(1) ã®çµæã瀺ã
ðâ, ðâ, ðâ, ... , ðâ
ãšããŠè¡šããŸãã
ããŸãåœé貚ã a ã§ããç¶æ³äžã§ã
æè¡è
ã q ã®æ€æ»çµæãè¿ãããšããŸãã
ãŸããããªãã£æ€æ»ã«ããã
q 㯠a ã«å¯ŸããŠããã³ã°è·é¢ã 2 ã§ãããšå€æãããã®ãšããŸãã
äžè¬æ§ã倱ããªãããã«ããããã«ã
q ããz, a ãã g ãŸã§ã«äœ¿ãããæ·»ãåã§ããã 1 ãã 7 ãŸã§ã«ã€ããŠ
{h, k, m, n, p, s, t} = {1, 2, 3, 4, 5, 6, 7}
ãšããŸããè足ã§ãã䞡蟺ã®éåã®åèŠçŽ ã¯äžå¯Ÿäžå¯Ÿå¿ããŸãããã©ãé äžåã§ãã
以äžã®èšè¿°ã§äžè¬æ§ã倱ããªãããã®çŽæãŠãã
ãŸããðâ ã®ãããå転ãããã®ã ðÌ
â ãªã©ãšããªãŒããŒã©ã€ã³ã§è¡šãããšãšããŸãã
åœé貚 ð ã«ãããã æ€æ»çµæã ð ãšããŠäžãããããã®ãšããŸãã2 ãããã®å転ã¯ããããäœçœ® h, k ã§çºçããŠããããšãšããŸãã
å³ç€ºããã°ã次ã®ïŒè¡ã®åãããã®äžãšäžãšã¯ççå€ã¯çããã§ãã
ðÌ
â, ðÌ
â, ðâ, ðâ, ðâ, ðâ, ðâ
ðâ, ðâ, ðâ, ðâ, ðâ, ðâ, ðâ
ãã® ð ã ð ããåœé貚ã®åè£ãšããŠèããããããšããŸããããå³ç€ºããŸããšä»¥äžã®ïŒãã¿ãŒã³ã®ã¿ã«åãããŸãã
âãã¿ãŒã³ïŒ
ðÌ
â, ðÌ
â, ðâ, ðâ, ðâ, ðâ, ðâ
ðâ, ðâ, ðâ, ðâ, ðâ, ðâ, ðâ
ðÌ
â, ðÌ
â, ðâ, ðâ, ðâ, ðâ, ðâ
âãã¿ãŒã³ïŒ
ðÌ
â, ðÌ
â, ðâ, ðâ, ðâ, ðâ, ðâ
ðâ, ðâ, ðâ, ðâ, ðâ, ðâ, ðâ
ðâ, ðÌ
â, ðÌ
â, ðâ, ðâ, ðâ, ðâ
âãã¿ãŒã³ïŒ
ðÌ
â, ðÌ
â, ðâ, ðâ, ðâ, ðâ, ðâ
ðâ, ðâ, ðâ, ðâ, ðâ, ðâ, ðâ
ðâ, ðâ, ðÌ
â, ðÌ
â, ðâ, ðâ, ðâ
åæããŸãã
ãã¿ãŒã³ïŒã§ã¯ã
a ãš b ãšã¯ãããã³ã°è·é¢ã 0 ãšãªã£ãŠããŸããæ¬æ¥ããã¹ãããã³ã°è·é¢ãïŒã§ããããšãšççŸããŸãããã¿ãŒã³ïŒã¯ããããŸããã
ãã¿ãŒã³ïŒã§ã¯
a ãš b ãšã¯ãããã³ã°è·é¢ã 2 ãšãªã£ãŠããŸããæ¬æ¥ããã¹ãããã³ã°è·é¢ãïŒã§ããããšãšççŸããŸãããã¿ãŒã³ïŒã¯ããããŸããã
ãã¿ãŒã³ïŒã§ã¯
a ãš b ãšã¯ãããã³ã°è·é¢ã 4 ãšãªããæ¬æ¥ããã¹ãããã³ã°è·é¢ãïŒã§ããããšãšççŸããŸããããã¿ãŒã³ïŒã¯ããããŸãã
ãããããããã¿ãŒã³ïŒã®ã¿ããa ãš b ãšã®éã®é¢ä¿ã瀺ããŠããŸãããã¿ãŒã³ïŒãåæ²ããŸãã
ðÌ
â, ðÌ
â, ðâ, ðâ, ðâ, ðâ, ðâ
ðâ, ðâ, ðâ, ðâ, ðâ, ðâ, ðâ
ðâ, ðâ, ðÌ
â, ðÌ
â, ðâ, ðâ, ðâ
ããŠã第äžã®é貚 c ãåœé é貚ã®åè£ã ãšããŸãããã
ãããããã¿ãŒã³ã¯ä»¥äžã®ã¿ã§ãã
ðÌ
â, ðÌ
â, ðâ, ðâ, ðâ, ðâ, ðâ
ðâ, ðâ, ðâ, ðâ, ðâ, ðâ, ðâ
ðâ, ðâ, ðÌ
â, ðÌ
â, ðâ, ðâ, ðâ
ðâ, ðâ, ðâ, ðâ, ðÌ
â, ðÌ
â, ðâ
a ãš b ãšã®é¢ä¿ã¯ãa ãš c, b ãš c ãšã®é¢ä¿ã«ããã®ãŸãŸéçšããããã§ãã
枬å®çµæã§ãã q ã«ã€ããŠãa, b, c ãåœé貚ã®åè£ã§ããå Žåã«ã¯ããããå転ã®é¢ä¿ã¯äžã«å°œããããšãšãªããŸãã
ããã§ãæŽã«ãé貚 d ãåœé貚ã®åè£è¶³ãåŸãããšåããç«ãŠãŸãã
h,k,m,n,p,s 以å€ã®ãµãã€ã®äœçœ®ã§ãd 㯠q ã«ããããŠãããå転ããŠããªããŠã¯ãªããŸãããããã¯äžå¯èœã§ãã
ãããŸã§ããŸãšããã°ã
枬å®çµæ q ãäžãããããªãã°ãåœé貚ã§ããããšãããããã®ã¯ãa,b,c, ã®ïŒæãŸã§ã§ã4æ以äžã§ã¯ããåŸãªãããšãããããŸããã
ãªããïŒæ以äžã§ããããšã瀺ããã ãã§ãã£ãŠãïŒæäžåºŠã瀺ããããã§ã¯ãªãããšãä»èšããŠãããŸãã
ããïŒ
ç§ã¯ãããšçããã®ãã®ã®ã€ããã§æžããŠããã§ããâŠâŠ
éœæ§å ±åã 4 人ã ã£ãå Žåã
ã»å
šå¡æ£çŽ
ã»éœæ§å ±åãšé°æ§å ±åãããã㧠1 人åã€ã
ã®ããããã§ãããïŒ
åè
ã¯ããã³ã°è·é¢ 0 ã§è©±ã¯çµãã£ãŠããŸãã
åŸè
ã®å Žåãé°æ§å ±åè
ã®ãã¡ 2 人ã枬å®ããå€ããã³ã€ã³ãæ¬ç©åè£ã§ãã
ãããŠããã¯ä»»æã®é°æ§å ±åè
2 人çµã®éã«å
±éã§æž¬å®ããªãã£ãã³ã€ã³ãïŒèª°ã枬ããªãã£ããã€ä»¥å€ã§ïŒå¿
ãã¡ããã© 1 æãããåèšã§ 3C2 = 3 æååšããŸãã
DD++ ããããã³ãã³ãæãç
©ãããŠããŸããŸããŠç³ãèš³ããããŸããã§ãããæé£ãããããŸãã
â åé¡ã®æ¯ãè¿ããããŸãã
No.2129Dengan kesaktian Indukmu9æ8æ¥ 00:09
ã®åé¡ã§ã¯ 10 人ã®ã±ãŒã¹ã§ã¯è§£ãããã§ã¯9人ã§ã¯ïŒ ãšãªã£ãã®ãããšã®çºç«¯ã§ãã
ïŒäººã®ãã¡ã第äžæ®µéã§ïŒäººãæå
¥ãããã§åœé貚ãç¹å®ã§ããã°ããããã®ãªãã«èåœã®ã¬ããŒããããŠããæè¡è
ãïŒäººããã±ãŒã¹ãããããããã®å Žåã«ã¯åœé貚ãç¹å®ã§ããªããã®ã®ãåœé貚ã®åè£ããäžåºŠãïŒæã«ãªãã®ã§ã第äºæ®µéãšããŠæ®ãã®æ£çŽãªæè¡è
ïŒåãåœé貚ãç¹å®ã§ããã ãããããã«æè¡è
ã¯9人ã§ååã ããšããçæžããªã®ã§ããã
ä»åã¯ç¬¬äžæ®µéã®ã¢ã«ãŽãªãºã ã決å®ãããªããã€ãäžåºŠïŒäººãåé¡ã«ã€ããŠãå人çãªçµè«ãçããã«ãå ±åããããŸãã
///////////
ã泚æ:ãããŸã§ã®æµããšé°æ§éœæ§ã®æ±ããé転ããŠããŸã£ãŠããŸããç³ãèš³ãããŸããã
(ã²ãšãã«ç§ã®çŽèŠ³ã«ããããŠããŸã£ãã ããªã®ã§ããâŠâŠ)
///////////
â 第äžæ®µéã§ã®æž¬å®ã«ã€ããŠ
i ã 1 ãã 7 ãŸã§ã®æ·»åãšããŠäœ¿ããŸãã
j ã 1 ãã 8 ãŸã§ã®æ·»åãšããŠäœ¿ããŸãã
7人ããæè¡è
ã«ã1 ãã 7 ãšååãã€ããŸããæ·»åãšããŠã¯ãã£ã±ã i ã䜿ããŸãã
éœæ§éå Pj ã以äžã®ããã«å®çŸ©ããŸãã
P1 = {2, 3, 5}
P2 = {3, 4, 6}
P3 = {4, 5, 7}
P4 = {5, 6, 1}
P5 = {6, 7, 2}
P6 = {7, 1, 3}
P7 = {1, 2, 4}
P8 = {1, 2, 3, 4, 5, 6, 7}
â»äœè«ã§ãã P1 ãã P7 ã¯ãFANOå¹³é¢ãšãªã£ãŠããŸããP8 ã¯äœèšãã®ã§ãã
é°æ§éå Nj ã以äžã®ããã«å®çŸ©ããŸãã
N1 = {7, 6, 4, 1}
N2 = {1, 7, 5, 2}
N3 = {2, 1, 6, 3}
N4 = {3, 2, 7, 4}
N5 = {4, 3, 1, 5}
N6 = {5, 4, 2, 6}
N7 = {6, 5, 3, 7}
N8 = {}
8 æã®é貚ã«ä»¥äžã®ããã«ååãã€ããŸãã
C{Pj, Nj}
ããªãã¡ãé貚ã®ååã«ã€ããŠã¯éœæ§éåãšé°æ§éåã®çµã¿ã®éåã§å®çŸ©ããŸãã
é·ããªããŸããã®ã§ãæçš¿ããã£ããåºåããŸãã
â 第äžæ®µéã§ã®æž¬å®ã«ã€ããŠ(ã€ã¥ã)
7人ã®æè¡è
ã«æ¬¡ã®ããã«æž¬å®ã®æ瀺ãã ããŸããããªãã¡ã
i çªç®ã®æè¡è
ã¯ãPj ã®èŠçŽ ã« i ãå«ããããªé貚 C{Pj, Nj} ãã¬ã€ã¬ãŒã«ãŠã³ã¿ãŒã§èšæž¬ããŸãã
âæ©èŠè¡š | 1 2 3 4 5 6 7 âæè¡è
C{P1, N1} | 0 1 1 0 1 0 0
C{P2, N2} | 0 0 1 1 0 1 0
C{P3, N3} | 0 0 0 1 1 0 1
C{P4, N4} | 1 0 0 0 1 1 0
C{P5, N5} | 0 1 0 0 0 1 1
C{P6, N6} | 1 0 1 0 0 0 1
C{P7, N7} | 1 1 0 1 0 0 0
C{P8, N8} | 1 1 1 1 1 1 1
â»ãã®æ©èŠè¡šã§ã¯ã1 ãç«ã£ãŠããé貚ãèšæž¬ããŸãã
éœæ§ã®ã¬ããŒããããæè¡è
ã®éåã T ãšåã¥ããŸãã
Tããåœé貚ã®ããããæ¢ããšããããšãšãªããŸãã
ããšãã° T={2,3,5} ãªãã°åœé貚㯠C{P1, N1} ãšããããšãšãªããŸãã
â èšæž¬çµæTã®è©äŸ¡ã«ã€ããŠ
ç°¡åãªãã®ããé ã«ã
â T = Pj ãšãªã j ããããšã
â»ïŒäººãšãã«æ£ããã¬ããŒããæåºããããšãšãªããŸãã
åœé貚ã¯ãC{Pj, Nj}ã
â¡Tã®èŠçŽ æ°ã 2 ã®ãšã
â»ããªãã¡éœæ§ãé°æ§ãšåœã£ãã¬ããŒããã²ãšã€ãã£ãããšã«ãªããŸãã
j = 8 ãé€å€ã§ããŸãã
Pj â T ãªã j ãå¯äžã«å®ãŸããŸãã
åœé貚ã¯ãC{Pj, Nj}ã
â¢Tã®èŠçŽ æ°ã 4 ã®ãšã
â»é°æ§ãéœæ§ãšåœã£ãã¬ããŒããã²ãšã€ãã£ãããšã«ãªããŸãã
j = 8 ãé€å€ã§ããŸãã
Pj â T ãªã j ãå¯äžã«å®ãŸããŸãã
åœé貚ã¯ãC{Pj, Nj}ã
â£Tã®èŠçŽ æ°ã 6 ã®ãšã
â»é°æ§ãéœæ§ãšåœã£ãã¬ããŒããã²ãšã€ãã£ãããšã«ãªããŸãã
åœé貚ã¯ãC{P8, N8}ã
ãããŸã§â â¡â¢â£ã¯ T ãšåœé貚㮠Pj ãšã®ããã³ã°è·é¢ã 0 ãŸã㯠1 ãªã®ã§ããã
(ç¶ããŸã)
â èšæž¬çµæTã®è©äŸ¡ã«ã€ããŠ(ã€ã¥ã)
â€Tã®èŠçŽ æ°ã 1 ã®ãšã
â»éœæ§ãé°æ§ãšåœã£ãã¬ããŒãããµãã€ãã£ãããšã«ãªããŸãã
j = 8 ãé€å€ã§ããŸãã
ãã®ãšã T ã®èŠçŽ ãä¿¡ããããšãã§ããŸãã誀ã£ããµãã€ã®ã¬ããŒãã®åœ±é¿ãåããŠããªãããã§ãã
T â Pj
ãšãªã j ã¯ïŒã€ãããŸãã(FANOå¹³é¢ã®æ§è³ªã§ã)
ïŒã€ããåœé貚ã®åè£ C{Pj, Nj} ã«ã€ããŠã¯ç¬¬äºæ®µéã§ã(ãã以äžã¯èª€ã£ãã¬ããŒããçºçããªããã) åŠçå¯èœãšãªããŸãã
â¥Tã®èŠçŽ æ°ã 5 ã®ãšã
åœé貚ã®åè£ãšããŠãµãã€ã®ã°ã«ãŒããèããããŸãã
â¥âïŒ
â»C{P8, N8} ã«ã€ããŠãéœæ§ãé°æ§ãšèª€ã£ãã¬ããŒããïŒéçºçããã±ãŒã¹ã§ãã
åœé貚ã®åè£ãšããŠ
ãããã²ãšã€ãã®ã°ã«ãŒãã§ãã
â¥âïŒ
â»j=8 ãé€å€ããŠã® C{Pj, Nj} ã«ã€ããŠãé°æ§ãéœæ§ãšèª€ã£ãã¬ããŒããïŒéçºçããã±ãŒã¹ã§ãã
誀ã£ãã¬ããŒããåºããæè¡è
ã®æ·»åã®å€ã m,n ãšããŸãã
{m} â Pj ãªã C{Pj, Nj} 㯠ïŒåãããŸãã
ãã㯠FANOå¹³é¢ã®æ§è³ªã§ãã
{n} â Pj ãªã C{Pj, Nj} 㯠ïŒåãããŸãã
ããã FANOå¹³é¢ã®æ§è³ªã§ãã
{m,n} â Pj ãªã C{Pj, Nj} 㯠ïŒåãããŸãã
ãã㯠FANOå¹³é¢ã®æ§è³ªã§ãã
誀ã£ãã¬ããŒã m,n ãå«ãã C{Pj, Nj}ã¯
3+3-1=5 ãããïŒåãããŸãã
j=8 ãé€å€ããŠã® C{Pj, Nj} ã®ïŒåã®ãã¡ã
æ¬ç©ã®é貚ãšããŠé€å€ã§ããã®ã¯ïŒåãšãªããåœé貚ã®åè£ã¯ïŒåãšãªããŸãã
ããè¿é ãªè«æ³ã§ãããã
T â Pj ãæºãã j ã¯ïŒã€ãããšããããšãšãªããŸãã
â¥âïŒ
以äžããããã®â¥ã®ã±ãŒã¹ã§ã¯ãåœé貚ã®åè£ã®ææ°ã¯ïŒæãšãªããŸããã
(ã€ã¥ããŸãã次ã¯ç§ã«ãšã£ãŠã®å€©çå±±ã§ãDD++ ãããããç¥æµãæåããéšåã§ãã)
(æ¬æ¥ã¯å€é£¯ã®æ¯åºŠãããªããã°ãªããªã身åã§ãã®ã§ãã²ãã£ãšãããšææ¥ã«ãªããããããŸããã)
ç§ã«ãšã£ãŠãçŽèŠ³ãšéã§ããã®ã§ããã®å€æŽã¯ãããããã§ãã
6-2 ã¯ãéœæ§ãé°æ§ãšåœã£ãå ±åããªã以äžãé°æ§å ±åã¯å
šãŠä¿¡ããŠããããã㧠5 æãæ¬ç©ãšç¢ºå®ã§ããŸããã
DD++ ããã[2217]â ãã£ãšå«ã³ãŸããã
ããã¯ããã§ããâŠâŠèªæãªãã®ãç§ã®ããã«ãããããŸãããŠã¯ãã¡ã§ããâŠâŠ
æ°ãåãçŽããŠã以äžã§ã¯ãAâB ãå·®éåã®è¡šèšãšããŸãã
ã
âŠTã®èŠçŽ æ°ã 3 ã®ãšã
(ãã ããâ ã®ã±ãŒã¹ã¯é€ããŸãã)
â»éœæ§ãé°æ§ã«ãã誀ã£ãã¬ããŒãïŒéãšãé°æ§ãéœæ§ã«ãã誀ã£ãã¬ããŒããïŒéãšãèšïŒæ¬ã®èª€ã£ãã¬ããŒããçºçããŠããã±ãŒã¹ã§ãã
話ã®éœåäžãT ã«åºã¥ããŠUãäœããŸããUãå
šäœéåã§ãªããŠãã¿ãŸããã
U = {1, 2, 3, 4, 5, 6, 7}âT
ãããŠãåœé貚ã®C{Pj, Nj}ã«ã€ããŠ
Pj = {x, y, z}
Nj = {p, q, r, s}
ãšããŸãã
T = {p, y, z,}
U = {x, q, r, s}
ã枬å®ã®çµæãšããŠåŸãããŠããããšãšãªããŸãã
Tã®ïŒã€ã®èŠçŽ ã®ãã¡ãåœã¬ããŒããã²ãšã€ããã®ã§ããã®å¯èœæ§ã¯äžåºŠïŒéããããŸãã
åœç©ã倧æåã§æžããš
Pj = {X, y, z}
Pj = {x, Y, z}
Pj = {x, y, Z}
ã®ã©ãããå®çŸããŠããããšãšãªããŸãã
Tã«å«ãŸããïŒã€ã®èŠçŽ ã®ãã¡ïŒã€ãéžã¶ãšãããããã«å¯Ÿå¿ããŠé貚ãã²ãšã€å®ãŸããšããããšãšãªããŸãã
以äžããããã®âŠã®ã±ãŒã¹ã§ã¯ãåœé貚ã®åè£ã®ææ°ã¯ïŒæãšãªããŸããã
ããŠãçµè«ã§ãã
以äžããŸãšããŸããšã第äžæ®µéã§ïŒäººäžã«ïŒäººåã®åœã¬ããŒããçºçãããšãã«ã¯ãåœé貚åè£ã¯åžžã«ïŒåã§ããããšãããããŸãã
誀ãã¬ããŒãã®æ°ã 0 ãªãã 1 ã§ãããšãã«ã¯ãåœé貚ã¯ç¢ºå®ããŸãã
ãææ³ã
ããã¡ãã£ãšç°¡åã«æžããã°è¯ãã®ã§ããã
å
ã«æ瀺ãããŠããã ããæ©èŠè¡šã§
åã³ã0 ãš 1 ãšããããããªããããäžã§ãäžèšã«åæ²ãããŠããã ããŸãã
C{P1, N1} | 1 0 0 1 0 1 1 //C4
C{P2, N2} | 1 1 0 0 1 0 1 //C6
C{P3, N3} | 1 1 1 0 0 1 0 //C7
C{P4, N4} | 0 1 1 1 0 0 1 //C3
C{P5, N5} | 1 0 1 1 1 0 0 //C5
C{P6, N6} | 0 1 0 1 1 1 0 //C2
C{P7, N7} | 0 0 1 0 1 1 1 //C1
C{P8, N8} | 0 0 0 0 0 0 0 //C0
ãªããåè¡ã®å³ç«¯ã¯ãããããå§ãã説æã®éœåäžãåé貚ã«æ°ããååã¥ããããã®ã§ãã
ãããåã®æä»çè«çåã®èšå·ãšããŠãâãã䜿ãããšãšããŸãã
ããšãã°ã 0110 â 1010 = 1100 ã§ãã
1 †n â€7 ã«ã€ããŠ
C0 â Cn = Cn
ã¯ãèªæã§ããã
ããã¯ãªããã®ãã以äžã®ããã«ãªã£ãŠããããšã§ãã
C3 = C2 â C1
C5 = C4 â C1
C6 = C4 â C2
C7 = C4 â C2 â C1
ã€ãŸããC1,C2,C4 ããç¥ã£ãŠããã°ã
ä»ã«ã€ããŠã¯ãïŒé²æ°ã®ä»æãã«ãã£ãŠå²ãåºãããšããããšã«ãªããŸãã
ããã¯ç§ã«ãšã£ãŠã¯éèªæãªããšã§ãã®ã§
çæ§ã«ããå ±åãã次第ã§ãã
OEIS ã®
A075931
List of codewords in binary lexicode with Hamming distance 5 written as decimal numbers.
ããã
0,31,227,252,805,826,966,985,1354,1365,1449,1462,1647,1648,1676,1683
ãŸã§ãå©çšããŠ
笊å·é· 11 ãæå°ããã³ã°è·é¢ 5 ã®ç¬Šå·ã®ãããåã以äžã®ããã«äœæããŸããã
"12 0 3 00 4 0000"ââèŠåºã
"00 0 0 00 0 0000",//0
"00 0 0 00 1 1111",//1
"00 0 1 11 0 0011",//2
"00 0 1 11 1 1100",//
"01 1 0 01 0 0101",//4
"01 1 0 01 1 1010",
"01 1 1 10 0 0110",
"01 1 1 10 1 1001",
"10 1 0 10 0 1010",//8
"10 1 0 10 1 0101",
"10 1 1 01 0 1001",
"10 1 1 01 1 0110",
"11 0 0 11 0 1111",
"11 0 0 11 1 0000",
"11 0 1 00 0 1100",
"11 0 1 00 1 0011",
èŠåºãã«ã€ããŠèª¬æããŸãã
"12 0 3 00 4 0000"
ã§ã1,2,3,4 ã¯ãããŒã¿ããã(4ããã)ãšããŠäœ¿ãããããäœçœ®ã§ããäžäœããæé ã«ããŠããŸãã
"12 0 3 00 4 0000"
"01 1 0 01 1 1010",
äžã®äŸã§ã¯ã0101 ãæå³ããŠããã10é²ã§ã¯ 5 ã§ãããããã確ãã« 0 ãªãªãžã³ã§ 5 çªç®ã®ãããåã§ããããšã«çæããŠé ããã°å¹žãã§ãã
äžã®äžèŠ§è¡šã¯ã4ãããã®ããŒã¿ãããã®ç¬Šå·èªãã11ãããã«ãšã³ã³ãŒããããã®ãšãªã£ãŠããŸãã
ååã®æçš¿ãNo.2220 ã§çºçããŠããæ©èš¶äžæè°ãªçŸè±¡ããäžã§ããããŠããã®ãã«ã€ããŠããã°ã©ã ã§æ€èšŒããŸãããšããããªãŒã±ãŒãšãªããŸããã
"00 0 0 00 1 1111",//1
"00 0 1 11 0 0011",//2
"01 1 0 01 0 0101",//4
"10 1 0 10 0 1010",//8
ãç¥ã£ãŠããã°ã
ä»ã®11åã®ç¬Šå·èªã¯ãæä»çè«çåã§ãã£ãŠèšç®ã§ããã®ã§ãã
ãããããèªæã ãããšãæãã«ãªããããããããã£ããããããããŸããã
ããããªããã§ããã
ãã® A075931 ã®æ°åã¯ã0 ããé ã« 1 ã¥ã€ãã«ãŠã³ãã¢ããããŠãããããŒãã«äžã«ãããŠãã(å
è¡ãã)å
šãŠã®æ°ãšããã³ã°è·é¢ã5以äžãšãªãæ°ãã¿ã€ããŠã¯ããŒãã«ã«è¿œå ããŠæºã蟌ãã§ããã ãã§ãäœã£ãŠãããã§ãã貪欲ã¢ã«ãŽãªãºã ã§ãã£ãŠã°ãªãŒãã£ã«ãæãæå³ã§ã¯æ±ãäœãæ¹ã
ãªã®ã«ã[2220]ã®æçš¿ã§è§Šããæ³åãããããããããA075931 ã§ãç§ãåæã«èšå®ãããèŠåºãããã笊å·èªã®å€ãçŽã«ç€ºããŠãããªããŠãäžæè°ã§äžæè°ã§ãªããªãã®ã§ãã
ããšãã°ãæå°ããã³ã°è·é¢ã 6 ã§ã笊å·é·ã 13 ã笊å·èªæ°ã 13 ã®ã次ã®ç¬Šå·ã«ã¯ãä»è©±é¡ã«ããŠãã[æ³å]ãç§ã¯ã¿ã€ããããŸããã
"0011101111101",
"1001110111110",
"0100111011111",
"1010011101111",
"1101001110111",
"1110100111011",
"1111010011101",
"1111101001110",
"0111110100111",
"1011111010011",
"1101111101001",
"1110111110100",
"0111011111010",
ããŒã¿ããããã©ããªã®ããææ§ã§ãããã
ãµã€ã¯ãªãã¯ã§ãããã
綺éºãªä»æãã§äœã£ãå²ã«ã¯ã
ã°ãªãŒãã£ã«äœã£ããã®ã«ãæãæå³ãè² ããŠããã®ã§ãã
ãã®è¬ãé¢çœããŠãããããªãã§ãã
2221 ã§ç§ã¯ç¡æåæµã«ããŒã¿ãããã®äœçœ®ã決ããŠããã®ã§ããã(ã€ãŸããã§ãã¯ãããã®äœçœ®ã決ããŠããã®ã§ãã)
ãšã£ãã®æã«ã³ã³ãŠã§ã€ããã決ããŠïŒãŸãããã©ããã£ããããïŒã
ãã®ããŒãã«ã倧ãããªããšãããã®äœçœ®ã¯ãããããšã®ããšããŸãã