Booth's algorithm recodes the multiplier by examining pairs of bits (current bit and previous bit, starting with an appended zero) to decide whether to add, subtract, or do nothing with the multiplicand, then performs arithmetic right shifts. Using 5-bit values to avoid overflow, multiplying 3 by -3 shows these recoding pairs and the iterative steps leading to a correct signed product of -9.
Booth’s idea is to look at the multiplier as runs of 1s rather than isolated bits. If you write the multiplier (Q) with an extra zero on the right, (Q_{-1}=0), then every transition (0\to1) means “add the multiplicand”, every transition (1\to0) means “subtract the multiplicand”, and runs of 0s or runs of 1s mean “do nothing”. In the hardware algorithm you realise the same thing by examining the current LSB of (Q) and the extra bit (Q_{-1}), performing an add or subtract on the accumulator (A), and then doing a one‑bit arithmetic right shift of the triple ((A,Q,Q_{-1})). After (n) iterations for an (n)‑bit multiplier, ((A,Q)) holds the (2n)‑bit product.
After 5 iterations the concatenated (A,Q) is 11111 10111, which is the 10‑bit two’s–complement representation of (-9), the correct product of (3) and (-3).