Search found 15 matches

by bob001
Fri Jul 23, 2010 3:38 am UTC
Forum: Computer Science
Topic: tsp - my thesis
Replies: 15
Views: 4449

Re: tsp - my thesis

Hullo. I can't find an answer to this anywhere:

For the TSP the number of possible routes is N!, but how is this number reduced if the same route clockwise and anti-clockwise are counted as one?
by bob001
Sun May 09, 2010 6:51 am UTC
Forum: Coding
Topic: Stupid python question...
Replies: 20
Views: 2706

Re: Stupid python question...

Hey, thanks :) Although this gives an error when you have integers in there...it wants strings. Is there a different way to do it without turning the ints into strings? I would have thought you'd just change the %s to %d, but nope. Alternately, switch to Python 3, where the print function isn't forc...
by bob001
Sun May 09, 2010 5:11 am UTC
Forum: Coding
Topic: Stupid python question...
Replies: 20
Views: 2706

Re: Stupid python question...

Guys, you are amazingly helpful. I've got another one... x = [[1,2,3], [4,5,6], [7,8,9]] for eachlist in x: print '|', for number in eachlist: print number, print '|' Which gives you: | 1 2 3 | | 4 5 6 | | 7 8 9 | BUT, what I want is for there not to be a space before the '|' and the number at the s...
by bob001
Wed Apr 21, 2010 2:33 am UTC
Forum: Coding
Topic: Stupid python question...
Replies: 20
Views: 2706

Re: Stupid python question...

Ohhh it must be in quotations.

Thanks!
by bob001
Wed Apr 21, 2010 2:17 am UTC
Forum: Coding
Topic: Stupid python question...
Replies: 20
Views: 2706

Stupid python question...

Say that I have a function and I want it to return something, and then something else on a new line, how do I do that? For example: def something(a,b): x = 'jim' *a y = 'bob' *b return x + y print something(2,3) So it gives: jimjimbobbobbobbob But what I want it to print is this: jimjim bobbobbob so...
by bob001
Wed Nov 26, 2008 8:43 am UTC
Forum: Forum Games
Topic: Not when I'M watching [NOW IN ENDGAME, Plays until 31st Dec]
Replies: 6803
Views: 331944

Re: Not when I'M watching [You know, when you've been Keo'd!]

wow. this has gone on a while.
by bob001
Wed Nov 26, 2008 8:34 am UTC
Forum: Forum Games
Topic: You Laugh, You lose
Replies: 1095
Views: 216432

Re: You Laugh, You lose

oh god....and the scarecrow was always my favourite
by bob001
Wed Nov 26, 2008 8:15 am UTC
Forum: Forum Games
Topic: The Book Challenge
Replies: 261
Views: 22363

Re: The Book Challenge

"I was in danger of being distracted by his livid, glorious face"

heh. guess what that's from. i'm so ashamed...
by bob001
Wed Nov 26, 2008 8:04 am UTC
Forum: Forum Games
Topic: Maximize the post:views ratio! (if you look, you must post)
Replies: 36944
Views: 2432484

Re: Maximize the post:views ratio! (if you look, you must post)

postedy post post lol. its amazing this thing is actually working
by bob001
Wed Nov 26, 2008 8:00 am UTC
Forum: Forum Games
Topic: Simple Question = Silly Answer
Replies: 4335
Views: 285423

Re: Simple Question = Silly Answer

because his mother never hugged him.

why do i loathe the sun?
by bob001
Tue Oct 07, 2008 9:24 am UTC
Forum: Forum Games
Topic: Corrupt-a-wish
Replies: 26079
Views: 2482581

Re: Corrupt-a-wish

Tillan wrote:I wish for frownies!


Granted ....but now you are allergic to ice cream.

(i have no idea what frownies are)

i wish for friends irl
by bob001
Tue Oct 07, 2008 7:57 am UTC
Forum: Individual XKCD Comic Threads
Topic: 0481: "Listen to Yourself"
Replies: 173
Views: 36413

Re: "Listen to Yourself" Discussion

holy crap holy crap holy crap IT'S THERE!!!!!

EDIT: wait...its gone. hmmm
by bob001
Tue Aug 05, 2008 6:11 am UTC
Forum: XKCD Meetups
Topic: [NZ] New Zealand!
Replies: 470
Views: 218815

Re: New Zealand meet up

well i'm in tauranga.

i suppose arranging a meet up would be sort of ridiculous since theres very very few of us and we're all around the country.. :(
by bob001
Mon Jul 28, 2008 6:15 am UTC
Forum: Individual XKCD Comic Threads
Topic: 0455: "Hats"
Replies: 163
Views: 43079

Re: "Hats" discussion

the awesomeness of two black hats combined has created a forcefield around DBHM
by bob001
Sun Jul 20, 2008 1:25 am UTC
Forum: School
Topic: High School bathroom graffiti: intellectualized
Replies: 246
Views: 96672

Re: High School bathroom graffiti: intellectualized

Dromaeosaurid wrote:I wrote on a bus seat:

"ln(e) is the loneliest number that there ever was."


why is it the loneliest number?

Go to advanced search