Re: (Probably flawed) Polynomial time Graph Isomorphism
- From: "Bill Cox" <bill@xxxxxxxxxxxxx>
- Date: 22 Sep 2006 11:08:36 -0700
I don't understand the modified hash phase.
Suppose G1 and G2 have the same initial hashes.
I pick a node in G1 to modify. Now what do I do? Try modifying each node
in G2 the same way to see if the hashes now match? Then what, if I get
multiple matches?
Patricia
Thanks for the reply!
I didn't describe the fix to the algorithm well at all. I'll reword it
on the blog. Basically, the problem in the first version of the
algorithm was that if we have graphs with the same number of vertices
and when every vertex in both graphs have the same degree, then there's
no initial difference in the hash values, and they stay in sync. The
original algorithm failed in this case.
To get around this problem, I ran the algorithm once per vertex in the
graph. Each time, I started with vertex hash values equal to its
degree, except for the one vertex chosen as the start-point for that
iteration. That vertex would start with a different hash value than
the rest, for example it could be a large fixed constant. Then, hash
values change throughout the graph and settle to unique values on each
node, unless the graph is automorphic, or in the unlikely case of a
hash collision.
To generate a label for a vertex, I XOR the hash results from each
iteration together. Thus, it doesn't matter what order I do the hash
iterations in either graph, and matching vertices should wind up with
the same hash values.
Does that make sense (or even work)?
.
- Follow-Ups:
- Re: (Probably flawed) Polynomial time Graph Isomorphism
- From: Patricia Shanahan
- Re: (Probably flawed) Polynomial time Graph Isomorphism
- References:
- (Probably flawed) Polynomial time Graph Isomorphism
- From: Bill Cox
- Re: (Probably flawed) Polynomial time Graph Isomorphism
- From: Patricia Shanahan
- (Probably flawed) Polynomial time Graph Isomorphism
- Prev by Date: Re: the lowest number of comparisons in string matching
- Next by Date: Re: (Probably flawed) Polynomial time Graph Isomorphism
- Previous by thread: Re: (Probably flawed) Polynomial time Graph Isomorphism
- Next by thread: Re: (Probably flawed) Polynomial time Graph Isomorphism
- Index(es):
Relevant Pages
|