My understanding is, if we run the function for the binary form of that string, it could be faster.
For example, let, a string "AAABVAVBBA" is written in a text file test.txt in the hard drive.
Now I want to run KMP string matching algorithm in C and use the binary string of string "AAABVAVBBA" as input (pattern is already given in binary array).
When we save test.txt in the hard drive, it is already in the binary form, so how can I access that binary form of "AAABVAVBBA" in the memory (hard drive) using C?
Note I am not asking how to convert "AAABVAVBBA" string to a binary string (like this post). I want to get the binary form already saved in the hard drive (memory), which is used by assembler.
My query is close to this post.