Forum for Shusaku Number

Automating Shusaku Numbers via KGS [#696]

Back to forum     Back to page

New reply

 
reply
76.168.53.88: Automating Shusaku Numbers via KGS (2006-10-30 21:03) [#2332]

It occurs to me that the KGS game database could be used to very easily calculate Shusaku numbers for all KGS players. Create a table with just player handle and Shusaku number fields. Set all the Shusaku numbers to null (in lieu of infinity) Pick a few players with certain and well-documented Shusaku numbers and input those numbers into the table. Then go through in a loop, one player at a time. For each player, look at all their game opponents' Shusaku number, if any. If there is one, set the player's Shusaku number at one plus the lowest such number. Keep the loop going until it goes through once without changing.

Is the games database easy to access from the outside?

reply
velobici: its an application problem....all the math is done already (2006-10-30 21:52) [#2333]

Automating the Shusaku Number is just automating the creation of a [ext] rooted tree, where Shusaku is the root of the tree, from a set of connections (games). The same problem arises in using Web of Trust signing systems. There is [ext] software [ext] 2 [ext] 3 [ext] 4 to create such diagrams. A little bit of Perl work is required to make the software grab a list of games for a particular player from a go server, add in the connections, iterate for all players not seen before.

The games database is [ext] easily accessed from the web.

Each national federation would be well advised to create, analyze and locate area/reagions that are only weakly connected and strive to pair people from weakly connected areas in the yearly congress.

reply
76.168.53.88: Don't know how to use PERL (2006-11-01 01:19) [#2338]

Sounds good, though I don't know how to use PERL to grab a player's data. I was sort of hoping there was a conventional database way of doing it. Is the database big?

reply
velobici: ((no subject)) (2006-11-01 15:31) [#2340]

Velobici: Perl is very easy, but Ruby or any other scripting language should work fine. Please check with WMS before doing this. Also, build pauses into the system, so that it waits some seconds after pulling each web page. You dont want to launch a denial of service attack on the website inadvertantly.

reply
Dudzik: Done! (kind of) (2006-11-02 18:17) [#2341]

Dudzik: Ran into this thread and decided to throw something together in Ruby. It works, although I certainly haven't run it for very long yet, stopping it after a dozen usernames or so. Just dropped an email to WMS to discuss some of the potential problems.

If I get the go-ahead, I'm thinking of rolling this into a Rails app, making it easy for anyone to find, say, the shortest path between two players.

 
Back to forum     Back to page

New reply


Forum for Shusaku Number
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