AllRounder.ai
Chapters in this course

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.

Enrol free

16.2.2. Categories of Bad Strings

  • This section

    Practice test

    10 questions on this section. Wrong answers show you what to read again.

    Sign up to take it
  • Whole chapter

    Revision test

    Mixed questions from across the chapter. Your answers get marked.

    Sign up to take it
  • Quick

    Flashcard drill

    3 cards from this lesson. Good the night before a test.

Try these first

  1. 1.

    What is a bad string?

    Hint

    Think about what sequences you would want to exclude.

  2. 2.

    How many valid strings of length 2 exist?

    Hint

    List all the possible strings of length 2.

  3. 3.

    What is the characteristic of a bad string?

    • Contains '000'
    • Does not contain '000'
    • Has mixed characters
    Hint

    Remember the definition from class.

  4. 4.

    True or False: All strings of length 3 contain a valid configuration based on our recurrence relation.

    • True
    • False
    Hint

    Think about examples of string patterns.

  5. 5.

    Calculate and prove S(6)S(6) using previous calculated values.

    Hint

    Refer back to your established pattern and apply modified counts.

  6. 6.

    Find a pattern by plotting values of S(n)S(n) against nn, and deduce future terms.

    Hint

    What do the numbers suggest?

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 free

Quiz

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 free

Challenge 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