Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Bit array
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Array data structure that compactly stores bits}} {{more citations needed|date=December 2010}} A '''bit array''' (also known as '''bitmask''',<ref name="linux" /> '''bit map''', '''bit set''', '''bit string''', or '''bit vector''') is an [[array data structure]] that compactly stores [[bit]]s. It can be used to implement a simple [[set data structure]]. A bit array is effective at exploiting [[bit-level parallelism]] in hardware to perform operations quickly. A typical bit array stores ''kw'' bits, where ''w'' is the number of bits in the unit of storage, such as a [[byte]] or [[Word (computer architecture)|word]], and ''k'' is some nonnegative integer. If ''w'' does not divide the number of bits to be stored, some space is wasted due to [[Fragmentation (computing)|internal fragmentation]].
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)