New answers tagged binary
0
votes
Is solving Binary String Matching equivalent to Solving All type of string matching?
String matching performed bit by bit would be much slower than character by character, because a character is made of 8 or 16 bits and a processor can handle them in a single go.
Also note that string ...
0
votes
Create binary numbers with a described pattern
As said in my comment, binary numbers of size $n$ are not supported by current computers. We have two situations:
only support the native binary type; as $n$ does not exceed $64$, you can very well ...
0
votes
when is 2's complement used, or called into use in hardware
To obtain the negative of a 2's complement positive number, flip all its bits and add 1.
E.g.
123d = 01111011b
-123d = 10000100b + 1 = 10000101b
This also works ...
Top 50 recent answers are included
Related Tags
binary × 134arithmetic × 21
algorithms × 20
floating-point × 13
number-formats × 10
bit-manipulation × 9
computer-architecture × 8
encoding-scheme × 8
logic × 7
time-complexity × 5
data-structures × 5
information-theory × 4
coding-theory × 4
integers × 4
base-conversion × 4
numeral-representations × 4
trees × 3
strings × 3
computer-networks × 3
number-theory × 3
boolean-algebra × 3
xor × 3
assembly × 3
complexity-theory × 2
graphs × 2