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.
13.1. Introduction to Counting Problems
This section
Practice test
11 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 base condition for counting strings of length 1 and 2?
Hint
Think of the possible strings.
- 2.
Write the recurrence relation for counting bit strings with no consecutive zeros.
Hint
Think about where a string can start.
- 3.
What is a recurrence equation?
Hint
Consider how terms can be calculated based on earlier values.
- 4.
True or False: The Fibonacci sequence is an example of a recurrence relation.
- True
- False
Hint
Think of how Fibonacci is traditionally defined.
- 5.
Given C(1) = 2, C(2) = 3. Using the derived relation, calculate C(8) and provide the reasoning for each step.
Hint
Draw out or visualize a tree for each sequence.
- 6.
Construct a different counting function that also uses a recurrence relation and compare its properties with our strings without consecutive zeros.
Hint
Identify how many strings might be invalid and adjust the relations accordingly.
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
1 more question available
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