數獨問題 - 數獨

By Harry
at 2009-07-03T12:21
at 2009-07-03T12:21
Table of Contents
原題:
A B C D E F G H I
┌─┬─┬─┬─┬─┬─┬─┬─┬─┐
a│1│3│8│4│5│7│2│6│9│
├─┼─┼─┼─┼─┼─┼─┼─┼─┤
b│7│5│2│ │ │6│3│8│4│
├─┼─┼─┼─┼─┼─┼─┼─┼─┤
c│4│6│9│3│2│8│7│1│5│
├─┼─┼─┼─┼─┼─┼─┼─┼─┤
d│9│ │3│8│6│ │ │ │2│
├─┼─┼─┼─┼─┼─┼─┼─┼─┤
e│6│8│ │2│7│ │ │ │3│
├─┼─┼─┼─┼─┼─┼─┼─┼─┤
f│2│ │ │ │3│4│6│ │8│
├─┼─┼─┼─┼─┼─┼─┼─┼─┤
g│ │ │7│ │ │2│8│ │6│
├─┼─┼─┼─┼─┼─┼─┼─┼─┤
h│ │9│ │6│8│ │ │2│7│
├─┼─┼─┼─┼─┼─┼─┼─┼─┤
i│8│2│6│7│4│ │ │ │1│
└─┴─┴─┴─┴─┴─┴─┴─┴─┘
此題用了兩個中高階的解題技巧:
1. X-WING
先看候選數 9:
A B C D E F G H I
┌─┬─┬─┬─┬─┬─┬─┬─┬─┐
a│1│3│8│4│5│7│2│6│9│
├─┼─┼─┼─┼─┼─┼─┼─┼─┤
b│7│5│2│9│9│6│3│8│4│
├─┼─┼─┼─┼─┼─┼─┼─┼─┤
c│4│6│9│3│2│8│7│1│5│
├─┼─┼─┼─┼─┼─┼─┼─┼─┤
d│9│ │3│8│6│ │ │ │2│
├─┼─┼─┼─┼─┼─┼─┼─┼─┤
e│6│8│ │2│7│9│9│9│3│
├─┼─┼─┼─┼─┼─┼─┼─┼─┤
f│2│ │ │9│3│4│6│9│8│
├─┼─┼─┼─┼─┼─┼─┼─┼─┤
g│ │ │7│9│9│2│8│9│6│
├─┼─┼─┼─┼─┼─┼─┼─┼─┤
h│ │9│ │6│8│ │ │2│7│
├─┼─┼─┼─┼─┼─┼─┼─┼─┤
i│8│2│6│7│4│9│9│9│1│
└─┴─┴─┴─┴─┴─┴─┴─┴─┘
先看F、G兩行,其中Fe、Fi中有一個9。
Ge、Gi中有一個9。
所以此四格中有兩個9。
再看e、i兩列,其中Fe、Ge、He中有一個9。
Fi、Gi、Hi中有一個9。
所以此六格中有兩個9。
但已知Fe、Fi、Ge、Gi中有兩個9。
所以He、Hi兩格可以排除9。
--
Tags:
數獨
All Comments

By Susan
at 2009-07-05T10:28
at 2009-07-05T10:28
Related Posts
數獨問題

By Noah
at 2009-07-02T19:39
at 2009-07-02T19:39
數獨問題

By Dorothy
at 2009-07-02T12:25
at 2009-07-02T12:25
蔥油餅之我的媽呀太好吃了+林老師結緣記

By Hedy
at 2009-07-02T07:59
at 2009-07-02T07:59
數獨問題

By Eden
at 2009-07-01T11:06
at 2009-07-01T11:06
數獨解法 Wing 起點 中繼點 終點

By Steve
at 2009-07-01T10:49
at 2009-07-01T10:49