C
cnoe
I need to program this.
I'm not asking any code, but an idea from you would be helpful.
Thanks.
I open a binary file stream,
which has millions or trillions of 1's & 0's
some thing like this 1100100011101110111..........
for easy understanding lets take this
1 1 0 0 0 0 1 =X
assume there is an idle case like this
1 1 1 1 1 1 1 = Y
now Y has 7 cases, each case has 2 chances
either 1 or 0
'Z' is particular case
first position is changed to 0
1 1 1 1 1 1 0
and matched with X
not as a number[whether x is y, or not], but from left to right
checking 'individual' digits
If one digit is not matching, then the case is failed
if true, then checking Y's 2nd digit with X's ,so on
if all the cases are failed
Now Y's second case is
1 1 1 1 1 0 1
1 1 1 1 1 0 0
and again repeating the same procedure
if x & y has trillions of 1's and 0's
what is the complexity of the program
can I take Z count,
so that
If I change the 1 1 1 1 1 1 1=Y
for Z count times,
I can get X.
Thanks.
I'm not asking any code, but an idea from you would be helpful.
Thanks.
I open a binary file stream,
which has millions or trillions of 1's & 0's
some thing like this 1100100011101110111..........
for easy understanding lets take this
1 1 0 0 0 0 1 =X
assume there is an idle case like this
1 1 1 1 1 1 1 = Y
now Y has 7 cases, each case has 2 chances
either 1 or 0
'Z' is particular case
first position is changed to 0
1 1 1 1 1 1 0
and matched with X
not as a number[whether x is y, or not], but from left to right
checking 'individual' digits
If one digit is not matching, then the case is failed
if true, then checking Y's 2nd digit with X's ,so on
if all the cases are failed
Now Y's second case is
1 1 1 1 1 0 1
1 1 1 1 1 0 0
and again repeating the same procedure
if x & y has trillions of 1's and 0's
what is the complexity of the program
can I take Z count,
so that
If I change the 1 1 1 1 1 1 1=Y
for Z count times,
I can get X.
Thanks.