{"id":182,"date":"2005-06-21T22:22:36","date_gmt":"2005-06-22T03:22:36","guid":{"rendered":"http:\/\/UnhinderedByTalent.com\/Phi\/archives\/2005\/06\/21\/my-id-gotten-rusty\/"},"modified":"2005-06-21T23:02:38","modified_gmt":"2005-06-22T04:02:38","slug":"my-id-gotten-rusty","status":"publish","type":"post","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2005\/06\/21\/my-id-gotten-rusty\/","title":{"rendered":"My, I&#8217;d gotten rusty"},"content":{"rendered":"<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/www.thomasmcphee.com\/html\/modules\/gallery\/albums\/album24\/IMG_3428.thumb.jpg?resize=150%2C113\" alt=\"Rusting metal parts at Helmshore Mills Textile Museum\" width=\"150\" height=\"113\" align=\"right\" hspace=\"10\" vspace=\"10\" data-recalc-dims=\"1\" \/>I competed in a <a href=\"http:\/\/www.topcoder.com\/tc\">TopCoder programming competition<\/a> for the first time in <em>way<\/em> too long, and it showed.  I didn&#8217;t <em>completely<\/em> tank (I&#8217;ve certainly done worse), but it took too darn long to find some of those neurons and get them to fire.  I hadn&#8217;t actually competed since last October, which was so far back that they&#8217;d taken me out of the ranking tables (I think you have to compete every six months to remain active), but this should restore that.  Unfortunately being so rusty didn&#8217;t really help my rating much, and I dropped from a 1519 to 1487.  This drops out of the yellow region of the ratings table and into the top of the blue region, which is the first time I&#8217;ve ever not been yellow since my first competition nearly 2 years ago.  I&#8217;m quite bummed.  With a little luck I should be able to compete several more times this summer, brush some of that dust off, and get back into mid-yellow where I think I belong.<\/p>\n<p><!--more--><\/p>\n<p>I completely blocked on the 250 point problem and eventually decided to skip it and open the 500 point problem.  That one I managed to plod through, but it took longer than it should have and I only got 233 points for it.  (I think if I&#8217;d been in &#8220;better shape&#8221; I should have been over 300 there.)  I then looked at the 1,000 point problem, decided it was way past what I could do in the 20 minutes remaining (esp. given how things had been going).  It looks like a pretty standard alpha-beta search problem, but I tend to get lost in the details of those kinds of things and take forever on them.  So I went back to the first problem and after a few minutes of reflection figured out how to use the symmetry of the problem to reduce it to a simple closed form that took all of about 2 seconds to code up.  I only got 95 points because I&#8217;d spent so long on it (they count all the time from when you first open the problem, which included all my time on the 500 point problem in this case).  If I&#8217;d seen how to do that right away I probably could have gotten over 200 points on that.  Sigh.<\/p>\n<p>The nice thing about going back to that first problem is I nearly fell into a simple trap (a case where the input string only had one character), which suggested that during the challenge phase I should look for others that made that mistake (and didn&#8217;t catch it).  I got one successful challenge that way, and nearly had another, but got nipped by someone else a few seconds before I submitted mine.  With the additional 50 points from that successful challenge, I went into the system test phase with about 380 points, which put me about the middle of my room.<\/p>\n<p>The real kick in the pants, though, was when my second problem didn&#8217;t survive the system tests, which plummeted me to 145 points, putting me at 218th out of 320 that competed in Division I tonight.  Sigh again.  It turns out that I passed a ton of system tests, and then timed out on a particularly long one.  Hmph.  I&#8217;m not sure why that happened.  Perhaps I just needed to tighten up some code (it wasn&#8217;t particularly speedy), or perhaps I needed to use something like <a href=\"http:\/\/en.wikipedia.org\/wiki\/Memoization\">memoization<\/a> or <a href=\"http:\/\/en.wikipedia.org\/wiki\/Dynamic_programming\">dynamic programmin<\/a>g to avoid recomputing values.<\/p>\n<p>In my long stretch of not competing they apparently added a new unused code rule (or put more teeth in an old rule that I don&#8217;t remember).  This is nice, because you used to get programs that were absolutely <em>full<\/em> of unused stuff, which made figuring them out a lot harder during the challenge phase.<\/p>\n<p>I also had trouble connecting and had to use HTTP tunnelling, which I&#8217;ve never needed to use before.  I&#8217;m not sure if that&#8217;s a change on their end or UMM&#8217;s end, so I&#8217;ll have to do a little poking around.<\/p>\nNo tag for this post.\n\t<h4>Related posts<\/h4>\n\t<ul class=\"st-related-posts\">\n\t<li>No related posts.<\/li>\n\t<\/ul>\n\n","protected":false},"excerpt":{"rendered":"<p>I competed in a TopCoder programming competition for the first time in way too long, and it showed. I didn&#8217;t completely tank (I&#8217;ve certainly done worse), but it took too darn long to find some of those neurons and get them to fire. I hadn&#8217;t actually competed since last October, which was so far back &hellip; <a href=\"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2005\/06\/21\/my-id-gotten-rusty\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;My, I&#8217;d gotten rusty&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0},"categories":[4],"tags":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p90sy-2W","jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"jetpack-related-posts":[{"id":253,"url":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2005\/10\/30\/another-fine-showing-at-digi-key\/","url_meta":{"origin":182,"position":0},"title":"Another fine showing at Digi-Key","author":"Nic McPhee","date":"30 Oct 05","format":false,"excerpt":"Each year Digi-Key (a major catalogue\/on-line vendor of electronic components several hours north of here) hosts a very nice programming and problem solving competition for several regional schools. They obviously see it as a valuable computing and PR exercise as they really lay out the red carpet for us each\u2026","rel":"","context":"In &quot;Computing&quot;","block_context":{"text":"Computing","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/category\/computing\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1213,"url":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2010\/02\/20\/thomas-is-heading-to-the-minnesota-state-finals-for-poetry-out-loud\/","url_meta":{"origin":182,"position":1},"title":"Thomas is heading to the Minnesota state finals for Poetry Out Loud!","author":"Nic McPhee","date":"20 Feb 10","format":false,"excerpt":"Thomas McPhee placed first at the 2010 Poetry Out Loud Lake Regional in Fergus Falls, and will go on to the state finals in the Fitzgerald Theater on Monday, 8 March 2010. This is the fourth straight year that at least one student from the Morris Area High School has\u2026","rel":"","context":"In &quot;Art&quot;","block_context":{"text":"Art","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/category\/art\/"},"img":{"alt_text":"Award ceremony at the 2010 Poetry Out Loud regional, Fergus Falls, MN","src":"https:\/\/i0.wp.com\/farm3.static.flickr.com\/2749\/4374177624_0e8a8a6209.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":220,"url":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2005\/08\/24\/woot-on-to-tco-round-3\/","url_meta":{"origin":182,"position":2},"title":"Woot!  On to TCO Round 3!","author":"Nic McPhee","date":"24 Aug 05","format":false,"excerpt":"In a surprise bout of competence, mostly brought on by a fairly math-y set of problems and fairly good focus, I managed to be one of the 200 to advance to Round 3 of the Top Coder Open! Huzzah! I even placed third in my room, earning a whopping (but\u2026","rel":"","context":"In &quot;Computing&quot;","block_context":{"text":"Computing","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/category\/computing\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":218,"url":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2005\/08\/20\/got-another-topcoder-open-t-shirt\/","url_meta":{"origin":182,"position":3},"title":"Got another TopCoder Open t-shirt!","author":"Nic McPhee","date":"20 Aug 05","format":false,"excerpt":"I've just managed to get my third TopCoder Open t-shirt in a row! Each year's Open runs through several phases culminating in a handfull of far better contest programmers than me going to some nifty place to compete for 10's of thousands of dollars in prizes. Here in the early\u2026","rel":"","context":"In &quot;Computing&quot;","block_context":{"text":"Computing","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/category\/computing\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":465,"url":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2007\/02\/13\/another-25-favorites\/","url_meta":{"origin":182,"position":4},"title":"Another 25 favorites","author":"Nic McPhee","date":"13 Feb 07","format":false,"excerpt":"Another 25 favorites, originally uploaded by Unhindered by Talent. Another crop of excellent shots from Flickr. 1. Portland's Barad-d\u00fbr, 2. state of mind, 3. brenda was quite enjoying that massage, 4. got better again, 5. walk, 6. Il cuore di marmo, 7. The Insurmountable Distance, 8. take the high road,\u2026","rel":"","context":"In &quot;Art&quot;","block_context":{"text":"Art","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/category\/art\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":939,"url":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2009\/03\/06\/twin-cities-folks-poetry-out-loud-state-finals-on-monday\/","url_meta":{"origin":182,"position":5},"title":"Twin Cities folks: Poetry Out Loud state finals on Monday!","author":"Nic McPhee","date":"6 Mar 09","format":false,"excerpt":"In a bit of shameless promotion for our remarkable offspring, I'm putting in a plug for the Minnesota state finals of the national Poetry Out Loud competition. The finals will be Monday, 9 March, at 9:30am in St. Paul's Fitzgerald Theater, and are free and open to the public. The\u2026","rel":"","context":"In &quot;Art&quot;","block_context":{"text":"Art","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/category\/art\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/posts\/182"}],"collection":[{"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/comments?post=182"}],"version-history":[{"count":0,"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/posts\/182\/revisions"}],"wp:attachment":[{"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/media?parent=182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/categories?post=182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/tags?post=182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}