Last active
March 20, 2025 15:48
-
-
Save pgtwitter/2674e423c451957d95bd7484175a6e0c to your computer and use it in GitHub Desktop.
欧文モールス信号のツリーをGrok3に考えさせて延々とやりとりした成果(?)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
digraph MorseTree { | |
rankdir=TB; | |
bgcolor="white"; | |
nodesep=0.5; // 左右間隔を維持 | |
pad=0.2; // 余白を維持 | |
// ノード定義 | |
START [shape=rectangle]; | |
E [shape=rectangle]; A [shape=rectangle]; W [shape=rectangle]; J [shape=rectangle]; | |
I [shape=rectangle]; S [shape=rectangle]; H [shape=rectangle]; V [shape=rectangle]; | |
U [shape=rectangle]; F [shape=rectangle]; R [shape=rectangle]; L [shape=rectangle]; | |
P [shape=rectangle]; B [shape=rectangle]; "1" [shape=rectangle]; "2" [shape=rectangle]; | |
"3" [shape=rectangle]; "4" [shape=rectangle]; "5" [shape=rectangle]; T [shape=rectangle]; | |
N [shape=rectangle]; D [shape=rectangle]; K [shape=rectangle]; C [shape=rectangle]; | |
X [shape=rectangle]; "6" [shape=rectangle]; M [shape=rectangle]; G [shape=rectangle]; | |
Z [shape=rectangle]; "7" [shape=rectangle]; "8" [shape=rectangle]; O [shape=rectangle]; | |
Q [shape=rectangle]; Y [shape=rectangle]; "9" [shape=rectangle]; "0" [shape=rectangle]; | |
"(dummy)" [shape=rectangle, label="(dummy)"]; | |
"(dummy2)" [shape=rectangle, label="(dummy)"]; | |
"(dummy3)" [shape=rectangle, label="(dummy)"]; | |
// エッジ定義 | |
START -> T [penwidth=2, weight=2000]; | |
T -> N [penwidth=3, style=dashed]; | |
N -> D [penwidth=3, style=dashed]; | |
D -> B [penwidth=3, style=dashed]; | |
B -> "6" [penwidth=3, style=dashed]; | |
T -> M [penwidth=2, weight=2000]; | |
M -> G [penwidth=3, style=dashed]; | |
G -> Z [penwidth=3, style=dashed]; | |
Z -> "7" [penwidth=3, style=dashed]; | |
M -> O [penwidth=2, weight=2000]; | |
O -> "(dummy2)" [penwidth=3, style=dashed]; | |
"(dummy2)" -> "8" [penwidth=3, style=dashed]; | |
O -> "(dummy)" [penwidth=2, weight=2000]; | |
"(dummy)" -> "9" [penwidth=3, style=dashed]; | |
"(dummy)" -> "0" [penwidth=2, weight=2000]; | |
G -> Q [penwidth=2, weight=2000]; | |
N -> K [penwidth=2, weight=2000]; | |
K -> C [penwidth=3, style=dashed]; | |
K -> Y [penwidth=2, weight=2000]; | |
D -> X [penwidth=2, weight=2000]; | |
START -> E [penwidth=3, style=dashed]; | |
E -> I [penwidth=3, style=dashed]; | |
I -> S [penwidth=3, style=dashed]; | |
S -> H [penwidth=3, style=dashed]; | |
H -> "5" [penwidth=3, style=dashed]; | |
E -> A [penwidth=2, weight=2000]; | |
A -> R [penwidth=3, style=dashed]; | |
R -> L [penwidth=3, style=dashed]; | |
A -> W [penwidth=2, weight=2000]; | |
W -> P [penwidth=3, style=dashed]; | |
W -> J [penwidth=2, weight=2000]; | |
J -> "1" [penwidth=2, weight=2000]; | |
I -> U [penwidth=2, weight=2000]; | |
U -> F [penwidth=3, style=dashed]; | |
U -> "(dummy3)" [penwidth=2, weight=2000]; | |
"(dummy3)" -> "2" [penwidth=2, weight=2000]; | |
S -> V [penwidth=2, weight=2000]; | |
V -> "3" [penwidth=2, weight=2000]; | |
H -> "4" [penwidth=2, weight=2000]; | |
// rank指定(- の出現回数に基づく、全ノードをカバー) | |
{rank=same; START; E; I; S; H; "5"} // - が 0 回 (6) | |
{rank=same; T; N; D; B; "6"; A; R; L; U; V; "4"; F} // - が 1 回 (12) | |
{rank=same; M; G; Z; "7"; W; P; "3"; "(dummy3)"; K; X; C} // - が 2 回 (11) | |
{rank=same; O; "(dummy2)"; "8"; J; "2"; Q; Y} // - が 3 回 (7) | |
{rank=same; "(dummy)"; "9"; "1"} // - が 4 回 (3) | |
{rank=same; "0"} // - が 5 回 (1) | |
} |
Author
pgtwitter
commented
Mar 19, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment