open source this piezashit

Discussion in 'General' started by hekar, Jul 4, 2013.

  1. ImSpartacus

    ImSpartacus nerf spec plz

    Messages:
    8,598
    Likes Received:
    7
    Trophy Points:
    0
    The requirements are 4s and it's a BFS exercise.

    I'm not sure if we're visiting the same website.
     
  2. Candles

    Candles CAPTAIN CANDLES, DUN DUN DUN, DUN DUN DUN DUN.

    Messages:
    4,251
    Likes Received:
    10
    Trophy Points:
    0
    I'm fairly certain that for an unweighted directed graph, BFS is the most effective way to find the shortest path between two points when the point distribution is random enough to prevent heuristics from being applied.
     
  3. Z100000M

    Z100000M Vithered Weteran

    Messages:
    9,120
    Likes Received:
    70
    Trophy Points:
    0
    I know what you meant by saying this, but i find it funny that the way you worded that, you'd do that and then leave us with unremovable /e/njoyment.
     
  4. Jephir

    Jephir ALL GLORY TO THE JEPHIR

    Messages:
    1,409
    Likes Received:
    6
    Trophy Points:
    0
    I wasn't the one who chose the BITMAP test as the coding test to join the Empires team. But, this is what I think:

    The purpose of the BITMAP test is not just to test programming skill. It's to make sure that a coder is willing to put in the time and effort to solve a difficult problem, even if they don't have any idea how to solve it. Personally, it took me over 70 attempts to solve the BITMAP problem. But I persevered and worked through it.

    The Empires code isn't something that can be dived into without effort. It's massive and complicated, and it will take time to learn and discover how the game is programmed. The test serves as a sort of filter to make sure a coder is really willing to put in the time to learn the codebase.
     
  5. Jephir

    Jephir ALL GLORY TO THE JEPHIR

    Messages:
    1,409
    Likes Received:
    6
    Trophy Points:
    0
    Also, to solve BITMAP, you must submit the problem and have it show up as green in the test result. A source code solution is not enough - it has to run within the time and memory limits.
     
  6. BigTeef

    BigTeef Bootleg Headshot master

    Messages:
    7,036
    Likes Received:
    36
    Trophy Points:
    0
    You people are crazy.
    I'm going to art school, fuck computers.
     
  7. Candles

    Candles CAPTAIN CANDLES, DUN DUN DUN, DUN DUN DUN DUN.

    Messages:
    4,251
    Likes Received:
    10
    Trophy Points:
    0
    I could see a generic breadth-first search taking too long, but I bet it can be optimized by knowing that it takes the shape of a rectangular grid.

    EDIT: :3 Turns out a normal breadth-first algorithm does work just fine, I don't know what anyone else is saying now. I actually got it right on the first submission with the queue-based search, the rest were assorted ways of trying with arrays.

    That really was a fun challenge. I should do more of them. I actually learned a lot about searching algorithms, graph theory and all sorts of things about templates from doing it.
     
    Last edited: Jul 6, 2013
  8. flasche

    flasche Member Staff Member Moderator

    Messages:
    13,299
    Likes Received:
    168
    Trophy Points:
    0
    sorry to break the bad news to you candles but by solving the problem you signed a pact with the devil and are now part of the development team. this is not negotiable, now go work and make it awesome.


    also its empires, ofc you use a stack to solve :D
     
    Last edited: Jul 6, 2013
  9. ViroMan

    ViroMan Black Hole (*sniff*) Bully

    Messages:
    8,382
    Likes Received:
    4
    Trophy Points:
    0
    Thats funny according to the site only your last one was good the rest had wrong answers or was too slow.

    Problems solved: 1
    Solutions submitted: 14
    Solutions accepted: 1
    Wrong Answer: 6
    Compile Error: 0
    Runtime Error: 0
    Time Limit Exceeded: 7

    I love the limits though...
    Source limit:50,000B
    Memory limit:256MB <-- Anyone who uses this much memory should not be programming. In fact I challenge you to use up close to this much memory in this test(forgetting the time limit) without using it for no reason.
     
    Last edited: Jul 6, 2013
  10. wealthysoup

    wealthysoup Lead Tester

    Messages:
    1,857
    Likes Received:
    0
    Trophy Points:
    0
    Viroman, the memory limit appears to be set by the cluster being used to solve the solution and not by the program setter.

    http://www.spoj.com/clusters/
     
  11. Trickster

    Trickster Retired Developer

    Messages:
    16,576
    Likes Received:
    46
    Trophy Points:
    0
    Welcome aboard. Leave your sanity in the box by the door.
     
  12. Candles

    Candles CAPTAIN CANDLES, DUN DUN DUN, DUN DUN DUN DUN.

    Messages:
    4,251
    Likes Received:
    10
    Trophy Points:
    0
    [​IMG]
     
    Last edited: Jul 6, 2013
  13. Brutos

    Brutos Administrator Staff Member Moderator

    Messages:
    3,385
    Likes Received:
    0
    Trophy Points:
    0
    Just message with a username and password you want for the git and svn and I'll give you access to everything candles. :3
     
  14. Candles

    Candles CAPTAIN CANDLES, DUN DUN DUN, DUN DUN DUN DUN.

    Messages:
    4,251
    Likes Received:
    10
    Trophy Points:
    0
    Well fuck, that was easy.
     
  15. McGyver

    McGyver Experimental Pedagogue

    Messages:
    6,533
    Likes Received:
    31
    Trophy Points:
    0
    Now get working and make us a nice new GUI!
     
  16. D.D.D. Destroyer

    D.D.D. Destroyer Member Staff Member Moderator

    Messages:
    9,509
    Likes Received:
    111
    Trophy Points:
    0
    Stop luring the poor soul with false promises of glory.
     
  17. ImSpartacus

    ImSpartacus nerf spec plz

    Messages:
    8,598
    Likes Received:
    7
    Trophy Points:
    0
    No, fix walls first.
     
  18. Z100000M

    Z100000M Vithered Weteran

    Messages:
    9,120
    Likes Received:
    70
    Trophy Points:
    0
    Lmao, but I still stand firm with my prediction.
     
  19. wealthysoup

    wealthysoup Lead Tester

    Messages:
    1,857
    Likes Received:
    0
    Trophy Points:
    0
    This must be one of the only threads on here, that after going slightly offtopic within 6 pages its back on an almost identical track to how it started. Im amazed.

    *Insert witty meme here*
     
  20. Z100000M

    Z100000M Vithered Weteran

    Messages:
    9,120
    Likes Received:
    70
    Trophy Points:
    0
    Just another tuesday in empires.
     

Share This Page