How many bit strings of length 15 have bits 1, 2, and 3 equal to 101, or have bits 12, 13, 14, and 15 equal to 1001 or have bits 3, 4, 5, and 6 equal to 1010? (Let’s count bits left to right so 101000000000000 has 101 for bits 1,2,and 3.)
careful- you have 3 constraints given. first and last are overlapping !
1, 2, and 3 equal to 101 : 2^12 ways 12, 13, 14, and 15 equal to 1001 : 2^11 ways 3, 4, 5, and 6 equal to 1010 : 2^11 ways so far its simple i suppose, eh ?
So would I then add 2^11 + 2^1
may i knw why you would do that... .
i want to know how many different possibilities for strings there are. I dont want to count the same ones more than once. H ow do I know which ones not to count?
does my first reply make sense ?
2nd one... where i listed down, number of strings possible for each given constraint separately
so my solution would be to add those numbers together?
and get 16777216
thats half of the solution, we need to subtract overlapping ones. if you see, first and last constraints have "3" in common right ?
okay....
so, im still not sure if you're comfortable with- how i worked out first part. does that make sense to you fully ?
I am now very confused. I am sorry.
its okay. let me explain first part ok
I appreciate it
|dw:1345171397086:dw|
Join our real-time social learning platform and learn together with your friends!