| image | text | menu | status |
|---|
BitVector self <> BitVector :: BitVector :: Using a mask to monitor access. - BitVector A bitvector is a string of bits. With a logical function, LogicalOr, LogicalAnd, etc, each bit of a bitvector can be changed. Thus each bit of the bitvector is a value on its own, representing the state of a specific object. The bitvector can identify the state of a range of objects since the individual bit can be changed with a bitwise operation such as -> BitWiseOr . Most likely a bitvector will have a typical length. 8-bits, 16-bits, corresponding to -> BitGroups . For instance if we have a range of devices connected to our computer, each connection could be represented by a bit to indicate if we have access to the device or not. 0 is open 1 is closed. If we have a range of 8 devices our bit-vector would be: If device zero would be a printer, located in the bitstring atthe first position from the right, that is not available bit-0 would indicate closed with a ' 1 ' : If the printer would become available the system would update the bit-vectorwith a BitWiseAnd operation: and bit-0 becomes a ' 0 ', since 1 AND 0 => 0 .Otherwise if the monitor at bit 6 becomes disconnected, the system would update the bitvector with a -> BitWiseOr : since since 0 OR 1 => 1 .sister pages -> BitGroups :: Bits :: Number of bits in a grouping. - -> BitWiseOr :: Boolean OR :: inclusive OR - | sisters: -> BitGroups -> BitWiseOr tree: -> data -> bits | BitVector 05.01.2021 |