Thread: Obfuscated logic, need clarity and direction

Results 1 to 2 of 2
  1. #1 Obfuscated logic, need clarity and direction 
    Registered Member
    Join Date
    Mar 2013
    Posts
    7
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    This is not related directly to programming, however I have plans for it as such. I am going to generalize it for this post.

    Setup:
    You are handed a glob of data, lets call that the value (v). This is what we are trying to represent..
    Imagine breaking v into equal sized chunks, lets call each chunk a datapoint .
    Each of these datapoints has a unique index, lets call that i.
    We denote the i'th datapoint as d_i
    Each datapoint also has a maximum number of values it can represent, we call this the limit, denoted LIM

    Notes:
    % denotes modular operator
    ^ denotes power (exponent) operator
    / is division

    We can construct a function that returns datapoints from v in order.

    f(i) = d_i = FLOOR(v / ([LIM^i] )) % LIM

    f(0) = d_0 = FLOOR(v / LIM ^ 0)) % LIM= FLOOR(v/1) % LIM = first datapoint(i think?)
    ...

    What i am looking for is a means to remove v from this equation, without making the logic unsound.
    Reply With Quote  
     

  2. #2  
    Renown Programmer
    Greg's Avatar
    Join Date
    Jun 2010
    Posts
    1,179
    Thanks given
    260
    Thanks received
    1,012
    Rep Power
    2003
    I'm no expert but here's some stuff I know about simplifying which might be of help.

    It depends on what the values of LIM can be

    FLOOR(v/1) = v
    //Unless v is double then
    FLOOR(v/1) = FLOOR(v)

    LIM ^ 0 = (LIM < 0 ? -1 : 1)
    //So
    FLOOR(v / LIM ^ 0)) = (LIM < 0 ? -v : v)
    //Unless v is double then
    FLOOR(v / LIM ^ 0)) = FLOOR(LIM < 0 ? -v : v)


    I don't see how you could remove v without effecting outcome, but then I never was any good at algebra
    Attached imageAttached image
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Need lunar and some to recolor something
    By DTMF in forum Requests
    Replies: 0
    Last Post: 12-09-2008, 01:44 AM
  2. summoning gfx, need items and emote still.
    By ROYALE. in forum Configuration
    Replies: 21
    Last Post: 08-08-2008, 07:11 AM
  3. Need Testers And Coders !!READ!![Instant Admin]
    By HyreScape in forum RS2 Server
    Replies: 10
    Last Post: 07-23-2008, 04:19 PM
  4. RongScape needs Admins and Co/owner
    By sc4rf4c3 in forum RS2 Server
    Replies: 1
    Last Post: 04-28-2008, 01:47 AM
  5. Need Testers and Ideas!
    By England.Hah in forum RS2 Server
    Replies: 5
    Last Post: 11-09-2007, 12:53 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •