hacker.org Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Search found 16 matches
hacker.org Forum Index
Search found 16 matches
Author Message
Topic: Code optimization
klavierspieler21

Replies: 57
Views: 57089
PostForum: Crossflip   Posted: Tue Aug 10, 2010 11:45 pm   Subject: Code optimization
@Zeta: Yeah I think I'm inherently really lazy lol.. I was hoping not having to pack multiple bools in an int. It becomes a hassle when I want to find the right pivot and checking for stuff like that, ...
Topic: Code optimization
klavierspieler21

Replies: 57
Views: 57089
PostForum: Crossflip   Posted: Tue Aug 10, 2010 3:32 am   Subject: Code optimization
Holy fuck I just cut down my running time for lvl150 from >100s to 17s and my memory usage from megabytes to kilobytes just by setting the right compiler flags and changing my chars to longs (32 bi ...
Topic: Code optimization
klavierspieler21

Replies: 57
Views: 57089
PostForum: Crossflip   Posted: Tue Aug 10, 2010 12:33 am   Subject: Code optimization
@CodeX: Oh I didn't know about the joint firstness lol. Yeah one day I'll recode that thing and I'll get to 513 easy peasy Smile In fact, I didn't even code this version myself. It was exam time and my f ...
Topic: Code optimization
klavierspieler21

Replies: 57
Views: 57089
PostForum: Crossflip   Posted: Mon Aug 09, 2010 1:42 am   Subject: Code optimization
I haven't finished Runaway because I'm lazy Razz
I coded it up after my first introductory course in computer science at Waterloo (I never programmed before, unless you count html lol). We used Scheme ...
Topic: Code optimization
klavierspieler21

Replies: 57
Views: 57089
PostForum: Crossflip   Posted: Mon Aug 09, 2010 1:34 am   Subject: Code optimization
I'm at 1.87Ghz, -O3 C++, lvl 224 is 91x91 so 8281 variables (I kept the duds for simplicity), and I'm taking over 10 minutes. Something must be wrong... =[
Topic: Code optimization
klavierspieler21

Replies: 57
Views: 57089
PostForum: Crossflip   Posted: Sun Aug 08, 2010 9:55 pm   Subject: Code optimization
heh tried that already Razz with -O3 it's still taking me slightly more than 10 mins at lvl 220 something.. compiler can't help if i'm incompetent lol
Topic: Code optimization
klavierspieler21

Replies: 57
Views: 57089
PostForum: Crossflip   Posted: Sun Aug 08, 2010 6:22 pm   Subject: Code optimization
I coded my solution to crossflip in C++ but I didn't get the speed I expected...
I know my algorithm is asymptotically near optimal (I didn't try to understand how to solve a matrix in under O(n^3) t ...
Topic: Automatic submitting
klavierspieler21

Replies: 4
Views: 9711
PostForum: General Puzzles   Posted: Thu Dec 11, 2008 2:59 am   Subject: Automatic submitting
wow thanks o.O
i'm learning so much here its incredible...
i'll play around to get familiar with this..
right now i'm working on an efficient Runaway algorithm (still in scheme though...). if its a ...
Topic: Automatic submitting
klavierspieler21

Replies: 4
Views: 9711
PostForum: General Puzzles   Posted: Wed Dec 10, 2008 11:40 pm   Subject: Automatic submitting
yeah i tried going through the python script, but i couldn't figure out how to extract the "get and submit" part of it.

can someone be kind enough to explain the gist of it?
Topic: Automatic submitting
klavierspieler21

Replies: 4
Views: 9711
PostForum: General Puzzles   Posted: Wed Dec 10, 2008 5:07 am   Subject: Automatic submitting
Hi,

I'm new to programming. In fact I just took my first introductory class this semester in Scheme at U. of Waterloo.

I wrote a small quasi brute force for Runaway Robot, but I don't know how t ...
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to: 


Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.