Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find patterns to set width (and stride ?) #44

Open
flip111 opened this issue Apr 4, 2022 · 1 comment
Open

Find patterns to set width (and stride ?) #44

flip111 opened this issue Apr 4, 2022 · 1 comment

Comments

@flip111
Copy link

flip111 commented Apr 4, 2022

Could the program do a simple (but possible computational expensive) computation to look for repeating patterns?

With as input parameters:

  • offset (byte 0 to filesize)
  • stride (from 1 to maybe half the filesize, or 25%)
  • pattern length (span of bytes)

Result of search could be:
Found pattern with length of 3 bytes, repeated 100 times with stride 20

Then width of can set equal to stride and the same kind color of pixels should show up as a vertical line.

In case of many patterns found they can be sorted by something like: pattern length * length

@sharkdp
Copy link
Owner

sharkdp commented Apr 18, 2022

Interesting idea. I think this should be prototyped in an external script/experiment first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants