Directed Acyclic Graph

    Keywords: Theory

A directed acyclic graph (DAG) is a directed graph that contains no directed cycles. See the [ext] Wikipedia article for more background information on DAGs.

In Go, we can use a DAG to model sequences of moves, where vertices represent positions, and a directed edge link vertex u to vertex v if the position at v can be reached by making a move from the position at u. In other words, sequences are directed paths in the DAG. Note that the graph is directed as there is a sense of forwardness as more moves are played, and the graph is acyclic as positions do not repeat in most rule sets due to superko rules (see ko rules). When two different sequences from the same starting vertex leads to the same ending vertex, we say that a transposition has occurred.

Note that a directed tree is a kind of DAG in which any two vertices are connected by exactly one path. Game trees such as SGF files typically store a main line or actual game sequence together with possible variations and branches. However, a strict tree representation causes duplication of subtrees when the sequences contain transpositions, which makes annotations and other commenting tasks inefficient. As transpositions often occur in Go problems such as life-and-death problems, goproblems.com automatically detects transpositions in SGF files and links them together, effectively forming some kind of a DAG.

Phelan: Interesting, didn't know that goproblems used something like that. Do you think it could be used outside of that context? I mean, could it be used as a new go game format?

unkx80: This feature isn't documented. When I took a closer look at the SGFs embedded in the HTML source, it appears that the SGF format itself is unchanged, so I have amended the text.

Phelan: Ah, ok. Thanks.


Charles Matthews: In cyclic positions taxonomy the consequences of dropping the 'acyclic' condition, for local positions on a sub-board, are explored mathematically.

This is intended as as systematic way forward through the many ko-like positions.

I proposed there that one should identify the nodes of the 'best' DAG underlying a cyclic position as levels of the corresponding ko-like phenomenon. -- Charles


Directed Acyclic Graph last edited by Phelan on June 23, 2009 - 21:06
RecentChanges · StartingPoints · About
Edit page ·Search · Related · Page info · Latest diff
[Welcome to Sensei's Library!]
RecentChanges
StartingPoints
About
RandomPage
Search position
Page history
Latest page diff
Partner sites:
Go Teaching Ladder
Goproblems.com
Login / Prefs
Tools
Sensei's Library