Click here to Skip to main content
15,881,044 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi, I am currently trying to learn about bit stripping but i still don't fully grasp the concept, Could anyone explain bit stripping clearer? and how to Perform bit stripping on strings of binary data example 0111110111101111101.
Posted
Updated 10-Dec-13 2:20am
v2
Comments
CPallini 10-Dec-13 8:11am    
"I understand we Remove O’s from message to ensure that the original information can be passed to use"
For instance, I do NOT understand that.
olivergrayson 10-Dec-13 8:18am    
Maybe i'm wrong, do you have any ideas of a definition of bit stripping that would clear it up.
CPallini 10-Dec-13 8:25am    
Probably I am wrong too. However, I suppose, it is removing 'unnecessary bits'. For instance, if you have ASCII characters encoded in bytes, then the most significative bit is always 0 hence you could strip it off without loosing the original message content.
Sergey Alexandrovich Kryukov 10-Dec-13 11:57am    
Who need this kind of "bit stripping" ever. Where did you get this term? Any links?
The situation is pathological in first place. How did you end up having those strings with binary records? This "data type" is utterly inefficient and simply should not be used. If you need binary operations, work in binary object not string.

Generally, the trend to work with strings representing data instead of data itself is some trend of these days, a real course of many beginners.

And, after all, what's the problem? Manipulation with strings? (But better don't. Would you do something useful instead.)

—SA
OriginalGriff 10-Dec-13 8:45am    
I used to work with a hardware engineer who came up with a new compressions technique: throw away all the zero bits "because they mean nothing". The compression ration was significant, but he never did get the decompression routine working (quelle surprise)

He became even more enthusiastic when we suggested a second pass with all bits inverted... :EvilGrinSimiley:

1 solution

Every other bit stripped off: 111110110
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900