The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

hardcore Math Ufies by dennismv2009-02-10 23:25:56
  It's generally likely to be harder by archnerd2009-02-10 23:42:55
    A proof by archnerd 2009-02-10 23:56:16
Actually, I can prove that knowing that a number is a product of two primes doesn't help you factor it any more quickly than by a multiple of two:

Suppose you have a factoring algorithm A which guarantees correct output only if the input is a product of two primes. Then you can simply run this algorithm in parallel with a general-case factoring algorithm B, alternating between running A and B at periodic intervals. If A terminates earlier than B, then check to see if its output is correct; this is a simple matter of multiplying the factor back together and seeing if you get the original input. If A gave incorrect output, then just continue running B. Then in the worst case, B terminates immediately after A terminates with an incorrect result, in which case you could have saved half of your effort by not running A.

[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)