From: Michał A. <ant...@gm...> - 2009-06-25 15:59:45
|
Regarding mails before: Crush and crash....yeah my mistake:) I went with wrong letter...:) thx:) >>Now that I am focused on this I do however see one possible problem with the naming. Consider two arcs X and Y, the first >>between the nodes 'a' and 'bc' and the second between 'ab' and 'c. >> X => $u$v = 'a' + 'bc' = 'abc' >> Y => $u$v = 'ab' + 'c' = 'abc' Oh, I accidentaly ommited that case... Right, the same problem was considering Bellman's Ford, but this time I did one bad assumption and lost it. Anyways, just changing keys to lists this time didn't do the trick, because there was a problem during execution of isEulerian? method. Fleury method ( used by Eulerian ) returns error, when it's given such graphs. I will have to take a deeper look into it, as firstly I wanted to end the new TSP implementation. Probably, it's not a big problem, will see.... >>This command makes the command ::struct::graph available as ::graph >>The test environment masked the bug. >>As reminder for myself to get rid of this >> https://sourceforge.net/tracker/?func=detail&aid=2811747&group_id=12883&atid=112883 Oh, right... so now it's obvious why tests went good everytime.... I'm glad that by accident it helped to find a bug. >>Now I am reminded of RosettaCode, a nice site for exmaple tasks implemented by lots of languages for comparison. >>Tcl's page is >> http://www.rosettacode.org/wiki/Category:Tcl >>And >> http://www.rosettacode.org/wiki/Tasks_not_implemented_in_Tcl Interesting! Actually, now after spending some time coding in Tcl, I'm a bit surprised, how it happened that Tcl was almost fully omitted during classes at my University.... We was using Tcl scripts for example, when doing some simulations on computer networks, but when it came to subjects about programming in script languages, there was nothing about Tcl...weird. Best Regards, Michal Antoniewski |