Chapter 8: Q15E (page 511)
How many ternary strings of length six do not contain two consecutiveor twoconsecutive?
Short Answer
There are 239 ternary strings of length six that do not contain two consecutive or two consecutive .
Chapter 8: Q15E (page 511)
How many ternary strings of length six do not contain two consecutiveor twoconsecutive?
There are 239 ternary strings of length six that do not contain two consecutive or two consecutive .
All the tools & learning materials you need for study success - in one app.
Get started for freeSuppose that is a longest common subsequence of the sequences and.
a) Show that if , then and is a longest common subsequence of and when .
b) Suppose that . Show that if , then is a longest common subsequence of and and also show that if , then is a longest common subsequence of and
Use generating functions to solve the recurrence relation with initial conditions and .
Find the coefficient of in.
Give a big-O estimate for the number of comparisons used by the algorithm described in Exercise \(1{22}\).
Use generating functions to find the number of ways to make change for \(100 using
a) \)10, \(20, and \)50 bills.
b) \(5, \)10, \(20, and \)50 bills.
c) \(5, \)10, \(20, and \)50 bills if at least one bill of each denomination is used.
d) \(5, \)10, and $20 bills if at least one and no more than four of each denomination is used.
Find a closed form for the generating function for each of these sequences. (Assume a general form for the terms of the sequence, using the most obvious choice of such a sequence.)
a) \( - 1, - 1, - 1, - 1, - 1, - 1, - 1,0,0,0,0,0,0, \ldots \)
b) \(1,3,9,27,81,243,729, \ldots \)
c) \(0,0,3, - 3,3, - 3,3, - 3, \ldots \)
d) \(1,2,1,1,1,1,1,1,1, \ldots \)
e) \(\left( {\begin{array}{*{20}{l}}7\\0\end{array}} \right),2\left( {\begin{array}{*{20}{l}}7\\1\end{array}} \right),{2^2}\left( {\begin{array}{*{20}{l}}7\\2\end{array}} \right), \ldots ,{2^7}\left( {\begin{array}{*{20}{l}}7\\7\end{array}} \right),0,0,0,0, \ldots \)
f) \( - 3,3, - 3,3, - 3,3, \ldots \)
g) \(0,1, - 2,4, - 8,16, - 32,64, \ldots \)
h) \(1,0,1,0,1,0,1,0, \ldots \)
What do you think about this solution?
We value your feedback to improve our textbook solutions.