Jump to content

Smallest possible reader problem


fiveworlds

Recommended Posts

Suppose I want to change a string from left to right

 

001001 to 000010

010010 to 000100

Etc.

 

In one pass is there any way to work out the minimum number of bits I would have to read at one time?

 

At first glance it appears I could use the levenstein distance but that wouldn't find the most optimal solution.

Edited by fiveworlds
Link to comment
Share on other sites

Well at worst you would need enough storage for the whole string. However say my string was composed of regular expressions. The largest reader I would need would be the size of the largest regular expression. For instance

 

0010010010010011001101

 

Is 2 regular expressions 001 and 1001101 so the largest reader I would need would be of size 7.

 

Also it should make use of don't care terms eg

 

1001 to 1010 should only require a regular expression of size 3 since we don't care what the second term is.

Edited by fiveworlds
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.