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

Discussion Overview

The discussion revolves around a homework question regarding the number of bit strings of length eight that contain either three consecutive zeros or four consecutive ones. Participants explore the implications of the conditions set by the question, particularly focusing on the inclusion of strings with more than three consecutive zeros.

Discussion Character

  • Homework-related

Main Points Raised

  • One participant questions whether an eight-bit string consisting entirely of zeros satisfies the condition of having three consecutive zeros.
  • Another participant confirms that strings like 0000 0000 or 0000 1010 indeed contain three consecutive zeros, thus meeting the criteria.
  • There is a concern raised about whether having more than three consecutive zeros would still be considered valid under the question's requirements.
  • A response suggests that having more than three consecutive zeros would still be interpreted as satisfying the condition of having three consecutive zeros.

Areas of Agreement / Disagreement

Participants generally agree that strings with three or more consecutive zeros meet the conditions of the question, but there is some uncertainty about the interpretation of the question's wording regarding the validity of longer sequences of zeros.

Contextual Notes

There is an implicit assumption that the question's phrasing allows for strings with more than three consecutive zeros to be valid, but this is not explicitly confirmed by the original question's author.

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   Reactions: 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 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · 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