The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

[solved?] I'm a noob.

LegionnairedLegionnaired Registered User regular
edited March 2008 in Help / Advice Forum
I had a flash of insight last night, and I think I may have figured out how to do the TSP in O(log(2^n)^4.7). (Current best might be something like (2^n)(n^2)...)

I'm writing out a test program now, but if it works where do I go from here?

So... what? Do I talk to my professor/advisor? Do I write out the algorithm, get it signed and notarized and mail it to myself first?

Legionnaired on

Posts

  • KakodaimonosKakodaimonos Code fondler Helping the 1% get richerRegistered User regular
    edited March 2008
    Talk to your professor/advisor. If you're worried about someone else taking credit for your insight, make a lab book.

    Basically, buy one of those cardboard backed composition books, write down your ideas and algorithms and then in the upper hand corner, write down the date and sign it.

    I doubt your advisor/professor would take the credit for it, but I'd also be surprised if the approach holds up. If it does, your professor should be able to help with the paper and publication that you'll need to do to get this properly dealt with.

    Kakodaimonos on
  • xyierzxyierz Registered User regular
    edited March 2008
    log(2^n) ? Do you mean O(n^4.7)? Hmmm...

    xyierz on
  • LegionnairedLegionnaired Registered User regular
    edited March 2008
    xyierz wrote: »
    log(2^n) ? Do you mean O(n^4.7)? Hmmm...

    No, I think (offhand) it's O((log(2^n))^C).

    And yeah Kakodaimonos, I'm pretty skeptical myself. It may turn into just another pretty good heuristic attempt, but it might 'accidentally' find the optimal solution more often than not.

    Legionnaired on
  • falsedeffalsedef Registered User regular
    edited March 2008
    xyierz wrote: »
    log(2^n) ? Do you mean O(n^4.7)? Hmmm...

    No, I think (offhand) it's O((log(2^n))^C).

    And yeah Kakodaimonos, I'm pretty skeptical myself. It may turn into just another pretty good heuristic attempt, but it might 'accidentally' find the optimal solution more often than not.

    What he means is that lg( 2^n ) = n. It's a property of logarithms.

    You don't have the goods, I'm certain, but hypothetically someone with the algorithm would also need to be careful with their well being. I certainly wouldn't post openly on a forum about it, because that's embarrassing if wrong and dangerous if right. You might end up on the side of a milk cartoon. Luckily you fall into the former category, but next time, try to be a bit more secretive. :rotate:

    falsedef on
  • xyierzxyierz Registered User regular
    edited March 2008
    log(2 ^ n) = log2(2 ^ n) / log2(b) = n * (1 / log2(b))

    Where b is the base of the original logarithm. 1 / log2(b) is a constant, so it can be pulled out of the O-notation.

    So O(log(2^n)) = O(n).

    xyierz on
  • LegionnairedLegionnaired Registered User regular
    edited March 2008
    Sure enough, I finished the code sample and for 20 cities it takes just as much time as brute force.

    *sigh*

    Legionnaired on
  • DirtyDirtyVagrantDirtyDirtyVagrant Registered User regular
    edited March 2008
    Wait, what? Is this some kind of mathematical breakthrough or something? I don't understand at all.

    DirtyDirtyVagrant on
This discussion has been closed.