Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: bit-vector > global minimum

by dwm042 (Priest)
on Oct 03, 2011 at 17:17 UTC ( #929382=note: print w/ replies, xml ) Need Help??


in reply to Re: bit-vector > global minimum
in thread bit-vector > global minimum

Choroba,

This algorithm you suggest would fail on a bit vector of 15 1s followed by 5 zeroes.

David.


Comment on Re^2: bit-vector > global minimum
Re^3: bit-vector > global minimum
by choroba (Abbot) on Oct 03, 2011 at 17:26 UTC
    I updated the algorithm, an important part was missing from the post (silly me). It should work now:
    1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 - - 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 - - - - 0 0 0 1 1 1 1 1 1 1 1 1 1 1 - - - - - - 0 0 1 1 1 1 1 1 1 1 1 1 - - - - - - - - 0 1 1 1 1 1 1 1 1 1 - - - - - - - - - - ^ minimum

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://929382]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2014-10-26 00:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (149 votes), past polls