A speed-tatstic way to look up a value? (LUTs)


Results 1 to 13 of 13

Threaded View

  1. #3
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by rmteo View Post
    That's exactly what I was thinking of - so now, how to implement in picbasic!

    Imagine an array 100 deep (& for simplicity's sake, populated with values 1 thru 100), with an incoming number of 90 to 'look up' against...

    So, the methodology....

    is new incoming value higher or lower than 50

    (result = higher therefore the next stage...)

    is new incoming number higher of lower than 75

    result = higher again, & so on it continues...

    but eventually it all starts getting tricky (because half way between 75 & 100 is 87.5 ....what to do here, etc?)
    Last edited by HankMcSpank; - 3rd October 2010 at 19:36.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts