Enrol to start learning
Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.
16.2.3. Recurrence Equation for Bad Strings
This section
Practice test
10 questions on this section. Wrong answers show you what to read again.
Sign up to take itWhole chapter
Revision test
Mixed questions from across the chapter. Your answers get marked.
Sign up to take itQuick
Flashcard drill
2 cards from this lesson. Good the night before a test.
Try these first
- 1.
What is the value of B(1)?
Hint
Think of the possible single-bit strings.
- 2.
List three categories of bad strings.
Hint
Consider different starting conditions for strings.
- 3.
What is the recurrence relation for B(n)?
- B(n) = B(n-1) + B(n-2) + B(n-3)
- B(n) = B(n-1)
- B(n) = B(n-2) + B(n-3)
Hint
Recall our categories of bad strings.
- 4.
Is B(3) equal to 4?
- True
- False
Hint
List all valid strings of length 3.
- 5.
Calculate B(5) based on previous values.
Hint
Keep applying the derived relation repeatedly.
- 6.
Provide a comprehensive proof of B(n) as a generating function.
Hint
Involve elements from your string category counts.
Exercises
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
4 more questions available
Enrol freeQuiz
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
Get your answers marked and your progress tracked
Enrol freeChallenge Problems
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting