Help me understand this question -- "Three consecutive zeros" in a binary string

  • Thread starter Thread starter r0bHadz
  • Start date Start date
  • Tags Tags
    Binary String
Click For Summary
The discussion centers on a homework question regarding binary strings of length eight that contain either three consecutive zeros or four consecutive ones. Participants clarify that a string of all zeros, such as "00000000," meets the requirement for having three consecutive zeros. There is a consensus that having more than three consecutive zeros still satisfies the condition of having three consecutive zeros. The interpretation of the question suggests that any string containing three or more consecutive zeros qualifies. Overall, the focus is on understanding the conditions set by the problem.
r0bHadz
Messages
194
Reaction score
17

Homework Statement


How many bit strings of length eight contain either three
consecutive 0s or four consecutive 1s?

Homework Equations

The Attempt at a Solution


This might sound dumb, but would the eight bit string of all zeros satisfy the conditions on the question? I understand its asking for three consecutive zeros, but even if the entire string was all zeros, you would still have 3 consecutive zeros so I don't see why there would be a problem. If you guys don't understand what I mean, what about a string like 0000 0000 or 0000 1010 or 0000 1111 0000 0101 etc etc
 
Physics news on Phys.org
r0bHadz said:
what about a string like 0000 0000 or 0000 1010 or 0000 1111 0000 0101

All of those have three consecutive zeros, so they all satisfy the conditions. What about the question don't you understand?
 
  • Like
Likes r0bHadz
phyzguy said:
All of those have three consecutive zeros, so they all satisfy the conditions. What about the question don't you understand?

I just wanted to make sure if it would still be valid if it was more than 3 consecutive zeros
 
r0bHadz said:
I just wanted to make sure if it would still be valid if it was more than 3 consecutive zeros

Well, you'd have to ask the person who wrote the question to be certain, but I would interpret having more than three consecutive zeros as 'having three consecutive zeros'.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 21 ·
Replies
21
Views
1K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 10 ·
Replies
10
Views
2K