Obtain Binary String: X + Y - Z | Binary Addition and Subtraction Rules

  • Thread starter Thread starter rclakmal
  • Start date Start date
  • Tags Tags
    Binary String
Click For Summary
SUMMARY

The discussion focuses on obtaining binary strings P and Q from given binary values X, Y, and Z, specifically X=10111, Y=101, and Z=1001. The correct binary addition of X and Y results in P=11100, while the subsequent subtraction of Z from P yields Q=11011. The participant initially miscalculated P as 10010 and Q as 1001, indicating a misunderstanding of binary addition rules. The established binary addition rules include: 0 + 0 = 0, 0 + 1 = 1, 1 + 0 = 1, and 1 + 1 = 10.

PREREQUISITES
  • Understanding of binary number representation
  • Familiarity with binary addition rules
  • Knowledge of binary subtraction techniques
  • Basic arithmetic operations in binary
NEXT STEPS
  • Study binary addition and subtraction in detail
  • Practice converting decimal numbers to binary
  • Learn about binary arithmetic overflow
  • Explore binary operations in programming languages like Python
USEFUL FOR

Students studying computer science, software engineers working with low-level data manipulation, and anyone interested in mastering binary arithmetic operations.

rclakmal
Messages
76
Reaction score
0
Obtain Binary String ?

Homework Statement



Given That X=10111 ,Y=101; Z=1001, obtain binary strings that represent P Q where
P=X+Y and Q=P-Z; state clearly each rule you apply .

Homework Equations





The Attempt at a Solution



Hey up to the extent which i know i did this as a normal binary addition and subtractions >then i got P=10010
and Q=1001 .But the problem is I am not sure that i have used any kind of rules here. or Have I ?? Or did i made a mistake in interpreting the problem .Can somebody help . this is all u got for that question ,i have included all the details.
 
Physics news on Phys.org


Doing binary addition, I get a different result for P. The addition rules in binary are:
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 10

I can't think of any rules other than these.

So for X + Y you have
10111
+ 101
-----
11100
 

Similar threads

Replies
4
Views
2K
Replies
20
Views
4K
Replies
17
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
2
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
1K