<<  >> (p.2)
    Author Topic: Cuckoo Cycle: a new memory-hard proof-of-work system  (Read 10934 times)
    tromp (OP)
    Legendary
    *
    Offline Offline

    Activity: 1015
    Merit: 1145


    View Profile
    February 15, 2014, 07:27:50 PM
    Last edit: February 15, 2014, 08:00:17 PM by tromp
     #21

    I am a bit of a java boy myself and will admit to having tried to convert your code already.. and failed.. ha!

    It's quite obfuscated.. with lots of 2 letter variables, pointers and no comments!  Huh (I'm a bit comments OCD..)

    What perturbed me is that there are literally only 20 or 30 lines of pertinent code, so I thought it would be easy.

    Is there any chance you could just write a very simple pseudo code explanation ? I would convert that to java. (and SHARE of course)

    I have looked through the pdf but that too is just a bit - gruesome..


    The code will be easier to understand if you read the paper. try to get through the gruesome...
    The algorithm repeatedly generates edges (u,v) and follows paths from u and v.
    These paths are stored in arrays us[] and vs[], with nu and nv used as path length.
    The edge is actually stored in us[0] (same as *us in c) and vs[0] (same as *vs).

    Why don't you fork my repo and translate all the code into java as best as you can.
    Then allow other people to contribute. When I have time, I'll look over your progress and
    help fix it up...
Page 1
Viewing Page: 2